Hotkeys API Reference

UseHotkeyDefinition

Interface: UseHotkeyDefinition

Defined in: useHotkeys.ts:21

A single hotkey definition for use with useHotkeys.

Properties

callback

ts
callback: HotkeyCallback;

Defined in: useHotkeys.ts:25

The function to call when the hotkey is pressed


hotkey

ts
hotkey: RegisterableHotkey;

Defined in: useHotkeys.ts:23

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


options?

ts
optional options: UseHotkeyOptions;

Defined in: useHotkeys.ts:27

Per-hotkey options (merged on top of commonOptions)