Skip to content

Commit

Permalink
changed keydown to keypress on welcome screen
Browse files Browse the repository at this point in the history
  • Loading branch information
gawainhewitt committed Jan 20, 2021
1 parent dbe73a2 commit 24b6eaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function hideLoadScreen() {
welcome.style.visibility="visible";
welcome.addEventListener("click", startHorn);
welcome.addEventListener("touchstart", startHorn);
welcome.addEventListener('keypress', startHorn);
}

function startHorn() {
Expand Down
2 changes: 1 addition & 1 deletion sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function hideLoadScreen() {
welcome.style.visibility="visible";
welcome.addEventListener("click", startHorn);
welcome.addEventListener("touchstart", startHorn);
welcome.addEventListener('keydown', startHorn);
welcome.addEventListener('keypress', startHorn);
}

function startHorn() {
Expand Down

0 comments on commit 24b6eaa

Please sign in to comment.