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
Hotkeys API Reference
App Hotkeys API Reference
Key hold & held keys API Reference
Hotkey Recorder API Reference
Normalization & format API Reference
App Hotkeys API Reference

AppHotkey

Defined in: app-hotkeys.ts:72

A declared app hotkey. It never holds a callback: register it with useHotkey(appHotkey, callback) or the equivalent adapter API.

TDefault is the kind of the declared default (HotkeyChord, HotkeySequence, or null). Adapters use it to type kind-specific options.

Type Parameters

TId

TId extends string = string

TDefault

TDefault extends | HotkeyChord | HotkeySequence | null = | HotkeyChord | HotkeySequence | null

Properties

~appHotkey

ts
readonly ~appHotkey: true;
readonly ~appHotkey: true;

Defined in: app-hotkeys.ts:78

Brand that distinguishes app hotkeys from raw hotkey objects.


defaultHotkey

ts
readonly defaultHotkey: TDefault;
readonly defaultHotkey: TDefault;

Defined in: app-hotkeys.ts:84

Hotkey declared in defineAppHotkeys.


hotkey

ts
readonly hotkey: Hotkey | null;
readonly hotkey: Hotkey | null;

Defined in: app-hotkeys.ts:82

Effective hotkey: the user's custom hotkey, or the default. null means unbound.


id

ts
readonly id: TId;
readonly id: TId;

Defined in: app-hotkeys.ts:80

Stable id. Saved custom hotkeys are keyed by this value.


meta?

ts
readonly optional meta?: HotkeyMeta;
readonly optional meta?: HotkeyMeta;

Defined in: app-hotkeys.ts:85


options?

ts
readonly optional options?: AppHotkeyOptions;
readonly optional options?: AppHotkeyOptions;

Defined in: app-hotkeys.ts:87


scope?

ts
readonly optional scope?: string;
readonly optional scope?: string;

Defined in: app-hotkeys.ts:86