TanStack
App Hotkeys API Reference

useAppHotkeys

ts
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 hotkeys = useAppHotkeys()
useHotkey(hotkeys['doc.save'], () => save())