Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to distinguish keyEvent.code #10

Open
ClassicOldSong opened this issue Jun 1, 2018 · 0 comments
Open

Add ability to distinguish keyEvent.code #10

ClassicOldSong opened this issue Jun 1, 2018 · 0 comments

Comments

@ClassicOldSong
Copy link
Member

ClassicOldSong commented Jun 1, 2018

https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code
https://en.wikipedia.org/wiki/Scancode

Though we cannot get the scancode directly from browser, we can still access the similar information at keyEvent.code. For example, Enter and NumpadEnter both give out a key code of 13, but the keyEvent.code gives out differently with Enter and NumpadEnter. While Chrome and Firefox act differently on some keys according to MDN, supporting this feature still needs a well discussion or design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant