TanStack
Hotkeys API Reference

createHotkeysScope

ts
function createHotkeysScope(defaultOptions?): AlpineHotkeys;

Defined in: createHotkeysScope.ts:18

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

Parameters

defaultOptions?

MaybeGetter<DefaultHotkeysOptions> = {}

Returns

AlpineHotkeys