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

Modifier keys not identified on keyup events #38

Open
ablamunits opened this issue Apr 21, 2021 · 0 comments
Open

Modifier keys not identified on keyup events #38

ablamunits opened this issue Apr 21, 2021 · 0 comments

Comments

@ablamunits
Copy link

Hi,

It looks like calling isHotkey(key, event) on a keyup event will not identify keys being released when trying to test a modifier key.

You can find an example in the following sandbox:
https://codesandbox.io/s/keyup-bug-k41gy?file=/src/index.js

When you press down the mod key, the value will change to false. However, releasing the key will not set the value back to true. This seems to be happening with modifier keys like mod, cmd, shift. However it works as expected with non-modifier keys.

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

No branches or pull requests

1 participant