Defined in: adapter.ts:292
What an adapter's defineHotkey takes: one hotkey for an API such as useHotkeys, checked as the adapter's hotkey function checks its arguments. The callback context and the options follow the kind of the hotkey. Where T is a wrapper's type parameter, the hotkey is not checked and the options are the ones every kind shares.
T extends AdapterHotkeyInput
TTarget
callback: HotkeyCallback<IfTypeParameter<T, HotkeyCallbackContext, AdapterCallbackContextFor<T>>>;Defined in: adapter.ts:303
The function to call when the hotkey is pressed
hotkey: IfTypeParameter<T, AdapterWrapperHotkey, KnownHotkey<T, T | null | undefined>>;Defined in: adapter.ts:297
A chord, a sequence, a hotkey object, or an app hotkey
optional options?: IfTypeParameter<T, AdapterHotkeyOptions<TTarget>, [T] extends [AppHotkey<string, AppHotkeyBinding>] ? AdapterAppHotkeyOptions<Extract<T, AppHotkey<string, AppHotkeyBinding>>, TTarget> : AdapterOptionsFor<T, TTarget>>;Defined in: adapter.ts:307
Per-hotkey options (merged on top of common options)