Defined in: AppHotkeysProvider.tsx:10
T extends AppHotkeys = AppHotkeys
appHotkeys: T;Defined in: AppHotkeysProvider.tsx:13
Every app hotkey, from defineAppHotkeys. Listed by useAppHotkeyList whether or not their components have mounted. It can start as undefined and arrive later, such as from a lazy import.
HotkeysProviderProps.appHotkeys
children: ReactNode;Defined in: HotkeysProvider.tsx:63
optional customHotkeys?: CustomHotkeys<T> | null;Defined in: HotkeysProvider.tsx:76
The user's saved custom hotkeys. When the value changes, such as after saved data loads or the user signs in, it replaces the current custom hotkeys. undefined leaves them unchanged; null clears them. Unknown ids and invalid entries are ignored.
HotkeysProviderProps.customHotkeys
optional defaultOptions?: HotkeysProviderOptions;Defined in: HotkeysProvider.tsx:80
Merged with the parent provider's defaults.
HotkeysProviderProps.defaultOptions
optional onCustomHotkeysChange?: (customHotkeys) => void;Defined in: HotkeysProvider.tsx:78
Called with the custom hotkeys after every change, ready to save.
CustomHotkeys<T>
void