Docs
Cloudflare
Railway
CodeRabbit
SerpAPI
AG Grid
WorkOS
Netlify
OpenRouter
Clerk
Electric
Unkey
Prisma
Sentry
Cloudflare
Railway
CodeRabbit
SerpAPI
AG Grid
WorkOS
Netlify
OpenRouter
Clerk
Electric
Unkey
Prisma
Sentry
API Reference
Hotkeys API Reference
Hotkey Sequence API Reference
Key hold & held keys API Reference
Hotkey Recorder API Reference
Hotkey Sequence Recorder API Reference
Normalization & format API Reference
Hotkey Sequence API Reference

CreateHotkeySequenceDefinition

Interface: CreateHotkeySequenceDefinition

Defined in: packages/svelte-hotkeys/src/createHotkeySequences.svelte.ts:18

A single sequence definition for use with createHotkeySequences.

Properties

callback

ts
callback: HotkeyCallback;
callback: HotkeyCallback;

Defined in: packages/svelte-hotkeys/src/createHotkeySequences.svelte.ts:22

The function to call when the sequence is completed


options?

ts
optional options: MaybeGetter<CreateHotkeySequenceOptions>;
optional options: MaybeGetter<CreateHotkeySequenceOptions>;

Defined in: packages/svelte-hotkeys/src/createHotkeySequences.svelte.ts:24

Per-sequence options (merged on top of commonOptions)


sequence

ts
sequence: MaybeGetter<HotkeySequence>;
sequence: MaybeGetter<HotkeySequence>;

Defined in: packages/svelte-hotkeys/src/createHotkeySequences.svelte.ts:20

Array of hotkey strings that form the sequence