Defined in: packages/svelte-hotkeys/src/HotkeysCtx.ts:25
optional hotkey?: CreateHotkeyCommonOptions;Defined in: packages/svelte-hotkeys/src/HotkeysCtx.ts:44
Defaults for every hotkey registered by createHotkey and createHotkeys. requireReset applies to chords and timeout applies to sequences.
optional hotkeyRecorder?: Partial<Omit<HotkeyChordRecorderOptions & HotkeySequenceRecorderOptions, "maxSteps" | "validate" | "onRecord">>;Defined in: packages/svelte-hotkeys/src/HotkeysCtx.ts:46
Defaults for every createHotkeyRecorder.
optional keyboardLayout?: boolean;Defined in: packages/svelte-hotkeys/src/HotkeysCtx.ts:39
Whether labels from getFormatForDisplay follow the user's keyboard layout, so [KeyQ] reads A on a French AZERTY keyboard. The layout loads from the browser when the first label mounts. Only Chromium browsers report one. Set false to never ask the browser for it. Default: true.
optional platform?: HotkeyPlatform;Defined in: packages/svelte-hotkeys/src/HotkeysCtx.ts:31
The user's platform, for labels from getFormatForDisplay, hotkeys, recorders, and app hotkey checks such as conflicts. On a server, set it from the request with detectPlatform(userAgent).