TanStack
App Hotkeys API Reference

resolveAppHotkey

ts
function resolveAppHotkey(appHotkey, store): AppHotkey;

Defined in: app-hotkeys.ts:516

Returns the provider's version of an app hotkey, so custom hotkeys apply even when a component imports the declaration directly. Falls back to the given app hotkey when no store declares it.

Parameters

appHotkey

AppHotkey

store

| AppHotkeysStore<Readonly<Record<string, AppHotkey<string, | HotkeyChord | HotkeySequence | null>>>> | null | undefined

Returns

AppHotkey