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

useAppHotkeys

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

Defined in: useAppHotkeys.ts:35

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

Returns

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

Example

ts
const appHotkeys = useAppHotkeys()
useHotkey(() => appHotkeys.value['doc.save'], () => save())
const appHotkeys = useAppHotkeys()
useHotkey(() => appHotkeys.value['doc.save'], () => save())