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(): RegisteredAppHotkeys;
function useAppHotkeys(): RegisteredAppHotkeys;

Defined in: useAppHotkeys.ts:35

Returns the effective app hotkeys from HotkeysProvider, typed by Register: each declaration with the user's custom hotkey applied. Pass an entry to useHotkey or useHotkeys to register it.

Returns

RegisteredAppHotkeys

Example

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