Defined in: HotkeysProviderContext.ts:38
Options for provideHotkeysContext.
optional appHotkeys?: MaybeRefOrGetter<
| Readonly<Record<string, AppHotkey<string, HotkeyChord | HotkeySequence | null>>>
| undefined>;Defined in: HotkeysProviderContext.ts:44
Every app hotkey, from defineAppHotkeys. Read when the context is provided; later changes update the declarations.
optional customHotkeys?:
| CustomHotkeys<Readonly<Record<string, AppHotkey<string, HotkeyChord | HotkeySequence | null>>>>
| null;Defined in: HotkeysProviderContext.ts:49
Starting custom hotkeys, such as saved data. Read once; the context owns the state afterwards. Invalid entries are ignored with a warning.
optional defaultOptions?: MaybeRefOrGetter<HotkeysProviderOptions | undefined>;Defined in: HotkeysProviderContext.ts:39
optional onCustomHotkeysChange?: (customHotkeys) => void;Defined in: HotkeysProviderContext.ts:51
Called with the custom hotkeys after every change, ready to save.
CustomHotkeys
void