You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the web_sys::KeyboardEvent.key_code() returns the ASCII keycode and not the js keycode. Looking at the implementation directly, it seems to be a perfect mirror of the js implementation
see doc, so I'm not even sure how it's possible.
Steps to Reproduce
Add a keypress callback on window with event.key_code().
Press a (it will show 97, instead of 48)
I have an app using a framework that I don't mint sharing, but there is quite a bit more code in there, so I'm not sure sharing it helps
Expected Behavior
key_code should be the same as the js keyCode
Actual Behavior
key_code is the ASCII key_code
Additional Context
not really sure what would be helpful here
The text was updated successfully, but these errors were encountered:
Describe the Bug
the web_sys::KeyboardEvent.key_code() returns the ASCII keycode and not the js keycode. Looking at the implementation directly, it seems to be a perfect mirror of the js implementation
see doc, so I'm not even sure how it's possible.
Steps to Reproduce
I have an app using a framework that I don't mint sharing, but there is quite a bit more code in there, so I'm not sure sharing it helps
Expected Behavior
key_code should be the same as the js keyCode
Actual Behavior
key_code is the ASCII key_code
Additional Context
not really sure what would be helpful here
The text was updated successfully, but these errors were encountered: