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

injectAppHotkeys

ts
function injectAppHotkeys(): Signal<Readonly<Record<string, AppHotkey<string, HotkeyChord | HotkeySequence | null>>>>;
function injectAppHotkeys(): Signal<Readonly<Record<string, AppHotkey<string, HotkeyChord | HotkeySequence | null>>>>;

Defined in: injectAppHotkeys.ts:38

Returns a signal of the effective app hotkeys from provideHotkeys, typed by Register: each declaration with the user's custom hotkey applied.

Returns

Signal<Readonly<Record<string, AppHotkey<string, HotkeyChord | HotkeySequence | null>>>>

Example

ts
appHotkeys = injectAppHotkeys()
constructor() {
  injectHotkey(() => this.appHotkeys()['doc.save'], () => this.save())
}
appHotkeys = injectAppHotkeys()
constructor() {
  injectHotkey(() => this.appHotkeys()['doc.save'], () => this.save())
}