Created
May 28, 2017 00:32
-
-
Save unixpickle/b7193adbaadc5c5c861ea6a1c618a5c0 to your computer and use it in GitHub Desktop.
Log key events
This file contains 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', (e) => console.log('"' + e.code + '": &KeyEvent{Code: "' + e.code + '", Text: "' + e.key + '", KeyIdentifier: "' + e.keyIdentifier + '", Key: "' + e.key + '", WindowsVirtualKeyCode: ' + e.keyCode + ', NativeVirtualKeyCode: ' + e.keyCode + '},')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment