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

useHotkeyRegistrations

ts
function useHotkeyRegistrations(): Readonly<Ref<HotkeyRegistrationView[]>>;
function useHotkeyRegistrations(): Readonly<Ref<HotkeyRegistrationView[]>>;

Defined in: useHotkeyRegistrations.ts:26

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

This composable does NOT require the HotkeysProvider.

Returns

Readonly<Ref<HotkeyRegistrationView[]>>

A ref of all registrations, without callbacks

Example

vue
<script setup>
const registrations = useHotkeyRegistrations()
</script>
<template>
  <li v-for="reg in registrations" :key="reg.id">
    {{ reg.options.meta?.name }}: {{ formatForDisplay(reg.hotkey) }}
  </li>
</template>
<script setup>
const registrations = useHotkeyRegistrations()
</script>
<template>
  <li v-for="reg in registrations" :key="reg.id">
    {{ reg.options.meta?.name }}: {{ formatForDisplay(reg.hotkey) }}
  </li>
</template>