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

createHotkeyRegistrations

ts
function createHotkeyRegistrations(): () => HotkeyRegistrationView[];
function createHotkeyRegistrations(): () => HotkeyRegistrationView[];

Defined in: createHotkeyRegistrations.ts:21

Solid primitive that reactively reads every hotkey registration, chords and sequences, from the singleton HotkeyManager. Narrow each view with kind.

This primitive does NOT require the HotkeysProvider.

Returns

An accessor for all registrations, without callbacks

() => HotkeyRegistrationView[]

Example

tsx
const registrations = createHotkeyRegistrations()
<For each={registrations()}>
  {(reg) => <li>{reg.options.meta?.name}: {formatForDisplay(reg.hotkey)}</li>}
</For>
const registrations = createHotkeyRegistrations()
<For each={registrations()}>
  {(reg) => <li>{reg.options.meta?.name}: {formatForDisplay(reg.hotkey)}</li>}
</For>