Skip to main content

CreateHotkeyDefinition

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

Defined in: createHotkeys.ts:19

A single hotkey definition for use with createHotkeys.

Properties

callback

callback: HotkeyCallback;

Defined in: createHotkeys.ts:23

The function to call when the hotkey is pressed


hotkey

hotkey: RegisterableHotkey;

Defined in: createHotkeys.ts:21

The hotkey string (e.g., 'Mod+S', 'Escape') or RawHotkey object


options?

optional options?: CreateHotkeyOptions;

Defined in: createHotkeys.ts:25

Per-hotkey options (merged on top of commonOptions)