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

[BUG] #1226

Open
eliaszkubala opened this issue Nov 27, 2024 · 0 comments
Open

[BUG] #1226

eliaszkubala opened this issue Nov 27, 2024 · 0 comments

Comments

@eliaszkubala
Copy link

eliaszkubala commented Nov 27, 2024

Describe the bug
When you use alert in the callback method, shift is going to get stuck if you use a combination of keys. In my case, it was shift+W

useHotkeys("shift+W", () => alert('shift gonna stuck after that'), {}, [])

To Reproduce
Steps to reproduce the behavior:

  1. use shift + W,
  2. close alert
  3. ERROR -> click shift, alert gonna be visible repeatedly.

Expected behavior
Shift should not stuck. To resolve this issue I've needed to use a timeout or use { keyup:true }
useHotkeys("shift+W", () => alert('shift gonna stuck after that'), { keyup: true }, [])

Desktop (please complete the following information):

  • OS: osX
  • Browser chrome
  • Version Version 131.0.6778.86 (Official Build) (arm64)
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