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
Hotkeys API Reference

injectHotkeyRegistrations

ts
function injectHotkeyRegistrations(): Signal<HotkeyRegistrationView[]>;
function injectHotkeyRegistrations(): Signal<HotkeyRegistrationView[]>;

Defined in: injectHotkeyRegistrations.ts:29

Angular inject-based API that reactively reads every hotkey registration, chords and sequences, from the singleton HotkeyManager. Narrow each view with kind.

This does NOT require provideHotkeys.

Returns

Signal<HotkeyRegistrationView[]>

A signal of all registrations, without callbacks

Example

ts
@Component({
  template: `
    @for (reg of registrations(); track reg.id) {
      <li>{{ reg.options.meta?.name }}</li>
    }
  `,
})
export class ShortcutPalette {
  registrations = injectHotkeyRegistrations()
}
@Component({
  template: `
    @for (reg of registrations(); track reg.id) {
      <li>{{ reg.options.meta?.name }}</li>
    }
  `,
})
export class ShortcutPalette {
  registrations = injectHotkeyRegistrations()
}