TanStack
Hotkeys API Reference

useHotkeys

ts
function useHotkeys(definitions, options?): void;

Defined in: useHotkeys.ts:9

Registers a changing list of shortcuts after commit and releases it on unmount.

Parameters

definitions

HotkeyDefinition[]

options?

HotkeyOptions

Returns

void