Skip to main content

useHotkey

还没翻译译自英文(tanstack.com)本页 12 段都还没译

function useHotkey(
   hotkey, 
   callback, 
   options?): void;

Defined in: useHotkey.ts:11

Registers one shortcut. Callback and options are refreshed after every commit.

Parameters

hotkey

RegisterableHotkey

callback

HotkeyCallback

options?

HotkeyOptions

Returns

void