You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I bumped into this library and loved its design. It took me a bit of time to discover useHotkeysContext() and its ability to list all registered keys. First, I found #972 by @zenzen-sol, then explored the source:
Without this, I would not know about the ability to call const { hotkeys } = useHotkeysContext() which seems to be perfect for showing a list of shortcuts (or at least debugging it).
Describe the solution you'd like
I’d expect to find useHotkeysContext() in https://react-hotkeys-hook.vercel.app/docs/intro. It’d be also good to see a note on hotkeys in README.md. This file mentions the hook but not its ability to return a list of registered shortcuts.
Describe alternatives you've considered
Browsing issues and code
Additional context
Great lib 💯 👏
The text was updated successfully, but these errors were encountered:
👋 @JohannesKlauss, thanks for paying attention to this issue! I don’t have spare capacity ATM, so it’d be great if someone else could pick it up. Hope that the issue description gives a bit of guidance. Cheers!
Is your feature request related to a problem? Please describe.
I bumped into this library and loved its design. It took me a bit of time to discover
useHotkeysContext()
and its ability to list all registered keys. First, I found #972 by @zenzen-sol, then explored the source:react-hotkeys-hook/src/HotkeysProvider.tsx
Line 7 in f5e0ddd
Without this, I would not know about the ability to call
const { hotkeys } = useHotkeysContext()
which seems to be perfect for showing a list of shortcuts (or at least debugging it).Describe the solution you'd like
I’d expect to find
useHotkeysContext()
in https://react-hotkeys-hook.vercel.app/docs/intro. It’d be also good to see a note onhotkeys
inREADME.md
. This file mentions the hook but not its ability to return a list of registered shortcuts.Describe alternatives you've considered
Browsing issues and code
Additional context
Great lib 💯 👏
The text was updated successfully, but these errors were encountered: