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

wldcard (*) as key is considered any key #1216

Open
anovazzi1 opened this issue Oct 18, 2024 · 0 comments
Open

wldcard (*) as key is considered any key #1216

anovazzi1 opened this issue Oct 18, 2024 · 0 comments

Comments

@anovazzi1
Copy link

Describe the bug
if you set the key "*" in useHotkeys hook it will trigger all other callbacks you have

To Reproduce
Steps to reproduce the behavior:

  1. have multiple hotkeys
  2. add one as "*"
  3. try to use the other hotkeys you have

Please try and add a codesandbox or stackblitz to reproduce the bug:
https://codesandbox.io/p/sandbox/hopeful-framework-7l7qf8?file=%2Fsrc%2FApp.js

Expected behavior
wildcard as a key should not trigger other shortcuts

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: iOS
  • Browser chrome
  • Version 130.0.6723.59
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