Skip to main content

useToggleShortcut

Interfaces

UseToggleShortcutOutput

Properties

PropertyTypeDescriptionDefined in
setToggleShortcutDispatch<SetStateAction<null | string>>Setter for the toggle shortcut state.manager/hooks/useToggleShortcut.ts:8
toggleShortcutnull | stringThe current toggle shortcut.manager/hooks/useToggleShortcut.ts:6

Functions

default()

default(initialToggleShortcut): UseToggleShortcutOutput

The hook for managing the toggle shortcut.

This hook is responsible for registering and unregistering the toggle shortcut on shortcut change. Just use the setter it returns to change the toggle shortcut and it will handle the rest.

Parameters

ParameterTypeDescription
initialToggleShortcutnull | stringThe initial toggle shortcut to use.

Returns

UseToggleShortcutOutput

Defined in

manager/hooks/useToggleShortcut.ts:20