TanStack
Hotkey Sequence API Reference

useHotkeySequence

ts
function useHotkeySequence(
   sequence, 
   callback, 
   options?): void;

Defined in: useHotkeySequence.ts:11

Registers one multi-chord shortcut. Empty sequences do not register.

Parameters

sequence

HotkeySequence

callback

HotkeyCallback

options?

SequenceOptions

Returns

void