function provideAppHotkeys<T>(appHotkeys, options?): object;Defined in: app-hotkeys.ts:569
Creates an app hotkeys store and publishes it on the HotkeyManager, for adapters without a provider component (such as Lit and Alpine). Hotkey APIs in those adapters resolve app hotkeys and custom hotkeys from the published store. Call it once at startup. Returns the store and a function that unpublishes it.
T extends Readonly<Record<string, AppHotkey<string, | HotkeyChord | HotkeySequence | null>>>
T
AppHotkeysStoreOptions<T> = {}
object
dispose: () => void;void
store: AppHotkeysStore<T>;provideAppHotkeys(appHotkeys, {
customHotkeys: JSON.parse(localStorage.getItem('hotkeys') ?? '{}'),
onCustomHotkeysChange: (custom) =>
localStorage.setItem('hotkeys', JSON.stringify(custom)),
})