Defined in: app-hotkeys.ts:69
A declared app hotkey. It never holds a callback: register it with useHotkey(appHotkey, callback) or the equivalent adapter API.
TDefault is the kind of the declared default (HotkeyChord, HotkeySequence, or null). Adapters use it to type kind-specific options.
TId extends string = string
TDefault extends | HotkeyChord | HotkeySequence | null = | HotkeyChord | HotkeySequence | null
readonly ~appHotkey: true;Defined in: app-hotkeys.ts:75
Brand that distinguishes app hotkeys from raw hotkey objects.
readonly optional context?: string;Defined in: app-hotkeys.ts:83
readonly defaultHotkey: TDefault;Defined in: app-hotkeys.ts:81
Hotkey declared in defineAppHotkeys.
readonly hotkey: Hotkey | null;Defined in: app-hotkeys.ts:79
Effective hotkey: the user's custom hotkey, or the default. null means unbound.
readonly id: TId;Defined in: app-hotkeys.ts:77
Stable id. Saved custom hotkeys are keyed by this value.
readonly optional meta?: HotkeyMeta;Defined in: app-hotkeys.ts:82
readonly optional options?: AppHotkeyOptions;Defined in: app-hotkeys.ts:84