Docs
Cloudflare
CodeRabbit
Railway
WorkOS
Netlify
OpenRouter
AG Grid
SerpAPI
Clerk
Electric
Unkey
Prisma
Sentry
Cloudflare
CodeRabbit
Railway
WorkOS
Netlify
OpenRouter
AG Grid
SerpAPI
Clerk
Electric
Unkey
Prisma
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

InjectHotkeyDefinition

Interface: InjectHotkeyDefinition

Defined in: injectHotkeys.ts:19

A single hotkey definition for use with injectHotkeys.

Properties

callback

ts
callback: HotkeyCallback;
callback: HotkeyCallback;

Defined in: injectHotkeys.ts:23

The function to call when the hotkey is pressed


hotkey

ts
hotkey: RegisterableHotkey | () => RegisterableHotkey;
hotkey: RegisterableHotkey | () => RegisterableHotkey;

Defined in: injectHotkeys.ts:21

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


options?

ts
optional options: 
  | InjectHotkeyOptions
  | () => InjectHotkeyOptions;
optional options: 
  | InjectHotkeyOptions
  | () => InjectHotkeyOptions;

Defined in: injectHotkeys.ts:25

Per-hotkey options (merged on top of commonOptions)