Asterisk (*) key listener #907
Unanswered
ayozebarrera
asked this question in
Q&A
Replies: 1 comment
-
You can check the actual pressed key in the event that is passed to the callback. So something like this should work: useHotkeys("*", (e) => console.log("has * been pressed?", e.key === '*')); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Anyone knows how can I detect the asterisk key press ? If I use "*" it will be detect any key
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions