function useHotkey<T>(
hotkey,
callback,
options?): void;Defined in: useHotkey.ts:47
Registers one hotkey: a chord such as 'Mod+S', a sequence such as ['G', 'G'], or an app hotkey from defineAppHotkeys. The callback and options are refreshed after every commit.
T extends AppHotkey<string, HotkeyChord | HotkeySequence | null>
T
HotkeyCallback
void
function useHotkey<T>(
hotkey,
callback,
options?): void;Defined in: useHotkey.ts:52
Registers one hotkey: a chord such as 'Mod+S', a sequence such as ['G', 'G'], or an app hotkey from defineAppHotkeys. The callback and options are refreshed after every commit.
T extends RegisterableHotkey
T
HotkeyCallback
AdapterOptionsFor<T, UseHotkeyTarget>
void