Defined in: HotkeysProviderContext.ts:55
Options for provideHotkeysContext.
optional appHotkeys?: MaybeRefOrGetter<
| Readonly<Record<string, AppHotkey<string, HotkeyChord | HotkeySequence | null>>>
| undefined>;Defined in: HotkeysProviderContext.ts:68
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:73
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:57
Merged with the parent context's defaults.
optional enabled?: MaybeRefOrGetter<boolean | undefined>;Defined in: HotkeysProviderContext.ts:63
See HotkeysProviderScopeProps['enabled'].
optional exclusive?: MaybeRefOrGetter<
| boolean
| {
}
| undefined>;Defined in: HotkeysProviderContext.ts:61
See HotkeysProviderScopeProps['exclusive'].
optional onCustomHotkeysChange?: (customHotkeys) => void;Defined in: HotkeysProviderContext.ts:75
Called with the custom hotkeys after every change, ready to save.
CustomHotkeys
void
optional scope?: MaybeRefOrGetter<string | undefined>;Defined in: HotkeysProviderContext.ts:59
See HotkeysProviderScopeProps['scope'].