Skip to content

Commit

Permalink
Fix keyboard input bug
Browse files Browse the repository at this point in the history
  • Loading branch information
highbyte committed Nov 20, 2022
1 parent a1088e1 commit 7dfbea3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
if (event.key == "ArrowDown" || event.key == "ArrowUp" || event.key == "ArrowRight" || event.key == "ArrowLeft"
|| event.key == "PageUp" || event.key == "PageDown" || event.key == "Home" || event.key == "End"
|| event.key == "Tab" || event.key == "Control"
|| event.key == "1" || event.key == "2" || event.key == "3" || event.key == "4" || event.key == "5" || event.key == "6" || event.key == "7" || event.key == "8" || event.key == "9" || event.key == "0"
|| (event.ctrlKey && (event.key == "1" || event.key == "2" || event.key == "3" || event.key == "4" || event.key == "5" || event.key == "6" || event.key == "7" || event.key == "8" || event.key == "9" || event.key == "0"))
|| event.key == "F11" || event.key == "F12") {
event.preventDefault();
}
Expand Down

0 comments on commit 7dfbea3

Please sign in to comment.