Skip to content

AdapterAppHotkeyOptions

ts
type AdapterAppHotkeyOptions<T, TTarget> = [T["defaultHotkey"]] extends [HotkeySequence] ? AdapterSequenceOptions<TTarget> : [T["defaultHotkey"]] extends [HotkeyChord] ? AdapterChordOptions<TTarget> : AdapterCommonOptions<TTarget>;

Defined in: adapter.ts:230

Call-site options for an app hotkey. meta merges over the declared meta for this registration only, such as a page-specific name for a shared hotkey. Registration lists show the merged meta; app hotkey lists keep the declared one. Kind-specific options follow the declared default: requireReset for a chord, timeout for a sequence, both for an app hotkey without a default. If the user rebinds it to the other kind, options for the old kind no longer apply.

Type Parameters

T

T extends AppHotkey

TTarget

TTarget