-
Notifications
You must be signed in to change notification settings - Fork 35
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
Multinational Keyboard Support #32
Comments
this might be the answer: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code |
Just tried this example http://output.jsbin.com/noyudo/5 The main issue remains, for most case we can't detect the layout in order to display the right controls on page load. We could update the WASD/ZQSD/... indicator when the user press whatever key that correspond to code='KeyW' There is also this experimental Keyboard API that could allow us to detect the Keyboard layout in some browsers.
|
found this, seems like event.code is the right way? Hubs-Foundation/hubs#2397 you probably can't explicitly detect which keyboard the user is using but just look for the keys in the right position at the very least |
There should be as little friction as possible on the end user, so auto-detecting keyboard layout would be ideal
The text was updated successfully, but these errors were encountered: