[4.0.0-3] `useHotkeys` with meta results in strange behaviour
See original GitHub issue useHotkeys("meta+k", () => {
setOpen((state) => !state);
});
This code works correctly only until first execution. After first execution, the callback is fired after meta key is pressed (not combination of meta+k).
It seems to be a case only for meta. ctrl+k
works fine.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
reecelucas/react-use-hotkeys - GitHub
React hook for creating simple keyboard shortcuts. Contribute to reecelucas/react-use-hotkeys development by creating an account on GitHub.
Read more >Disable/Enable Hotkeys
Toggle hotkeys with the enabled flag. Using the enabled flag in the options object, we can dynamically tell useHotkeys if the hotkey should...
Read more >react-hotkeys-hook - npm
A React hook for using keyboard shortcuts in components in a declarative way. Quick Start. The easiest way to use the hook. import...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Both issues should now be resolved with
4.0.0-4
Thank you for reporting the issue. I’ll have a look into it 😃