Created
October 16, 2018 21:14
-
-
Save lee2sman/b54bc38746122a833bcb8caaf446c462 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener('keydown', (event) => { | |
if(event.key === 'ArrowLeft' || | |
event.key === 'ArrowRight' || | |
event.key === 'ArrowDown' || | |
event.key === 'ArrowUp') { | |
event.preventDefault(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment