-
Notifications
You must be signed in to change notification settings - Fork 122
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
[BUG] "mod" key with keyup true does not work #1208
Comments
The |
I found an interesting workaround for this bug. If you want to listen to both keyup and keydown events for the |
The source problem is that MacOS has modifiers with the same key names (control and meta), but their purpose differs from the purpose of the corresponding keys on other platforms. This is why we want to use the This bug comes from this line: react-hotkeys-hook/src/validators.ts Line 96 in bc55a28
But it is not so easy to fix as it might seem. We cannot get information about either OS or keyboard type from the KeyboardEvent and cannot distinguish between Mac's and other platforms' |
"mod" key with keyup true does not work but it works with keydown true.
This doesn't log anything
The text was updated successfully, but these errors were encountered: