Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
API Reference
Hotkeys API Reference
Hotkey Sequence API Reference
Key Hold API Reference
Held Keys API Reference
Hotkey Recorder API Reference
Hotkey Sequence Recorder API Reference
Format for Display API Reference
Hotkey Recorder API Reference

HotkeyRecorderOptions

Interface: HotkeyRecorderOptions

Defined in: hotkey-recorder.ts:19

Options for configuring a HotkeyRecorder instance.

Properties

onCancel()?

ts
optional onCancel: () => void;

Defined in: hotkey-recorder.ts:23

Optional callback when recording is cancelled (Escape pressed)

Returns

void


onClear()?

ts
optional onClear: () => void;

Defined in: hotkey-recorder.ts:25

Optional callback when shortcut is cleared (Backspace/Delete pressed)

Returns

void


onRecord()

ts
onRecord: (hotkey) => void;

Defined in: hotkey-recorder.ts:21

Callback when a hotkey is successfully recorded

Parameters

hotkey

Hotkey

Returns

void