TanStack
Hotkeys API Reference

createHotkeysScope

ts
function createHotkeysScope(defaultOptions?): AlpineHotkeys;

Defined in: createHotkeysScope.ts:29

Owns Alpine effects and Store subscriptions, with optional shared defaults. App hotkeys come from provideAppHotkeys. Call destroy from x-data's destroy hook.

Parameters

defaultOptions?

MaybeGetter<DefaultHotkeysOptions> = {}

Returns

AlpineHotkeys