-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
Numpad keys not detected #89
Comments
@swd120 I need to buy a keyboard. |
Let me know if there's any additional info you might need. |
It works for me (mac). |
@bichotll I was able to reproduce the issue with my keypad turned on and numlock off. It's like the library believes that the |
It seems to be a Windows issue. That's my current Workaround:
|
I just added Numpad keys to _modifer variable and seems to work for me. The user will have to specify both the keys while initializing the hotkey `
Usage: |
I'm using react-hotkeys-hook ... @ishan576 are you suggesting that @jaywcjlove this looks pretty straightforward... any chance you could make the fix? |
@CourtHive: My usage was in a pure js mode. But yes, I think you'll have to modify and re-build. |
thanks @ishan576 appreciate the reply |
Same problem happening with me, trying to debug I noticed that it only happens on Firefox, on Chrome works fine. I'm using the react wrapper |
@gimoteco are you saying that the numeric keys work for you on Chrome? We have tested in Chrome on Windows and it does not work. Based on @ishan576 comments above and looking at the code I don't think the key codes for numeric keypad are handled at all. I don't understand why this issue can't be addressed as the solution seems to be fairly straightforward... |
Yeah, testing in https://wangchujiang.com/hotkeys/ the numpad keys work on chrome and don't work on firefox (just the numpad digit keys). |
Numpad keys are not detected with normal handlers (they can be detected under the '*' handler, but not under a regular handler)
Demo:
https://jsfiddle.net/fk1o32a9/7/
Actual:
Using Digit1, event is detected for both events (both 1 and *)
Using Numpad1, event is detected only for "*" event
Expected:
Using Digit1, event is detected for both events (both 1 and *)
Using Numpad1, event is detected for both events (both 1 and *)
The text was updated successfully, but these errors were encountered: