Docs
Cloudflare
Railway
CodeRabbit
AG Grid
OpenRouter
Clerk
WorkOS
SerpAPI
Netlify
Electric
Prisma
Unkey
Sentry
Cloudflare
Railway
CodeRabbit
AG Grid
OpenRouter
Clerk
WorkOS
SerpAPI
Netlify
Electric
Prisma
Unkey
Sentry
Hotkeys API Reference
Hotkey Sequence API Reference
Key hold & held keys API Reference
Hotkey Recorder API Reference
Hotkey Sequence Recorder API Reference
Normalization & format API Reference
Hotkeys API Reference

CreateHotkeyDefinition

Interface: CreateHotkeyDefinition

Defined in: createHotkeys.ts:19

A single hotkey definition for use with createHotkeys.

Properties

callback

ts
callback: HotkeyCallback;
callback: HotkeyCallback;

Defined in: createHotkeys.ts:23

The function to call when the hotkey is pressed


hotkey

ts
hotkey: RegisterableHotkey;
hotkey: RegisterableHotkey;

Defined in: createHotkeys.ts:21

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


options?

ts
optional options: CreateHotkeyOptions;
optional options: CreateHotkeyOptions;

Defined in: createHotkeys.ts:25

Per-hotkey options (merged on top of commonOptions)