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
The description option for useHotkey is useful for creating a user-facing list of currently-available hotkeys with user-friendly descriptions of each available hotkey.
When calling const { hotkeys } = useHotkeysContext(), the hotkeys array returned should include the contents of the description option, if any.
One question to consider, is whether or not other options, or all options, should also be passed through.
The
description
option foruseHotkey
is useful for creating a user-facing list of currently-available hotkeys with user-friendly descriptions of each available hotkey.When calling
const { hotkeys } = useHotkeysContext()
, thehotkeys
array returned should include the contents of thedescription
option, if any.One question to consider, is whether or not other options, or all options, should also be passed through.
FWIW, I provided one possible solution in #972
The text was updated successfully, but these errors were encountered: