From d363a6823c1f5a4702f5456643e2e6850a6c67c0 Mon Sep 17 00:00:00 2001 From: Kevin Van Cott Date: Fri, 27 Nov 2026 18:25:42 -0600 Subject: [PATCH 01/13] feat(hotkeys): Add formatForAria and suspendCharacterKeys for accessible shortcuts - Add formatForAria, which formats a hotkey as an aria-keyshortcuts value, with an ARIA formatter in every adapter. - Replace the adapter formatter factories with one generic createFormatter. - Add HotkeyManager.suspendCharacterKeys() and a suspendCharacterKeys provider option, so users can turn off character key shortcuts (WCAG 2.1.4). - Add an Accessibility guide per framework, and move Formatting & Display into the App Hotkeys & UI section. - Move private core constants into one internal module. - Remove stated item counts from the guides. --- .changeset/format-for-aria.md | 23 ++ .changeset/suspend-character-keys.md | 17 ++ docs/agent-skills.md | 2 +- docs/config.json | 120 +++++--- docs/framework/alpine/guides/accessibility.md | 116 ++++++++ .../alpine/guides/cheat-sheet-ui-helpers.md | 4 +- .../alpine/guides/formatting-display.md | 42 ++- .../framework/alpine/guides/hotkey-manager.md | 13 +- docs/framework/alpine/guides/hotkeys.md | 4 +- .../alpine/guides/keyboard-layouts.md | 2 +- .../reference/functions/createHotkeysScope.md | 2 +- docs/framework/alpine/reference/index.md | 1 + .../interfaces/AlpineCreateHotkey.md | 6 +- .../interfaces/AlpineCreateHotkeyRecorder.md | 12 +- .../interfaces/AlpineCustomHotkeys.md | 4 +- .../interfaces/AlpineHotkeyRecorder.md | 2 +- .../reference/interfaces/AlpineHotkeyState.md | 4 +- .../reference/interfaces/AlpineHotkeys.md | 132 ++++++++- .../interfaces/DefaultHotkeysOptions.md | 10 +- .../type-aliases/AlpineAppHotkeyOptions.md | 2 +- .../type-aliases/AlpineHotkeyCommonOptions.md | 2 +- .../type-aliases/AlpineHotkeyDefinition.md | 2 +- .../type-aliases/AlpineHotkeyOptionsFor.md | 2 +- .../type-aliases/AlpineHotkeyTarget.md | 2 +- .../reference/variables/formatForAria.md | 22 ++ .../framework/angular/guides/accessibility.md | 112 ++++++++ .../angular/guides/cheat-sheet-ui-helpers.md | 4 +- .../angular/guides/formatting-display.md | 37 ++- .../angular/guides/hotkey-manager.md | 13 +- docs/framework/angular/guides/hotkeys.md | 4 +- .../angular/guides/keyboard-layouts.md | 2 +- .../guides/provide-hotkeys-and-scopes.md | 4 + .../functions/injectDefaultHotkeysOptions.md | 2 +- .../functions/injectFormatForAria.md | 99 +++++++ .../functions/injectHotkeysContext.md | 2 +- .../reference/functions/provideHotkeys.md | 2 +- docs/framework/angular/reference/index.md | 2 + .../interfaces/HotkeysContextValue.md | 10 +- .../interfaces/ProvideHotkeysOptions.md | 20 +- .../variables/HOTKEYS_INJECTION_TOKEN.md | 2 +- .../reference/variables/formatForAria.md | 22 ++ docs/framework/ember/guides/accessibility.md | 104 +++++++ .../ember/guides/cheat-sheet-ui-helpers.md | 4 +- .../ember/guides/formatting-display.md | 33 ++- docs/framework/ember/guides/hotkey-manager.md | 13 +- docs/framework/ember/guides/hotkeys.md | 6 +- .../ember/guides/keyboard-layouts.md | 2 +- .../reference/functions/useFormatForAria.md | 105 +++++++ .../functions/useFormatForDisplay.md | 2 +- docs/framework/ember/reference/index.md | 2 + .../reference/variables/formatForAria.md | 21 ++ docs/framework/lit/guides/accessibility.md | 109 ++++++++ .../lit/guides/cheat-sheet-ui-helpers.md | 4 +- .../lit/guides/formatting-display.md | 38 ++- docs/framework/lit/guides/hotkey-manager.md | 13 +- docs/framework/lit/guides/hotkeys.md | 2 +- docs/framework/lit/guides/keyboard-layouts.md | 2 +- .../classes/FormatForAriaController.md | 196 +++++++++++++ .../classes/FormatForDisplayController.md | 8 +- docs/framework/lit/reference/index.md | 3 + .../FormatForAriaControllerOptions.md | 38 +++ .../lit/reference/variables/formatForAria.md | 22 ++ docs/framework/octane/guides/accessibility.md | 100 +++++++ .../octane/guides/cheat-sheet-ui-helpers.md | 6 +- .../octane/guides/formatting-display.md | 29 +- .../framework/octane/guides/hotkey-manager.md | 16 +- .../guides/hotkeys-provider-and-scopes.md | 10 +- docs/framework/octane/guides/hotkeys.md | 2 +- .../octane/guides/keyboard-layouts.md | 2 +- .../reference/functions/useFormatForAria.md | 96 +++++++ .../functions/useFormatForDisplay.md | 2 +- docs/framework/octane/reference/index.md | 2 + .../reference/variables/formatForAria.md | 22 ++ docs/framework/preact/guides/accessibility.md | 104 +++++++ .../preact/guides/cheat-sheet-ui-helpers.md | 6 +- .../preact/guides/formatting-display.md | 31 ++- .../framework/preact/guides/hotkey-manager.md | 16 +- .../guides/hotkeys-provider-and-scopes.md | 10 +- docs/framework/preact/guides/hotkeys.md | 2 +- .../preact/guides/keyboard-layouts.md | 2 +- .../functions/useDefaultHotkeysOptions.md | 2 +- .../reference/functions/useFormatForAria.md | 101 +++++++ .../reference/functions/useHotkeysContext.md | 2 +- docs/framework/preact/reference/index.md | 2 + .../reference/variables/formatForAria.md | 22 ++ docs/framework/react/guides/accessibility.md | 104 +++++++ .../react/guides/cheat-sheet-ui-helpers.md | 6 +- .../react/guides/formatting-display.md | 31 ++- docs/framework/react/guides/hotkey-manager.md | 16 +- .../guides/hotkeys-provider-and-scopes.md | 10 +- docs/framework/react/guides/hotkeys.md | 2 +- .../react/guides/keyboard-layouts.md | 2 +- .../functions/useDefaultHotkeysOptions.md | 2 +- .../reference/functions/useFormatForAria.md | 101 +++++++ .../reference/functions/useHotkeysContext.md | 2 +- docs/framework/react/reference/index.md | 2 + .../reference/variables/formatForAria.md | 22 ++ docs/framework/solid/guides/accessibility.md | 109 ++++++++ .../solid/guides/cheat-sheet-ui-helpers.md | 6 +- .../solid/guides/formatting-display.md | 31 ++- docs/framework/solid/guides/hotkey-manager.md | 16 +- .../guides/hotkeys-provider-and-scopes.md | 10 +- docs/framework/solid/guides/hotkeys.md | 2 +- .../solid/guides/keyboard-layouts.md | 2 +- .../functions/createFormatForAria.md | 97 +++++++ .../functions/useDefaultHotkeysOptions.md | 2 +- .../reference/functions/useHotkeysContext.md | 2 +- docs/framework/solid/reference/index.md | 2 + .../reference/variables/formatForAria.md | 22 ++ docs/framework/svelte/guides/accessibility.md | 102 +++++++ .../svelte/guides/cheat-sheet-ui-helpers.md | 4 +- .../svelte/guides/formatting-display.md | 29 +- .../framework/svelte/guides/hotkey-manager.md | 13 +- .../guides/hotkeys-provider-and-scopes.md | 4 + docs/framework/svelte/guides/hotkeys.md | 6 +- .../svelte/guides/keyboard-layouts.md | 2 +- .../functions/getDefaultHotkeysOptions.md | 2 +- .../reference/functions/getFormatForAria.md | 96 +++++++ .../reference/functions/getHotkeysContext.md | 2 +- .../reference/functions/setHotkeysContext.md | 2 +- docs/framework/svelte/reference/index.md | 2 + .../interfaces/HotkeysContextOptions.md | 10 +- .../interfaces/HotkeysProviderOptions.md | 10 +- .../interfaces/HotkeysProviderProps.md | 12 +- .../reference/variables/DEFAULT_OPTIONS.md | 2 +- .../reference/variables/formatForAria.md | 22 ++ docs/framework/vue/guides/accessibility.md | 109 ++++++++ .../vue/guides/cheat-sheet-ui-helpers.md | 4 +- .../vue/guides/formatting-display.md | 31 ++- docs/framework/vue/guides/hotkey-manager.md | 13 +- .../vue/guides/hotkeys-provider-and-scopes.md | 4 + docs/framework/vue/guides/hotkeys.md | 4 +- docs/framework/vue/guides/keyboard-layouts.md | 2 +- .../functions/provideHotkeysContext.md | 2 +- .../functions/useDefaultHotkeysOptions.md | 2 +- .../reference/functions/useFormatForAria.md | 98 +++++++ .../reference/functions/useHotkeysContext.md | 2 +- docs/framework/vue/reference/index.md | 2 + .../ProvideHotkeysContextOptions.md | 18 +- .../reference/variables/HotkeysProvider.md | 2 +- .../vue/reference/variables/formatForAria.md | 22 ++ docs/guides/sensible-defaults.md | 6 +- .../functions/activateHotkeysProviderScope.md | 2 +- .../functions/bindCustomHotkeyActions.md | 2 +- .../functions/createFormatForDisplay.md | 6 +- .../adapter/functions/createFormatter.md | 51 ++++ .../adapter/functions/createHotkeyBindings.md | 2 +- .../adapter/functions/definedOptions.md | 2 +- .../adapter/functions/followKeyboardLayout.md | 2 +- .../functions/getHotkeyRegistrationViews.md | 2 +- .../functions/getHotkeysProviderScopeKey.md | 2 +- .../functions/getPublishedAppHotkeysStore.md | 2 +- .../functions/getServerPlatformSnapshot.md | 2 +- .../adapter/functions/isHotkeyHintVisible.md | 2 +- .../functions/mergeHotkeysProviderDefaults.md | 2 +- .../adapter/functions/namesPhysicalKey.md | 2 +- .../functions/prepareHotkeyDefinitions.md | 2 +- .../functions/requireAppHotkeysStore.md | 2 +- .../adapter/functions/resolveRefTarget.md | 2 +- .../functions/subscribePublishedAppHotkeys.md | 2 +- .../adapter/functions/syncRecorderOptions.md | 2 +- .../adapter/functions/withDefaults.md | 2 +- docs/reference/adapter/index.md | 1 + .../adapter/interfaces/HotkeysContextValue.md | 8 +- .../interfaces/HotkeysDefaultOptions.md | 10 +- .../interfaces/HotkeysProviderScopeProps.md | 28 +- .../PrepareHotkeyDefinitionsOptions.md | 10 +- .../type-aliases/AdapterAppHotkeyOptions.md | 2 +- .../type-aliases/AdapterChordOptions.md | 2 +- .../type-aliases/AdapterCommonOptions.md | 2 +- .../type-aliases/AdapterHotkeyDefinition.md | 2 +- .../type-aliases/AdapterHotkeyOptions.md | 2 +- .../adapter/type-aliases/AdapterOptionsFor.md | 2 +- .../type-aliases/AdapterSequenceOptions.md | 2 +- .../HotkeyBindingsCommonOptions.md | 2 +- .../adapter/type-aliases/HotkeyDefinition.md | 2 +- .../type-aliases/HotkeyRecorderDefaults.md | 2 +- .../adapter/type-aliases/RefTarget.md | 2 +- .../adapter/type-aliases/WithTarget.md | 2 +- docs/reference/classes/AppHotkeysStore.md | 26 +- docs/reference/classes/HotkeyManager.md | 63 ++++- docs/reference/classes/HotkeyRecorder.md | 20 +- docs/reference/functions/areHotkeysEqual.md | 2 +- .../functions/createHotkeyChordHandler.md | 2 +- .../createMultiHotkeyChordHandler.md | 2 +- .../functions/createSequenceMatcher.md | 2 +- docs/reference/functions/formatForAria.md | 63 +++++ docs/reference/functions/formatForDisplay.md | 8 +- docs/reference/functions/formatHotkey.md | 6 +- .../getAppHotkeyRegistrationOptions.md | 2 +- docs/reference/functions/getHotkeyManager.md | 2 +- .../functions/matchesKeyboardEvent.md | 2 +- docs/reference/functions/provideAppHotkeys.md | 2 +- .../functions/publishAppHotkeysStore.md | 2 +- docs/reference/functions/resolveAppHotkey.md | 2 +- .../functions/toHotkeyRegistrationView.md | 2 +- docs/reference/index.md | 2 + .../interfaces/ActivateHotkeyScopeOptions.md | 6 +- .../reference/interfaces/AppHotkeyListItem.md | 10 +- docs/reference/interfaces/AppHotkeysState.md | 6 +- .../interfaces/AppHotkeysStoreOptions.md | 8 +- .../CreateHotkeyChordHandlerOptions.md | 8 +- .../interfaces/CustomHotkeyActions.md | 10 +- .../reference/interfaces/FormatAriaOptions.md | 53 ++++ .../interfaces/FormatDisplayOptions.md | 16 +- .../interfaces/HotkeyChordRecorderOptions.md | 26 +- .../HotkeyChordRecorderValidationContext.md | 10 +- .../interfaces/HotkeyChordRegistrationView.md | 20 +- .../interfaces/HotkeyRecorderActions.md | 10 +- .../interfaces/HotkeyRecorderState.md | 8 +- .../interfaces/HotkeyRegistrationHandle.md | 12 +- .../interfaces/HotkeyRegistrationsResult.md | 4 +- .../reference/interfaces/HotkeyScopesState.md | 23 +- .../HotkeySequenceRecorderOptions.md | 30 +- ...HotkeySequenceRecorderValidationContext.md | 10 +- .../HotkeySequenceRegistrationView.md | 24 +- docs/reference/interfaces/RecorderOptions.md | 10 +- .../reference/interfaces/RecorderRejection.md | 10 +- .../reference/type-aliases/AppHotkeyStatus.md | 5 +- docs/reference/type-aliases/DisplayHotkey.md | 2 +- .../type-aliases/DisplayHotkeyChord.md | 2 +- .../type-aliases/HotkeyRecorderCommitKeys.md | 2 +- .../type-aliases/HotkeyRecorderOptions.md | 2 +- .../HotkeyRecorderValidationContext.md | 2 +- .../type-aliases/HotkeyRegistrationStatus.md | 5 +- .../type-aliases/HotkeyRegistrationView.md | 2 +- .../type-aliases/MultiHotkeyChordHandler.md | 2 +- .../reference/type-aliases/RecorderKeyMode.md | 2 +- .../type-aliases/RecorderRejectionReason.md | 2 +- .../RegisteredAppHotkeyListItem.md | 2 +- .../variables/DEFAULT_SEQUENCE_TIMEOUT.md | 2 +- package.json | 12 +- .../skills/alpine-hotkeys/SKILL.md | 3 +- .../alpine-hotkeys/src/createFormatForAria.ts | 15 + .../alpine-hotkeys/src/createHotkeysScope.ts | 2 + packages/alpine-hotkeys/src/formatForAria.ts | 12 + packages/alpine-hotkeys/src/index.ts | 1 + packages/alpine-hotkeys/src/types.ts | 37 +++ .../alpine-hotkeys/tests/conformance.test.ts | 2 + .../skills/angular-hotkeys/SKILL.md | 5 +- packages/angular-hotkeys/src/formatForAria.ts | 12 + .../angular-hotkeys/src/hotkeys-provider.ts | 14 +- packages/angular-hotkeys/src/index.ts | 2 + .../src/injectFormatForAria.ts | 46 ++++ .../angular-hotkeys/tests/conformance.test.ts | 6 + .../skills/ember-hotkeys/SKILL.md | 3 +- packages/ember-hotkeys/src/_formatter.ts | 41 +++ packages/ember-hotkeys/src/formatForAria.ts | 11 + packages/ember-hotkeys/src/index.ts | 2 + .../ember-hotkeys/src/useFormatForAria.ts | 39 +++ .../ember-hotkeys/src/useFormatForDisplay.ts | 33 +-- .../tests/integration/conformance.test.gts | 12 +- .../src/HotkeysContextProvider.tsx | 8 +- .../hotkeys-devtools/tests/scopes.test.ts | 3 + packages/hotkeys/skills/hotkeys-core/SKILL.md | 24 +- packages/hotkeys/src/_constants.ts | 259 ++++++++++++++++++ packages/hotkeys/src/_event-target.ts | 119 +++----- packages/hotkeys/src/_keyboard-event.ts | 12 +- packages/hotkeys/src/_match.ts | 5 +- packages/hotkeys/src/_named-keys.ts | 62 ----- packages/hotkeys/src/_recorder-chord.ts | 3 +- packages/hotkeys/src/_registration.ts | 55 ++-- packages/hotkeys/src/_server.ts | 4 +- packages/hotkeys/src/adapter.ts | 69 ++++- packages/hotkeys/src/app-hotkeys.ts | 5 +- packages/hotkeys/src/constants.ts | 3 + packages/hotkeys/src/format.ts | 130 ++++++++- packages/hotkeys/src/hotkey-manager.ts | 73 ++++- packages/hotkeys/src/hotkey-recorder.ts | 19 +- packages/hotkeys/src/key.types.ts | 2 +- packages/hotkeys/src/match.ts | 4 +- packages/hotkeys/tests/adapter.test.ts | 1 + packages/hotkeys/tests/app-hotkeys.test.ts | 26 +- packages/hotkeys/tests/character-keys.test.ts | 194 +++++++++++++ packages/hotkeys/tests/format-aria.test.ts | 138 ++++++++++ packages/hotkeys/tests/invariants/fixtures.ts | 2 +- packages/hotkeys/tests/key-coverage.test.ts | 2 +- .../tests/registration-and-target.test.ts | 7 +- packages/hotkeys/tests/scopes.test.ts | 1 + packages/hotkeys/tests/typed-behavior.test.ts | 2 +- packages/hotkeys/tests/typed-keys.ts | 2 +- .../lit-hotkeys/skills/lit-hotkeys/SKILL.md | 3 +- .../src/controllers/_formatter-layout.ts | 38 +++ .../src/controllers/format-for-aria.ts | 105 +++++++ .../src/controllers/format-for-display.ts | 29 +- packages/lit-hotkeys/src/controllers/index.ts | 1 + packages/lit-hotkeys/src/format-for-aria.ts | 12 + packages/lit-hotkeys/src/index.ts | 1 + .../lit-hotkeys/tests/conformance.test.ts | 3 + .../skills/octane-hotkeys/SKILL.md | 5 +- .../octane-hotkeys/src/HotkeysProvider.ts | 12 +- packages/octane-hotkeys/src/_useFormatter.ts | 45 +++ packages/octane-hotkeys/src/formatForAria.ts | 12 + packages/octane-hotkeys/src/index.ts | 2 + .../octane-hotkeys/src/useFormatForAria.ts | 34 +++ .../octane-hotkeys/src/useFormatForDisplay.ts | 36 +-- .../octane-hotkeys/tests/conformance.test.ts | 8 +- .../octane-hotkeys/tests/conformance.tsrx | 15 +- .../skills/preact-hotkeys/SKILL.md | 5 +- .../preact-hotkeys/src/HotkeysProvider.tsx | 10 +- packages/preact-hotkeys/src/formatForAria.ts | 12 + packages/preact-hotkeys/src/index.ts | 2 + .../preact-hotkeys/src/useFormatForAria.ts | 52 ++++ .../preact-hotkeys/tests/conformance.test.tsx | 5 + .../skills/react-hotkeys/SKILL.md | 5 +- .../react-hotkeys/src/HotkeysProvider.tsx | 10 +- packages/react-hotkeys/src/formatForAria.ts | 12 + packages/react-hotkeys/src/index.ts | 2 + .../react-hotkeys/src/useFormatForAria.ts | 53 ++++ .../react-hotkeys/tests/conformance.test.tsx | 5 + .../skills/solid-hotkeys/SKILL.md | 5 +- .../solid-hotkeys/src/HotkeysProvider.tsx | 9 +- .../solid-hotkeys/src/createFormatForAria.ts | 44 +++ packages/solid-hotkeys/src/formatForAria.ts | 12 + packages/solid-hotkeys/src/index.ts | 2 + .../solid-hotkeys/tests/conformance.test.tsx | 6 + .../skills/svelte-hotkeys/SKILL.md | 5 +- packages/svelte-hotkeys/src/HotkeysCtx.ts | 3 + .../svelte-hotkeys/src/HotkeysProvider.svelte | 2 + packages/svelte-hotkeys/src/formatForAria.ts | 12 + .../svelte-hotkeys/src/getFormatForAria.ts | 43 +++ packages/svelte-hotkeys/src/index.ts | 2 + .../svelte-hotkeys/src/internal.svelte.ts | 15 +- .../svelte-hotkeys/tests/conformance.test.ts | 10 +- .../tests/conformance/Format.svelte | 14 +- .../tests/conformance/Provider.svelte | 1 + .../vue-hotkeys/skills/vue-hotkeys/SKILL.md | 5 +- packages/vue-hotkeys/src/HotkeysProvider.tsx | 3 + .../vue-hotkeys/src/HotkeysProviderContext.ts | 15 +- packages/vue-hotkeys/src/formatForAria.ts | 12 + packages/vue-hotkeys/src/index.ts | 2 + packages/vue-hotkeys/src/useFormatForAria.ts | 45 +++ .../vue-hotkeys/tests/conformance.test.ts | 5 + test-utils/src/conformance/cases/provider.ts | 49 ++++ .../conformance/cases/recorder-hint-format.ts | 51 +++- test-utils/src/conformance/types.ts | 7 + 336 files changed, 5774 insertions(+), 854 deletions(-) create mode 100644 .changeset/format-for-aria.md create mode 100644 .changeset/suspend-character-keys.md create mode 100644 docs/framework/alpine/guides/accessibility.md create mode 100644 docs/framework/alpine/reference/variables/formatForAria.md create mode 100644 docs/framework/angular/guides/accessibility.md create mode 100644 docs/framework/angular/reference/functions/injectFormatForAria.md create mode 100644 docs/framework/angular/reference/variables/formatForAria.md create mode 100644 docs/framework/ember/guides/accessibility.md create mode 100644 docs/framework/ember/reference/functions/useFormatForAria.md create mode 100644 docs/framework/ember/reference/variables/formatForAria.md create mode 100644 docs/framework/lit/guides/accessibility.md create mode 100644 docs/framework/lit/reference/classes/FormatForAriaController.md create mode 100644 docs/framework/lit/reference/interfaces/FormatForAriaControllerOptions.md create mode 100644 docs/framework/lit/reference/variables/formatForAria.md create mode 100644 docs/framework/octane/guides/accessibility.md create mode 100644 docs/framework/octane/reference/functions/useFormatForAria.md create mode 100644 docs/framework/octane/reference/variables/formatForAria.md create mode 100644 docs/framework/preact/guides/accessibility.md create mode 100644 docs/framework/preact/reference/functions/useFormatForAria.md create mode 100644 docs/framework/preact/reference/variables/formatForAria.md create mode 100644 docs/framework/react/guides/accessibility.md create mode 100644 docs/framework/react/reference/functions/useFormatForAria.md create mode 100644 docs/framework/react/reference/variables/formatForAria.md create mode 100644 docs/framework/solid/guides/accessibility.md create mode 100644 docs/framework/solid/reference/functions/createFormatForAria.md create mode 100644 docs/framework/solid/reference/variables/formatForAria.md create mode 100644 docs/framework/svelte/guides/accessibility.md create mode 100644 docs/framework/svelte/reference/functions/getFormatForAria.md create mode 100644 docs/framework/svelte/reference/variables/formatForAria.md create mode 100644 docs/framework/vue/guides/accessibility.md create mode 100644 docs/framework/vue/reference/functions/useFormatForAria.md create mode 100644 docs/framework/vue/reference/variables/formatForAria.md create mode 100644 docs/reference/adapter/functions/createFormatter.md create mode 100644 docs/reference/functions/formatForAria.md create mode 100644 docs/reference/interfaces/FormatAriaOptions.md create mode 100644 packages/alpine-hotkeys/src/createFormatForAria.ts create mode 100644 packages/alpine-hotkeys/src/formatForAria.ts create mode 100644 packages/angular-hotkeys/src/formatForAria.ts create mode 100644 packages/angular-hotkeys/src/injectFormatForAria.ts create mode 100644 packages/ember-hotkeys/src/_formatter.ts create mode 100644 packages/ember-hotkeys/src/formatForAria.ts create mode 100644 packages/ember-hotkeys/src/useFormatForAria.ts create mode 100644 packages/hotkeys/src/_constants.ts delete mode 100644 packages/hotkeys/src/_named-keys.ts create mode 100644 packages/hotkeys/tests/character-keys.test.ts create mode 100644 packages/hotkeys/tests/format-aria.test.ts create mode 100644 packages/lit-hotkeys/src/controllers/_formatter-layout.ts create mode 100644 packages/lit-hotkeys/src/controllers/format-for-aria.ts create mode 100644 packages/lit-hotkeys/src/format-for-aria.ts create mode 100644 packages/octane-hotkeys/src/_useFormatter.ts create mode 100644 packages/octane-hotkeys/src/formatForAria.ts create mode 100644 packages/octane-hotkeys/src/useFormatForAria.ts create mode 100644 packages/preact-hotkeys/src/formatForAria.ts create mode 100644 packages/preact-hotkeys/src/useFormatForAria.ts create mode 100644 packages/react-hotkeys/src/formatForAria.ts create mode 100644 packages/react-hotkeys/src/useFormatForAria.ts create mode 100644 packages/solid-hotkeys/src/createFormatForAria.ts create mode 100644 packages/solid-hotkeys/src/formatForAria.ts create mode 100644 packages/svelte-hotkeys/src/formatForAria.ts create mode 100644 packages/svelte-hotkeys/src/getFormatForAria.ts create mode 100644 packages/vue-hotkeys/src/formatForAria.ts create mode 100644 packages/vue-hotkeys/src/useFormatForAria.ts diff --git a/.changeset/format-for-aria.md b/.changeset/format-for-aria.md new file mode 100644 index 000000000..47d307c1d --- /dev/null +++ b/.changeset/format-for-aria.md @@ -0,0 +1,23 @@ +--- +'@tanstack/hotkeys': minor +'@tanstack/react-hotkeys': minor +'@tanstack/preact-hotkeys': minor +'@tanstack/octane-hotkeys': minor +'@tanstack/solid-hotkeys': minor +'@tanstack/vue-hotkeys': minor +'@tanstack/svelte-hotkeys': minor +'@tanstack/angular-hotkeys': minor +'@tanstack/ember-hotkeys': minor +'@tanstack/lit-hotkeys': minor +'@tanstack/alpine-hotkeys': minor +--- + +Add `formatForAria` to format hotkeys for the `aria-keyshortcuts` attribute. `formatForAria('Mod+K')` returns `'Meta+K'` on macOS and `'Control+K'` elsewhere. Modifiers and keys follow the ARIA specification, using `Space` for the space bar, `Plus` for the plus key, and the key at that position for physical bindings. `formatForAria` returns `undefined` for multi-step sequences, standalone modifiers, empty hotkeys, and physical codes with no key value so the attribute is omitted. + +Each framework adapter exports a formatter that fills in the configured platform and the user's keyboard layout: + +- `useFormatForAria` (React, Preact, Octane, Vue, Ember) +- `createFormatForAria` (Solid, and on Alpine scopes) +- `getFormatForAria` (Svelte) +- `injectFormatForAria` (Angular) +- `FormatForAriaController` (Lit) diff --git a/.changeset/suspend-character-keys.md b/.changeset/suspend-character-keys.md new file mode 100644 index 000000000..3551fb307 --- /dev/null +++ b/.changeset/suspend-character-keys.md @@ -0,0 +1,17 @@ +--- +'@tanstack/hotkeys': minor +'@tanstack/react-hotkeys': minor +'@tanstack/preact-hotkeys': minor +'@tanstack/octane-hotkeys': minor +'@tanstack/solid-hotkeys': minor +'@tanstack/vue-hotkeys': minor +'@tanstack/svelte-hotkeys': minor +'@tanstack/angular-hotkeys': minor +'@tanstack/hotkeys-devtools': patch +--- + +Add `HotkeyManager.suspendCharacterKeys()` and the `suspendCharacterKeys` provider option so apps can let users turn off character key shortcuts for WCAG 2.1.4. + +A character key shortcut is a document-level hotkey whose every step types a character, alone or with `Shift`, such as `'K'`, `'?'`, `'Shift+K'`, `'Space'`, or `['G', 'H']`. While suspended, those hotkeys do not fire and report the status `'suspended'`. Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys such as `Escape` or `F1`, and hotkeys targeted at an element keep working. + +Suspensions are counted like scope activations, and `HotkeyScopesState` now includes `characterKeysSuspended`. Bind the provider option to a user setting with `` (or `provideHotkeys({ suspendCharacterKeys })` in Angular). diff --git a/docs/agent-skills.md b/docs/agent-skills.md index 30eaf7ec2..2e19fb187 100644 --- a/docs/agent-skills.md +++ b/docs/agent-skills.md @@ -34,7 +34,7 @@ The packages you install determine which skills are available: | `@tanstack/hotkeys` | `hotkeys-core`, `app-hotkeys` | Defaults versus raw `keydown` listeners, `enabled`, scopes, targets, sequences, testing, app hotkeys, and recording | | `@tanstack/-hotkeys` | `-hotkeys` | Framework bindings (such as `useHotkey` or `createHotkey`), provider scopes, pitfalls, and wiring app hotkeys | -Framework skills ship for all 10 adapters (React, Preact, Solid, Angular, Vue, Svelte, Lit, Alpine, Ember, and Octane) under `node_modules//skills//SKILL.md`. Task-specific guides live in `references/` and stay unloaded until needed, such as `references/scopes.md` for stacked dialogs. +Framework skills ship for every adapter (React, Preact, Solid, Angular, Vue, Svelte, Lit, Alpine, Ember, and Octane) under `node_modules//skills//SKILL.md`. Task-specific guides live in `references/` and stay unloaded until needed, such as `references/scopes.md` for stacked dialogs. ## Step 1: Install TanStack Hotkeys diff --git a/docs/config.json b/docs/config.json index 67e6dc3ec..d065b3b51 100644 --- a/docs/config.json +++ b/docs/config.json @@ -146,10 +146,6 @@ "label": "Sensible Defaults", "to": "guides/sensible-defaults" }, - { - "label": "Formatting & Display", - "to": "framework/react/guides/formatting-display" - }, { "label": "HotkeysProvider & Scopes", "to": "framework/react/guides/hotkeys-provider-and-scopes" @@ -171,10 +167,6 @@ "label": "Sensible Defaults", "to": "guides/sensible-defaults" }, - { - "label": "Formatting & Display", - "to": "framework/preact/guides/formatting-display" - }, { "label": "HotkeysProvider & Scopes", "to": "framework/preact/guides/hotkeys-provider-and-scopes" @@ -196,10 +188,6 @@ "label": "Sensible Defaults", "to": "guides/sensible-defaults" }, - { - "label": "Formatting & Display", - "to": "framework/solid/guides/formatting-display" - }, { "label": "HotkeysProvider & Scopes", "to": "framework/solid/guides/hotkeys-provider-and-scopes" @@ -221,10 +209,6 @@ "label": "Sensible Defaults", "to": "guides/sensible-defaults" }, - { - "label": "Formatting & Display", - "to": "framework/angular/guides/formatting-display" - }, { "label": "provideHotkeys & Scopes", "to": "framework/angular/guides/provide-hotkeys-and-scopes" @@ -246,10 +230,6 @@ "label": "Sensible Defaults", "to": "guides/sensible-defaults" }, - { - "label": "Formatting & Display", - "to": "framework/vue/guides/formatting-display" - }, { "label": "HotkeysProvider & Scopes", "to": "framework/vue/guides/hotkeys-provider-and-scopes" @@ -270,10 +250,6 @@ { "label": "Sensible Defaults", "to": "guides/sensible-defaults" - }, - { - "label": "Formatting & Display", - "to": "framework/lit/guides/formatting-display" } ] }, @@ -292,10 +268,6 @@ "label": "Sensible Defaults", "to": "guides/sensible-defaults" }, - { - "label": "Formatting & Display", - "to": "framework/svelte/guides/formatting-display" - }, { "label": "HotkeysProvider & Scopes", "to": "framework/svelte/guides/hotkeys-provider-and-scopes" @@ -316,10 +288,6 @@ { "label": "Sensible Defaults", "to": "guides/sensible-defaults" - }, - { - "label": "Formatting & Display", - "to": "framework/alpine/guides/formatting-display" } ] }, @@ -337,10 +305,6 @@ { "label": "Sensible Defaults", "to": "guides/sensible-defaults" - }, - { - "label": "Formatting & Display", - "to": "framework/ember/guides/formatting-display" } ] }, @@ -359,10 +323,6 @@ "label": "Sensible Defaults", "to": "guides/sensible-defaults" }, - { - "label": "Formatting & Display", - "to": "framework/octane/guides/formatting-display" - }, { "label": "HotkeysProvider & Scopes", "to": "framework/octane/guides/hotkeys-provider-and-scopes" @@ -387,6 +347,10 @@ "label": "Hotkey Recording", "to": "framework/react/guides/custom-hotkey-recording" }, + { + "label": "Formatting & Display", + "to": "framework/react/guides/formatting-display" + }, { "label": "Cheat Sheets", "to": "framework/react/guides/cheat-sheet-ui-helpers" @@ -398,6 +362,10 @@ { "label": "Held Keys", "to": "framework/react/guides/held-key-state-helpers" + }, + { + "label": "Accessibility", + "to": "framework/react/guides/accessibility" } ] }, @@ -412,6 +380,10 @@ "label": "Hotkey Recording", "to": "framework/preact/guides/custom-hotkey-recording" }, + { + "label": "Formatting & Display", + "to": "framework/preact/guides/formatting-display" + }, { "label": "Cheat Sheets", "to": "framework/preact/guides/cheat-sheet-ui-helpers" @@ -423,6 +395,10 @@ { "label": "Held Keys", "to": "framework/preact/guides/held-key-state-helpers" + }, + { + "label": "Accessibility", + "to": "framework/preact/guides/accessibility" } ] }, @@ -437,6 +413,10 @@ "label": "Hotkey Recording", "to": "framework/solid/guides/custom-hotkey-recording" }, + { + "label": "Formatting & Display", + "to": "framework/solid/guides/formatting-display" + }, { "label": "Cheat Sheets", "to": "framework/solid/guides/cheat-sheet-ui-helpers" @@ -448,6 +428,10 @@ { "label": "Held Keys", "to": "framework/solid/guides/held-key-state-helpers" + }, + { + "label": "Accessibility", + "to": "framework/solid/guides/accessibility" } ] }, @@ -462,6 +446,10 @@ "label": "Hotkey Recording", "to": "framework/angular/guides/custom-hotkey-recording" }, + { + "label": "Formatting & Display", + "to": "framework/angular/guides/formatting-display" + }, { "label": "Cheat Sheets", "to": "framework/angular/guides/cheat-sheet-ui-helpers" @@ -473,6 +461,10 @@ { "label": "Held Keys", "to": "framework/angular/guides/held-key-state-helpers" + }, + { + "label": "Accessibility", + "to": "framework/angular/guides/accessibility" } ] }, @@ -487,6 +479,10 @@ "label": "Hotkey Recording", "to": "framework/vue/guides/custom-hotkey-recording" }, + { + "label": "Formatting & Display", + "to": "framework/vue/guides/formatting-display" + }, { "label": "Cheat Sheets", "to": "framework/vue/guides/cheat-sheet-ui-helpers" @@ -498,6 +494,10 @@ { "label": "Held Keys", "to": "framework/vue/guides/held-key-state-helpers" + }, + { + "label": "Accessibility", + "to": "framework/vue/guides/accessibility" } ] }, @@ -512,6 +512,10 @@ "label": "Hotkey Recording", "to": "framework/lit/guides/custom-hotkey-recording" }, + { + "label": "Formatting & Display", + "to": "framework/lit/guides/formatting-display" + }, { "label": "Cheat Sheets", "to": "framework/lit/guides/cheat-sheet-ui-helpers" @@ -523,6 +527,10 @@ { "label": "Held Keys", "to": "framework/lit/guides/held-key-state-helpers" + }, + { + "label": "Accessibility", + "to": "framework/lit/guides/accessibility" } ] }, @@ -537,6 +545,10 @@ "label": "Hotkey Recording", "to": "framework/svelte/guides/custom-hotkey-recording" }, + { + "label": "Formatting & Display", + "to": "framework/svelte/guides/formatting-display" + }, { "label": "Cheat Sheets", "to": "framework/svelte/guides/cheat-sheet-ui-helpers" @@ -548,6 +560,10 @@ { "label": "Held Keys", "to": "framework/svelte/guides/held-key-state-helpers" + }, + { + "label": "Accessibility", + "to": "framework/svelte/guides/accessibility" } ] }, @@ -562,6 +578,10 @@ "label": "Hotkey Recording", "to": "framework/alpine/guides/custom-hotkey-recording" }, + { + "label": "Formatting & Display", + "to": "framework/alpine/guides/formatting-display" + }, { "label": "Cheat Sheets", "to": "framework/alpine/guides/cheat-sheet-ui-helpers" @@ -573,6 +593,10 @@ { "label": "Held Keys", "to": "framework/alpine/guides/held-key-state-helpers" + }, + { + "label": "Accessibility", + "to": "framework/alpine/guides/accessibility" } ] }, @@ -587,6 +611,10 @@ "label": "Hotkey Recording", "to": "framework/ember/guides/custom-hotkey-recording" }, + { + "label": "Formatting & Display", + "to": "framework/ember/guides/formatting-display" + }, { "label": "Cheat Sheets", "to": "framework/ember/guides/cheat-sheet-ui-helpers" @@ -598,6 +626,10 @@ { "label": "Held Keys", "to": "framework/ember/guides/held-key-state-helpers" + }, + { + "label": "Accessibility", + "to": "framework/ember/guides/accessibility" } ] }, @@ -612,6 +644,10 @@ "label": "Hotkey Recording", "to": "framework/octane/guides/custom-hotkey-recording" }, + { + "label": "Formatting & Display", + "to": "framework/octane/guides/formatting-display" + }, { "label": "Cheat Sheets", "to": "framework/octane/guides/cheat-sheet-ui-helpers" @@ -623,6 +659,10 @@ { "label": "Held Keys", "to": "framework/octane/guides/held-key-state-helpers" + }, + { + "label": "Accessibility", + "to": "framework/octane/guides/accessibility" } ] } diff --git a/docs/framework/alpine/guides/accessibility.md b/docs/framework/alpine/guides/accessibility.md new file mode 100644 index 000000000..81700cb7c --- /dev/null +++ b/docs/framework/alpine/guides/accessibility.md @@ -0,0 +1,116 @@ +--- +title: Accessible Keyboard Shortcuts in Alpine +id: accessibility +description: Make Alpine keyboard shortcuts accessible. Announce them to screen readers with aria-keyshortcuts, and let users turn off single-key shortcuts as WCAG 2.1.4 requires. +--- + +Keyboard shortcuts help people who navigate without a mouse, but shortcuts can get in the way of other assistive technology. Screen readers can't announce a shortcut unless the control sets `aria-keyshortcuts`. Speech input types words as key presses, which can fire single-letter shortcuts by accident. This guide covers what TanStack Hotkeys handles by default and what to add in your app. + +## What the library handles + +These protections are on by default: + +- **Typing in fields and widgets.** Single keys and `Shift` or `Alt` chords don't fire while focus is in a text field, ``, or `contenteditable` element. Native buttons keep `Enter` and `Space`, links keep `Enter`, and ARIA widgets such as menus, listboxes, tabs, and grids keep their navigation keys. Configure this with `ignoreInputs` (see [Hotkey options](./hotkeys#hotkey-options)). +- **Characters typed with AltGr.** On keyboards where AltGr types characters such as `@` or `€`, typing them doesn't fire `Control+Alt` hotkeys. +- **Open overlays.** While focus is inside a native ``, popover, or ARIA dialog or menu, outer `Escape` hotkeys stay out of the way so the overlay closes first (see [Let an open overlay handle Escape](../../../guides/sensible-defaults.md#let-an-open-overlay-handle-escape)). To suspend all other page hotkeys while a dialog is open, give the dialog component an [exclusive scope](./provide-hotkeys-and-scopes#exclusive-scopes). + +## Announce shortcuts to screen readers + +Screen readers announce a control's shortcut from its [`aria-keyshortcuts`](https://w3c.github.io/aria/#aria-keyshortcuts) attribute. A visible `` label isn't enough. Screen readers may read a `` label as plain text rather than as a shortcut, and they may not read a symbol such as `⌘` as `Command`. Call `injectFormatForAria()` to format a hotkey for the attribute using the same platform and keyboard layout as the display formatter: + +```ts +import { Component } from '@angular/core' +import { + injectAppHotkeys, + injectFormatForAria, + injectFormatForDisplay, +} from '@tanstack/angular-hotkeys' + +@Component({ + selector: 'app-search-button', + template: ` + @let hotkey = appHotkeys()['search.open'].hotkey; + + `, +}) +export class SearchButton { + appHotkeys = injectAppHotkeys() + formatForAria = injectFormatForAria() + formatForDisplay = injectFormatForDisplay() +} +``` + +Follow these rules when you add the attribute: + +- **Attach it to the target control.** Put `aria-keyshortcuts` on the button the shortcut activates or the field it focuses. The attribute only announces the shortcut, so register the hotkey as usual. +- **Keep the visible label.** Render a `` label alongside the attribute from the same hotkey so sighted and screen reader users see the same shortcut. +- **Document sequences in text.** ARIA has no syntax for multi-step sequences such as `['G', 'H']`, so the formatter returns `undefined` and `[attr.aria-keyshortcuts]` omits the attribute. List sequences in a [cheat sheet](./cheat-sheet-ui-helpers) instead. +- **Read from app hotkeys.** Pass the binding from [app hotkeys](./app-hotkeys) so `aria-keyshortcuts` updates when the user rebinds the shortcut. + +See [Format for `aria-keyshortcuts`](./formatting-display#format-for-aria-keyshortcuts) for the formatting rules and edge cases. + +## Let users turn off character key shortcuts + +[WCAG 2.1.4, Character Key Shortcuts](https://www.w3.org/WAI/WCAG22/Understanding/character-key-shortcuts.html) (Level A) covers shortcuts made only of keys that type a character, such as `K`, `?`, `Shift+K`, `Space`, or the sequence `['G', 'H']`. Speech input types words as key presses, and people with tremors press keys by accident, so these shortcuts fire when nobody meant them to. An app with character key shortcuts must provide at least one of these options: + +- A way to turn them off. +- A way to remap them to use `Control`, `Alt`, or `Meta`. +- Shortcuts that work only while a specific element has focus. + +### Turn them off + +Add a setting, such as **Single-key shortcuts**, and suspend character key shortcuts while it is off. Pass `suspendCharacterKeys` to `provideHotkeys` as a getter that reads the user's setting. While that injector lives, document-level character key shortcuts across the whole app stop firing, so providing it in the application config is enough: + +```ts +import { inject } from '@angular/core' +import { provideHotkeys } from '@tanstack/angular-hotkeys' + +export const appConfig: ApplicationConfig = { + providers: [ + provideHotkeys({ + // Runs in the provider's injection context, so it can read a service. + suspendCharacterKeys: () => !inject(Settings).characterKeyShortcuts(), + }), + ], +} +``` + +Suspensions are counted. Character key shortcuts stay off while any active provider evaluates `suspendCharacterKeys` to `true`, and they resume when the last one is destroyed or its value becomes `false`. `suspendCharacterKeys` applies even when the provider sets `enabled: false`. Outside a provider, call `getHotkeyManager().suspendCharacterKeys()`, which returns a function that resumes them. + +While suspended, an enabled character key shortcut reports the status `'suspended'` (the same as a hotkey in an inactive scope), so a [cheat sheet](./cheat-sheet-ui-helpers) can mark it as off. To display the current toggle state in a settings screen, read `characterKeysSuspended` from [scope state](./hotkey-manager#read-scope-state). + +These hotkeys keep working while character keys are suspended: + +| Hotkey | Why it keeps working | +| --- | --- | +| `Mod+K`, `Control+K`, `Alt+K` | Uses `Control`, `Alt`, or `Meta`. | +| `Escape`, `Enter`, `Tab`, `ArrowUp`, `F1` | Does not type a character. | +| `['Mod+K', 'C']` | At least one step uses a modifier or a non-character key. | +| A hotkey with an element `target` | Fires only while focus is inside that element. | + +Suspension checks the effective hotkey, so an app hotkey remapped from `K` to `Mod+K` works even while character keys are suspended. + +### Let users remap them + +[App hotkeys](./app-hotkeys) with a [shortcut settings screen](./custom-hotkey-recording) meet WCAG 2.1.4 on their own, as long as users can rebind every character key shortcut to one with a modifier. Offering both a toggle and remapping lets users either disable single-key shortcuts or rebind individual ones. + +### Scope them to an element + +A hotkey with an element `target` fires only while focus is inside that element. Use `target` for shortcuts that belong to one widget, such as `J` and `K` in a list. See [Hotkey targets](./hotkeys#hotkey-targets). + +## Make shortcuts discoverable + +List every shortcut in a [cheat sheet](./cheat-sheet-ui-helpers), and show [modifier hints](./hotkey-hints) while a modifier is held. For physical-key bindings, use `injectFormatForDisplay()` so labels match the user's keyboard layout (see [Keyboard layouts](./keyboard-layouts)). + +## Leave assistive technology its keys + +Screen readers use single keys in browse mode and handle them before the page sees them. NVDA, for example, moves by heading with `H` and by link with `K`. Use `Mod` chords for app-wide actions, and reserve single-key shortcuts for focused widgets or an opt-in setting. Avoid binding browser or system shortcuts such as `Mod+L` or `Mod+W`. diff --git a/docs/framework/angular/guides/cheat-sheet-ui-helpers.md b/docs/framework/angular/guides/cheat-sheet-ui-helpers.md index 22999b7e9..f4d209c89 100644 --- a/docs/framework/angular/guides/cheat-sheet-ui-helpers.md +++ b/docs/framework/angular/guides/cheat-sheet-ui-helpers.md @@ -90,7 +90,7 @@ export class ShortcutListComponent { Filtering by `meta?.name` omits unnamed helper shortcuts, such as a dialog's `Escape`. Checking `status === 'active'` hides paused shortcuts: - `'active'` means the hotkey is enabled and in an active scope -- `'suspended'` means it is enabled, but its [scope](./provide-hotkeys-and-scopes) is inactive or suspended by an exclusive scope +- `'suspended'` means it is enabled, but its [scope](./provide-hotkeys-and-scopes) is inactive or suspended by an exclusive scope, or it is a character key shortcut while [character keys are suspended](./accessibility#turn-them-off) - `'disabled'` means `enabled: false` was set Each entry also includes `id`, `hotkey`, `options`, `target`, and `triggerCount`. Chord entries (`kind === 'chord'`) add `parsedChord`, and sequence entries (`kind === 'sequence'`) add `parsedSequence` and `matchedStepCount` (used in [Show sequences in your UI](./sequences#show-sequences-in-your-ui)). If several components register the same shortcut, such as rows in a list, each registration appears as its own entry. @@ -126,7 +126,7 @@ export class CheatSheetComponent { | Status | Meaning | | --- | --- | | `'active'` | At least one enabled registration in an active scope | -| `'suspended'` | Enabled registrations exist, but none in an active scope | +| `'suspended'` | Enabled registrations exist, but none can fire: their scope is inactive, or character keys are suspended | | `'disabled'` | Registered, but every registration has `enabled: false` | | `'inactive'` | Has a hotkey assigned, but no component has registered it yet | | `'unbound'` | No hotkey assigned (`null`) | diff --git a/docs/framework/angular/guides/formatting-display.md b/docs/framework/angular/guides/formatting-display.md index 4c6032719..9dcdb8a65 100644 --- a/docs/framework/angular/guides/formatting-display.md +++ b/docs/framework/angular/guides/formatting-display.md @@ -35,7 +35,7 @@ export class SaveButtonComponent { } ``` -The label is `⌘ S` on macOS and `Ctrl+S` on Windows and Linux. `injectFormatForDisplay` fills in two things for you: +The label is `⌘ S` on macOS and `Ctrl+S` on Windows and Linux. `injectFormatForDisplay` fills in the following for you: - **Platform.** Reads the nearest `provideHotkeys`, or detects it from `navigator` when there is none. - **Keyboard layout.** For physical codes such as `[KeyW]`, reads the user's keyboard layout in Chromium browsers. See [Label physical keys for the user's keyboard](#label-physical-keys-for-the-users-keyboard). @@ -161,6 +161,39 @@ formatForDisplay('Mod+[KeyQ]', { `keyLabels` wins over a layout entry, which wins over the fallback label. Layout entries get normal letter casing and key symbols, and missing or empty entries fall back. All of these options affect display only. `keyLabels` works anywhere, including on the server. +## Format for `aria-keyshortcuts` + +`injectFormatForAria()` returns a function that formats a hotkey for the [`aria-keyshortcuts`](https://w3c.github.io/aria/#aria-keyshortcuts) attribute so screen readers can announce it. It uses the same platform and keyboard layout as the display formatter. See [Accessibility](./accessibility#announce-shortcuts-to-screen-readers) for where to place the attribute. + +```ts +import { Component } from '@angular/core' +import { + injectFormatForAria, + injectFormatForDisplay, +} from '@tanstack/angular-hotkeys' + +@Component({ + selector: 'app-search-button', + template: ` + + `, +}) +export class SearchButton { + formatForAria = injectFormatForAria() + formatForDisplay = injectFormatForDisplay() +} +``` + +The output uses the key names from the ARIA specification: + +- **Modifiers.** `Mod` becomes `Meta` on macOS and `Control` elsewhere. Modifiers use `Control`, `Alt`, `Shift`, and `Meta` in that order before the key, so `Mod+Shift+P` formats as `Shift+Meta+P` on macOS. +- **Keys.** Keys use `KeyboardEvent.key` values (`K`, `/`, `Escape`, `ArrowUp`), with `Space` for the space bar and `Plus` for the plus key. A physical binding names the key at that position from the user's keyboard layout where the browser reports it, so `[KeyQ]` formats as `Q`, or `A` on a French AZERTY keyboard. A logical hotkey's punctuation stays as written, so `'?'` formats as `?` rather than the `Shift+/` you press on a US keyboard. The key that types `?` depends on the layout. To name the key, bind it physically, such as `Shift+[Slash]`. +- **No value.** Returns `undefined` for a multi-step sequence, a standalone modifier, an empty or `null` hotkey, or a physical code with no key name such as `[NumpadMemoryAdd]`, so `[attr.aria-keyshortcuts]` omits the attribute. ARIA has no syntax for multi-step sequences. + +For a control with two shortcuts, join both formatted values with a space, such as `Control+K /`. + ## Server-side rendering Pass `platform` to `provideHotkeys` from the incoming request so the server renders the right labels, or render labels only in the browser on prerendered pages. See [SSR & Hydration](./ssr) for Angular SSR, Analog, and static page examples. @@ -180,6 +213,8 @@ The plain function takes the same options as the function from `injectFormatForD > [!NOTE] > `formatForDisplay` is marked `@deprecated` so editor autocomplete nudges component code toward `injectFormatForDisplay`. Outside components, calling it directly is expected. +For `aria-keyshortcuts` outside a component, call `formatForAria` directly with `platform` and an optional `layoutMap`. For example, `formatForAria('Mod+S', { platform: 'mac' })` returns `'Meta+S'`. Like `formatForDisplay`, the plain export is marked `@deprecated`, so editors point component code to the adapter's formatter. + ## Parse, compare, and store hotkeys `parseHotkey` returns each chord's key, as either a logical `key` or a physical `code`, plus its modifiers with `Mod` resolved. Check which one is present before reading it: diff --git a/docs/framework/angular/guides/hotkey-manager.md b/docs/framework/angular/guides/hotkey-manager.md index 4f08229c3..9badaed16 100644 --- a/docs/framework/angular/guides/hotkey-manager.md +++ b/docs/framework/angular/guides/hotkey-manager.md @@ -91,7 +91,7 @@ close.unregister() releaseScope() ``` -`activateScope` returns a function that releases the scope. A scope stays active until every activation of it is released. `activateScope` takes two options: +`activateScope` returns a function that releases the scope. A scope stays active until every activation of it is released. `activateScope` takes these options: - `exclusive` suspends every other scope, including `'global'`, while this scope is active. Pass `{ allow: ['global'] }` to keep the listed scopes working. - `parent` names the scope this one is nested in, so this scope takes precedence over it. The default is `'global'`. @@ -128,6 +128,17 @@ export class KeyboardOwnerComponent { The [devtools](../../../devtools) show the same scope state without any code. +## Suspend character key shortcuts + +Call `manager.suspendCharacterKeys()` to pause document-level hotkeys made only of keys that type a character, such as `K`, `Shift+/`, or `['G', 'H']`. Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys such as `Escape`, and hotkeys targeted at an element keep working. Suspensions are counted like scope activations, so character key shortcuts stay suspended until every returned resume function runs: + +```ts +const resume = manager.suspendCharacterKeys() +resume() +``` + +Read `manager.scopes.state.characterKeysSuspended` to check whether character keys are suspended. In Angular apps, pass the `suspendCharacterKeys` option to `provideHotkeys` instead. See [Accessibility](./accessibility#let-users-turn-off-character-key-shortcuts). + ## Reset sequence progress `manager.resetSequenceProgress()` clears the steps the user has pressed in every sequence. Call it when an action in your app should cancel a sequence the user has started. diff --git a/docs/framework/angular/guides/hotkeys.md b/docs/framework/angular/guides/hotkeys.md index 6d9f10fe3..869781a38 100644 --- a/docs/framework/angular/guides/hotkeys.md +++ b/docs/framework/angular/guides/hotkeys.md @@ -274,9 +274,9 @@ export class RichTextEditorComponent { } ``` -The shared `target` makes all three hotkeys listen on the editor only. [Hotkey targets](#hotkey-targets) explains targets. Passing the array as a function lets `enabled` follow the `canUndo` signal. +The shared `target` makes every hotkey in the list listen on the editor only. [Hotkey targets](#hotkey-targets) explains targets. Passing the array as a function lets `enabled` follow the `canUndo` signal. -Options merge in three layers: defaults from the provider first, then the shared options, then per-item options. +Options merge in layers: defaults from the provider first, then the shared options, then per-item options. ### Build the list from data diff --git a/docs/framework/angular/guides/keyboard-layouts.md b/docs/framework/angular/guides/keyboard-layouts.md index df87c6d2c..29f4f6af0 100644 --- a/docs/framework/angular/guides/keyboard-layouts.md +++ b/docs/framework/angular/guides/keyboard-layouts.md @@ -56,7 +56,7 @@ injectHotkey('Mod+Ñ', () => this.search()) // Type error: Spanish isn't registe ## Available key sets -26 exported sets cover 33 layouts. Identical layouts share aliases, such as `AustrianKeys` and `GermanKeys`. Each set includes characters typed unshifted or with `Shift` across Windows, macOS, and Linux, excluding dead keys and `AltGr` or `Option` characters: +Identical layouts share a set under several aliases, such as `AustrianKeys` and `GermanKeys`. Each set includes characters typed unshifted or with `Shift` across Windows, macOS, and Linux, excluding dead keys and `AltGr` or `Option` characters: | Set | Layouts | | --- | --- | diff --git a/docs/framework/angular/guides/provide-hotkeys-and-scopes.md b/docs/framework/angular/guides/provide-hotkeys-and-scopes.md index 9ecc014ab..03ca22f20 100644 --- a/docs/framework/angular/guides/provide-hotkeys-and-scopes.md +++ b/docs/framework/angular/guides/provide-hotkeys-and-scopes.md @@ -357,6 +357,10 @@ export const appHotkeys = defineAppHotkeys({ For UI that Angular doesn't render, such as a dialog from another library, activate a scope on the hotkey manager. See [Activate a scope](./hotkey-manager#activate-a-scope). +## Suspend character key shortcuts + +Pass `suspendCharacterKeys` to `provideHotkeys` to pause document-level character key shortcuts, such as `K` or `['G', 'H']`, across the app while it evaluates to `true`. Suspended hotkeys report the status `'suspended'`, like hotkeys in an inactive scope, and the option applies even when `enabled` is `false`. Wire it to a user setting as shown in [Accessibility](./accessibility#let-users-turn-off-character-key-shortcuts). + ## Inspect scopes The [devtools](../../../devtools) group registrations by scope and show which scopes are active, suspended, allowed, or exclusive. To read the same state in your own UI, see [Read scope state](./hotkey-manager#read-scope-state). diff --git a/docs/framework/angular/reference/functions/injectDefaultHotkeysOptions.md b/docs/framework/angular/reference/functions/injectDefaultHotkeysOptions.md index 983c5634b..47e221e66 100644 --- a/docs/framework/angular/reference/functions/injectDefaultHotkeysOptions.md +++ b/docs/framework/angular/reference/functions/injectDefaultHotkeysOptions.md @@ -9,7 +9,7 @@ title: injectDefaultHotkeysOptions function injectDefaultHotkeysOptions(): HotkeysProviderOptions; ``` -Defined in: [hotkeys-provider.ts:310](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L310) +Defined in: [hotkeys-provider.ts:320](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L320) Returns the nearest provider's default options as they are when injected. The value doesn't update when signal-driven defaults change. To follow diff --git a/docs/framework/angular/reference/functions/injectFormatForAria.md b/docs/framework/angular/reference/functions/injectFormatForAria.md new file mode 100644 index 000000000..d8be732fa --- /dev/null +++ b/docs/framework/angular/reference/functions/injectFormatForAria.md @@ -0,0 +1,99 @@ +--- +id: injectFormatForAria +title: injectFormatForAria +--- + + + +```ts +function injectFormatForAria(): (hotkey, options) => string | undefined; +``` + +Defined in: injectFormatForAria.ts:36 + +Returns `formatForAria` with the provider's `platform` as the default. Use +its value for `aria-keyshortcuts`, so screen readers announce the shortcut. +It returns `undefined` for a multi-step sequence or no hotkey, so an +`[attr.aria-keyshortcuts]` binding omits the attribute. Call it in an +injection context, such as a field initializer; the returned function works +anywhere, including templates. An explicit `platform` option wins. + +Physical bindings such as `[KeyQ]` name the key the user presses in +Chromium browsers, once the keyboard layout has loaded, and templates +update when it arrives. See `injectKeyboardLayout`. A `layoutMap` passed to +the returned function wins. + +Server-rendered apps should set the provider's `defaultOptions.platform` +from the request user agent, such as +`detectPlatform(inject(REQUEST)?.headers.get('user-agent'))`. + +## Returns + +```ts +(hotkey, options?): string | undefined; +``` + +Formats a hotkey for an `aria-keyshortcuts` attribute so screen readers can +announce the shortcut. `Mod+K` becomes `Meta+K` on macOS and `Control+K` +elsewhere. + +Modifiers use the ARIA names (`Control`, `Alt`, `Shift`, `Meta`) and come +before the key. Keys use `KeyboardEvent.key` values, such as `K`, `/`, +`Escape`, or `ArrowUp`, with `Space` for the space bar and `Plus` for the +plus key. A physical binding names the key at that position, so `[KeyQ]` +becomes `Q`, or the key from `layoutMap` such as `A` on a French AZERTY +keyboard. Logical punctuation stays as written, so `'?'` stays `?` even +where it takes Shift to type. + +Returns `undefined` when the hotkey has no ARIA form, so the attribute is +omitted. This applies to empty or `null` hotkeys, multi-step sequences, +standalone modifiers, and physical codes with no key value such as +`[NumpadMemoryAdd]`. A one-step sequence formats like its chord. + +For a control with two shortcuts, join both formatted values with a space. +In a server-rendered app, use your adapter's formatter or pass `platform`. +Without a `platform` option, `formatForAria` uses `'linux'` on the server, +like `formatForDisplay`. + +### Parameters + +#### hotkey + +`DisplayHotkey` \| `null` \| `undefined` + +A hotkey string, raw object, parsed chord, or nothing + +#### options? + +`FormatAriaOptions` = `{}` + +The platform and keyboard layout + +### Returns + +`string` \| `undefined` + +The attribute value, or `undefined` when there is none + +### Example + +```ts +formatForAria('Mod+K', { platform: 'mac' }) // 'Meta+K' +formatForAria('Mod+Shift+P', { platform: 'windows' }) // 'Control+Shift+P' +formatForAria('Shift+Space') // 'Shift+Space' +formatForAria(['G', 'H']) // undefined +``` + +## Example + +```ts +@Component({ + selector: 'app-search-button', + template: ` + + `, +}) +export class SearchButton { + formatForAria = injectFormatForAria() +} +``` diff --git a/docs/framework/angular/reference/functions/injectHotkeysContext.md b/docs/framework/angular/reference/functions/injectHotkeysContext.md index b36ee2908..9a1302212 100644 --- a/docs/framework/angular/reference/functions/injectHotkeysContext.md +++ b/docs/framework/angular/reference/functions/injectHotkeysContext.md @@ -9,7 +9,7 @@ title: injectHotkeysContext function injectHotkeysContext(): HotkeysContextValue; ``` -Defined in: [hotkeys-provider.ts:300](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L300) +Defined in: [hotkeys-provider.ts:310](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L310) Returns the nearest provider's context. Injecting it activates that provider's scope. diff --git a/docs/framework/angular/reference/functions/provideHotkeys.md b/docs/framework/angular/reference/functions/provideHotkeys.md index e152f2d9e..792ea8fbb 100644 --- a/docs/framework/angular/reference/functions/provideHotkeys.md +++ b/docs/framework/angular/reference/functions/provideHotkeys.md @@ -9,7 +9,7 @@ title: provideHotkeys function provideHotkeys(options?): Provider; ``` -Defined in: [hotkeys-provider.ts:289](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L289) +Defined in: [hotkeys-provider.ts:299](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L299) Provides default options, app hotkeys, and the user's custom hotkeys to an injector, such as the application or a component. diff --git a/docs/framework/angular/reference/index.md b/docs/framework/angular/reference/index.md index d2aad9bdb..2b95b7ac0 100644 --- a/docs/framework/angular/reference/index.md +++ b/docs/framework/angular/reference/index.md @@ -26,6 +26,7 @@ title: "@tanstack/angular-hotkeys" ## Variables +- [~~formatForAria~~](variables/formatForAria.md) - [~~formatForDisplay~~](variables/formatForDisplay.md) - [HOTKEYS\_INJECTION\_TOKEN](variables/HOTKEYS_INJECTION_TOKEN.md) @@ -35,6 +36,7 @@ title: "@tanstack/angular-hotkeys" - [injectAppHotkeys](functions/injectAppHotkeys.md) - [injectCustomHotkeys](functions/injectCustomHotkeys.md) - [injectDefaultHotkeysOptions](functions/injectDefaultHotkeysOptions.md) +- [injectFormatForAria](functions/injectFormatForAria.md) - [injectFormatForDisplay](functions/injectFormatForDisplay.md) - [injectHeldKeyCodes](functions/injectHeldKeyCodes.md) - [injectHeldKeys](functions/injectHeldKeys.md) diff --git a/docs/framework/angular/reference/interfaces/HotkeysContextValue.md b/docs/framework/angular/reference/interfaces/HotkeysContextValue.md index 8653ad071..ee0a51a9c 100644 --- a/docs/framework/angular/reference/interfaces/HotkeysContextValue.md +++ b/docs/framework/angular/reference/interfaces/HotkeysContextValue.md @@ -5,7 +5,7 @@ title: HotkeysContextValue -Defined in: [hotkeys-provider.ts:93](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L93) +Defined in: [hotkeys-provider.ts:97](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L97) ## Properties @@ -17,7 +17,7 @@ readonly appHotkeysState: Signal< | null>; ``` -Defined in: [hotkeys-provider.ts:103](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L103) +Defined in: [hotkeys-provider.ts:107](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L107) Tracks app hotkeys and custom hotkeys so signals and effects re-run. @@ -31,7 +31,7 @@ readonly appHotkeysStore: | null; ``` -Defined in: [hotkeys-provider.ts:101](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L101) +Defined in: [hotkeys-provider.ts:105](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L105) *** @@ -41,7 +41,7 @@ Defined in: [hotkeys-provider.ts:101](https://github.com/TanStack/hotkeys/blob/m readonly defaultOptions: HotkeysProviderOptions; ``` -Defined in: [hotkeys-provider.ts:98](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L98) +Defined in: [hotkeys-provider.ts:102](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L102) Merged with every ancestor provider's defaults, including `hotkey.scope`. Reading it in a `computed` or `effect` tracks changes to the defaults. @@ -54,6 +54,6 @@ Reading it in a `computed` or `effect` tracks changes to the defaults. readonly enabled: Signal; ``` -Defined in: [hotkeys-provider.ts:100](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L100) +Defined in: [hotkeys-provider.ts:104](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L104) Whether this provider and every ancestor are enabled. diff --git a/docs/framework/angular/reference/interfaces/ProvideHotkeysOptions.md b/docs/framework/angular/reference/interfaces/ProvideHotkeysOptions.md index a8e59dd9c..a486e4bd3 100644 --- a/docs/framework/angular/reference/interfaces/ProvideHotkeysOptions.md +++ b/docs/framework/angular/reference/interfaces/ProvideHotkeysOptions.md @@ -17,7 +17,7 @@ Options for `provideHotkeys`. optional appHotkeys?: Readonly>>; ``` -Defined in: [hotkeys-provider.ts:81](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L81) +Defined in: [hotkeys-provider.ts:85](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L85) Every app hotkey, from `defineAppHotkeys`. Listed by `injectAppHotkeyList` whether or not they are registered. @@ -33,7 +33,7 @@ optional customHotkeys?: MaybeGetter< | undefined>; ``` -Defined in: [hotkeys-provider.ts:88](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L88) +Defined in: [hotkeys-provider.ts:92](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L92) The user's saved custom hotkeys. When the value changes, such as after saved data loads or the user signs in, it replaces the current custom @@ -90,7 +90,7 @@ See `HotkeysProviderScopeProps['exclusive']`. optional onCustomHotkeysChange?: (customHotkeys) => void; ``` -Defined in: [hotkeys-provider.ts:90](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L90) +Defined in: [hotkeys-provider.ts:94](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L94) Called with the custom hotkeys after every change, ready to save. @@ -115,6 +115,18 @@ optional scope?: MaybeGetter; Defined in: [hotkeys-provider.ts:72](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L72) See `HotkeysProviderScopeProps['scope']`. Getters, here and for -`exclusive` and `enabled`, run in the provider's injection context, so +`exclusive`, `enabled`, and `suspendCharacterKeys`, run in the provider's injection context, so they can `inject()` the component that provides them and read its signals. + +*** + +### suspendCharacterKeys? + +```ts +optional suspendCharacterKeys?: MaybeGetter; +``` + +Defined in: [hotkeys-provider.ts:78](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L78) + +See `HotkeysProviderScopeProps['suspendCharacterKeys']`. diff --git a/docs/framework/angular/reference/variables/HOTKEYS_INJECTION_TOKEN.md b/docs/framework/angular/reference/variables/HOTKEYS_INJECTION_TOKEN.md index 7534d92f8..9321779e4 100644 --- a/docs/framework/angular/reference/variables/HOTKEYS_INJECTION_TOKEN.md +++ b/docs/framework/angular/reference/variables/HOTKEYS_INJECTION_TOKEN.md @@ -9,4 +9,4 @@ title: HOTKEYS_INJECTION_TOKEN const HOTKEYS_INJECTION_TOKEN: InjectionToken; ``` -Defined in: [hotkeys-provider.ts:114](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L114) +Defined in: [hotkeys-provider.ts:118](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L118) diff --git a/docs/framework/angular/reference/variables/formatForAria.md b/docs/framework/angular/reference/variables/formatForAria.md new file mode 100644 index 000000000..08dfe3a2b --- /dev/null +++ b/docs/framework/angular/reference/variables/formatForAria.md @@ -0,0 +1,22 @@ +--- +id: formatForAria +title: formatForAria +--- + + + +```ts +const formatForAria: typeof coreFormatForAria = coreFormatForAria; +``` + +Defined in: formatForAria.ts:12 + +Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or +the user's keyboard layout. + +## Deprecated + +Use `injectFormatForAria()` in an injection context, such as a +component's field initializer. It returns this function with the provider's +platform and the user's keyboard layout filled in. Outside an injection +context, keep calling this function and pass `platform` yourself. diff --git a/docs/framework/ember/guides/accessibility.md b/docs/framework/ember/guides/accessibility.md new file mode 100644 index 000000000..a0fceb59c --- /dev/null +++ b/docs/framework/ember/guides/accessibility.md @@ -0,0 +1,104 @@ +--- +title: Accessible Keyboard Shortcuts in Ember +id: accessibility +description: Make Ember keyboard shortcuts accessible. Announce them to screen readers with aria-keyshortcuts, and let users turn off single-key shortcuts as WCAG 2.1.4 requires. +--- + +Keyboard shortcuts help people who navigate without a mouse, but shortcuts can get in the way of other assistive technology. Screen readers can't announce a shortcut unless the control sets `aria-keyshortcuts`. Speech input types words as key presses, which can fire single-letter shortcuts by accident. This guide covers what TanStack Hotkeys handles by default and what to add in your app. + +## What the library handles + +These protections are on by default: + +- **Typing in fields and widgets.** Single keys and `Shift` or `Alt` chords don't fire while focus is in a text field, ``, or `contenteditable` element. Native buttons keep `Enter` and `Space`, links keep `Enter`, and ARIA widgets such as menus, listboxes, tabs, and grids keep their navigation keys. Configure this with `ignoreInputs` (see [Hotkey options](./hotkeys#hotkey-options)). +- **Characters typed with AltGr.** On keyboards where AltGr types characters such as `@` or `€`, typing them doesn't fire `Control+Alt` hotkeys. +- **Open overlays.** While focus is inside a native ``, popover, or ARIA dialog or menu, outer `Escape` hotkeys stay out of the way so the overlay closes first (see [Let an open overlay handle Escape](../../../guides/sensible-defaults.md#let-an-open-overlay-handle-escape)). To suspend all other page hotkeys while a dialog is open, activate an exclusive [scope](./hotkey-manager#activate-a-scope). + +## Announce shortcuts to screen readers + +Screen readers announce a control's shortcut from its [`aria-keyshortcuts`](https://w3c.github.io/aria/#aria-keyshortcuts) attribute. A visible `` label isn't enough. Screen readers may read a `` label as plain text rather than as a shortcut, and they may not read a symbol such as `⌘` as `Command`. Create a `FormatForAriaController` to format a hotkey for the attribute using the same platform and keyboard layout as the display controller: + +```ts +import { LitElement, html } from 'lit' +import { ifDefined } from 'lit/directives/if-defined.js' +import { + FormatForAriaController, + FormatForDisplayController, +} from '@tanstack/lit-hotkeys' + +class SearchButton extends LitElement { + private formatForAria = new FormatForAriaController(this) + private formatForDisplay = new FormatForDisplayController(this) + + render() { + return html` + + ` + } +} +``` + +Follow these rules when you add the attribute: + +- **Attach it to the target control.** Put `aria-keyshortcuts` on the button the shortcut activates or the field it focuses. The attribute only announces the shortcut, so register the hotkey as usual. +- **Keep the visible label.** Render a `` label alongside the attribute from the same hotkey so sighted and screen reader users see the same shortcut. +- **Document sequences in text.** ARIA has no syntax for multi-step sequences such as `['G', 'H']`, so the formatter returns `undefined` and `ifDefined` omits the attribute. List sequences in a [cheat sheet](./cheat-sheet-ui-helpers) instead. +- **Read from app hotkeys.** Pass the binding from [app hotkeys](./app-hotkeys) so `aria-keyshortcuts` updates when the user rebinds the shortcut. + +See [Format for `aria-keyshortcuts`](./formatting-display#format-for-aria-keyshortcuts) for the formatting rules and edge cases. + +## Let users turn off character key shortcuts + +[WCAG 2.1.4, Character Key Shortcuts](https://www.w3.org/WAI/WCAG22/Understanding/character-key-shortcuts.html) (Level A) covers shortcuts made only of keys that type a character, such as `K`, `?`, `Shift+K`, `Space`, or the sequence `['G', 'H']`. Speech input types words as key presses, and people with tremors press keys by accident, so these shortcuts fire when nobody meant them to. An app with character key shortcuts must provide at least one of these options: + +- A way to turn them off. +- A way to remap them to use `Control`, `Alt`, or `Meta`. +- Shortcuts that work only while a specific element has focus. + +### Turn them off + +Add a setting, such as **Single-key shortcuts**, and suspend character key shortcuts while it is off. Lit has no provider, so call `getHotkeyManager().suspendCharacterKeys()`, which returns a function that resumes them. Keep that function and call it when the user turns the shortcuts back on: + +```ts +import { getHotkeyManager } from '@tanstack/lit-hotkeys' + +let resume: (() => void) | undefined + +/** Call when the setting loads and whenever the user changes it. */ +export function setCharacterKeyShortcuts(on: boolean) { + if (on) { + resume?.() + resume = undefined + } else { + resume ??= getHotkeyManager().suspendCharacterKeys() + } +} +``` + +Suspensions are counted. Character key shortcuts stay off until every returned resume function runs, so two parts of an app can't undo each other. + +While suspended, an enabled character key shortcut reports the status `'suspended'` (the same as a hotkey in an inactive scope), so a [cheat sheet](./cheat-sheet-ui-helpers) can mark it as off. To display the current toggle state in a settings screen, read `characterKeysSuspended` from [scope state](./hotkey-manager#read-scope-state). + +These hotkeys keep working while character keys are suspended: + +| Hotkey | Why it keeps working | +| --- | --- | +| `Mod+K`, `Control+K`, `Alt+K` | Uses `Control`, `Alt`, or `Meta`. | +| `Escape`, `Enter`, `Tab`, `ArrowUp`, `F1` | Does not type a character. | +| `['Mod+K', 'C']` | At least one step uses a modifier or a non-character key. | +| A hotkey with an element `target` | Fires only while focus is inside that element. | + +Suspension checks the effective hotkey, so an app hotkey remapped from `K` to `Mod+K` works even while character keys are suspended. + +### Let users remap them + +[App hotkeys](./app-hotkeys) with a [shortcut settings screen](./custom-hotkey-recording) meet WCAG 2.1.4 on their own, as long as users can rebind every character key shortcut to one with a modifier. Offering both a toggle and remapping lets users either disable single-key shortcuts or rebind individual ones. + +### Scope them to an element + +A hotkey with an element `target` fires only while focus is inside that element. Use `target` for shortcuts that belong to one widget, such as `J` and `K` in a list. See [Hotkey targets](./hotkeys#hotkey-targets). + +## Make shortcuts discoverable + +List every shortcut in a [cheat sheet](./cheat-sheet-ui-helpers), and show [modifier hints](./hotkey-hints) while a modifier is held. For physical-key bindings, use `FormatForDisplayController` so labels match the user's keyboard layout (see [Keyboard layouts](./keyboard-layouts)). + +## Leave assistive technology its keys + +Screen readers use single keys in browse mode and handle them before the page sees them. NVDA, for example, moves by heading with `H` and by link with `K`. Use `Mod` chords for app-wide actions, and reserve single-key shortcuts for focused widgets or an opt-in setting. Avoid binding browser or system shortcuts such as `Mod+L` or `Mod+W`. diff --git a/docs/framework/lit/guides/cheat-sheet-ui-helpers.md b/docs/framework/lit/guides/cheat-sheet-ui-helpers.md index 020ec3b9c..58321988a 100644 --- a/docs/framework/lit/guides/cheat-sheet-ui-helpers.md +++ b/docs/framework/lit/guides/cheat-sheet-ui-helpers.md @@ -83,7 +83,7 @@ class ShortcutList extends LitElement { Filtering by name leaves out hotkeys you didn't mean to list, such as a dialog's `Escape`. Filtering by `status` leaves only the hotkeys that are on right now. -`status` is `'active'` when the hotkey is enabled and its scope is active, `'suspended'` when its [scope](./hotkey-manager#activate-a-scope) is inactive or suspended by an exclusive scope, and `'disabled'` when it has `enabled: false`. `HotkeyRegistrationsController` updates when scopes change, so the list stays current. +`status` is `'active'` when the hotkey is enabled and its scope is active, `'suspended'` when its [scope](./hotkey-manager#activate-a-scope) is inactive or suspended by an exclusive scope or it is a character key shortcut while [character keys are suspended](./accessibility#turn-them-off), and `'disabled'` when it has `enabled: false`. `HotkeyRegistrationsController` updates when scopes change, so the list stays current. Each registration view has an `id`, the `hotkey`, a `status`, its `options` (including `meta`, `enabled`, and `scope`), its `target`, and a `triggerCount`. Narrow with `kind`: chord views add `parsedChord`, and sequence views add `parsedSequence` and `matchedStepCount`, the number of steps the user has pressed so far. [Show sequences in your UI](./sequences#show-sequences-in-your-ui) uses it to show which keys the user has pressed. @@ -127,7 +127,7 @@ class CheatSheet extends LitElement { | Status | Meaning | | --- | --- | | `'active'` | At least one enabled registration | -| `'suspended'` | Has an enabled registration, but none in an active scope | +| `'suspended'` | Has an enabled registration, but none can fire: its scope is inactive, or character keys are suspended | | `'disabled'` | Registered, but every registration has `enabled: false` | | `'inactive'` | Has a hotkey, but nothing has registered it | | `'unbound'` | No hotkey assigned | diff --git a/docs/framework/lit/guides/formatting-display.md b/docs/framework/lit/guides/formatting-display.md index 232bed524..d71842dd8 100644 --- a/docs/framework/lit/guides/formatting-display.md +++ b/docs/framework/lit/guides/formatting-display.md @@ -31,7 +31,7 @@ class SaveButton extends LitElement { } ``` -The label is `⌘ S` on macOS and `Ctrl+S` on Windows and Linux. The controller fills in two things for you: +The label is `⌘ S` on macOS and `Ctrl+S` on Windows and Linux. The controller fills in the following for you: - **The platform** from the controller's `platform` option, or the detected platform without one. - **The user's keyboard layout**, for physical keys, in Chromium browsers. See [Label physical keys for the user's keyboard](#label-physical-keys-for-the-users-keyboard). @@ -162,6 +162,40 @@ formatForDisplay('Mod+[KeyQ]', { `keyLabels` wins over a layout entry, which wins over the fallback label. Layout entries get normal letter casing and key symbols, and missing or empty entries fall back. All of these options affect display only. `keyLabels` works anywhere, including on the server. +## Format for `aria-keyshortcuts` + +`FormatForAriaController` provides a `format` function for the [`aria-keyshortcuts`](https://w3c.github.io/aria/#aria-keyshortcuts) attribute so screen readers can announce a shortcut. It uses the same platform and keyboard layout as `FormatForDisplayController`. See [Accessibility](./accessibility#announce-shortcuts-to-screen-readers) for where to place the attribute. + +```ts +import { LitElement, html } from 'lit' +import { ifDefined } from 'lit/directives/if-defined.js' +import { + FormatForAriaController, + FormatForDisplayController, +} from '@tanstack/lit-hotkeys' + +class SearchButton extends LitElement { + private formatForAria = new FormatForAriaController(this) + private formatForDisplay = new FormatForDisplayController(this) + + render() { + return html` + + ` + } +} +``` + +The output uses the key names from the ARIA specification: + +- **Modifiers.** `Mod` becomes `Meta` on macOS and `Control` elsewhere. Modifiers use `Control`, `Alt`, `Shift`, and `Meta` in that order before the key, so `Mod+Shift+P` formats as `Shift+Meta+P` on macOS. +- **Keys.** Keys use `KeyboardEvent.key` values (`K`, `/`, `Escape`, `ArrowUp`), with `Space` for the space bar and `Plus` for the plus key. A physical binding names the key at that position from the user's keyboard layout where the browser reports it, so `[KeyQ]` formats as `Q`, or `A` on a French AZERTY keyboard. A logical hotkey's punctuation stays as written, so `'?'` formats as `?` rather than the `Shift+/` you press on a US keyboard. The key that types `?` depends on the layout. To name the key, bind it physically, such as `Shift+[Slash]`. +- **No value.** Returns `undefined` for a multi-step sequence, a standalone modifier, an empty or `null` hotkey, or a physical code with no key name such as `[NumpadMemoryAdd]`, so `ifDefined` omits the attribute. ARIA has no syntax for multi-step sequences. + +For a control with two shortcuts, join both formatted values with a space, such as `Control+K /`. + ## Server-side rendering With Lit SSR, the server doesn't know the user's platform, so server-rendered labels use `'linux'` unless the element sets a `platform`. Give the element a `platform` property, and set it from the request's `User-Agent` header. See [SSR & Hydration](./ssr) for the full setup and a note on caching. @@ -180,6 +214,8 @@ The plain function takes the same options as the controller's `format`. It doesn The export is marked deprecated so that your editor points element code to the controller. Outside an element, it is the function to use. +For `aria-keyshortcuts` outside an element, call `formatForAria` directly with `platform` and an optional `layoutMap`. For example, `formatForAria('Mod+S', { platform: 'mac' })` returns `'Meta+S'`. Like `formatForDisplay`, the plain export is marked `@deprecated`, so editors point element code to the adapter's formatter. + ## Parse, compare, and store hotkeys `parseHotkey` returns each chord's key, as either a logical `key` or a physical `code`, plus its modifiers with `Mod` resolved. Check which one you have before reading it: diff --git a/docs/framework/lit/guides/hotkey-manager.md b/docs/framework/lit/guides/hotkey-manager.md index 3be733ae5..e6539d911 100644 --- a/docs/framework/lit/guides/hotkey-manager.md +++ b/docs/framework/lit/guides/hotkey-manager.md @@ -90,7 +90,7 @@ close.unregister() releaseScope() ``` -`activateScope` returns a function that releases the scope. A scope stays active until every activation of it is released. `activateScope` takes two options: +`activateScope` returns a function that releases the scope. A scope stays active until every activation of it is released. `activateScope` takes these options: - `exclusive` suspends every other scope, including `'global'`, while this scope is active. Pass `{ allow: ['global'] }` to keep the listed scopes working. - `parent` names the scope this one is nested in, so this scope takes precedence over it. The default is `'global'`. @@ -124,6 +124,17 @@ class KeyboardOwner extends LitElement { } ``` +## Suspend character key shortcuts + +Call `manager.suspendCharacterKeys()` to pause document-level hotkeys made only of keys that type a character, such as `K`, `Shift+/`, or `['G', 'H']`. Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys such as `Escape`, and hotkeys targeted at an element keep working. Suspensions are counted like scope activations, so character key shortcuts stay suspended until every returned resume function runs: + +```ts +const resume = manager.suspendCharacterKeys() +resume() +``` + +Read `manager.scopes.state.characterKeysSuspended` to check whether character keys are suspended. Keep the returned resume function and call it when the user turns single-key shortcuts back on. See [Accessibility](./accessibility#let-users-turn-off-character-key-shortcuts). + ## Reset sequence progress `manager.resetSequenceProgress()` clears the steps the user has pressed in every sequence. Call it when an action in your app should cancel a sequence the user has started. diff --git a/docs/framework/lit/guides/hotkeys.md b/docs/framework/lit/guides/hotkeys.md index 1fb6b46e6..a6063852c 100644 --- a/docs/framework/lit/guides/hotkeys.md +++ b/docs/framework/lit/guides/hotkeys.md @@ -8,7 +8,7 @@ The `@hotkey` decorator registers a keyboard shortcut for a method while its ele ## Chords and sequences -A hotkey is one of two kinds: +A hotkey is one of these kinds: - A **chord** is keys pressed together, such as `'Mod+S'`, or a single key, such as `'Escape'`. - A **sequence** is chords pressed one after another, such as `['G', 'H']`. Write it as an array of chords. diff --git a/docs/framework/lit/guides/keyboard-layouts.md b/docs/framework/lit/guides/keyboard-layouts.md index 45b2117b4..d4abb4260 100644 --- a/docs/framework/lit/guides/keyboard-layouts.md +++ b/docs/framework/lit/guides/keyboard-layouts.md @@ -63,7 +63,7 @@ search() {} ## Available key sets -26 exported sets cover 33 layouts. Identical layouts share aliases, such as `AustrianKeys` and `GermanKeys`. Each set includes characters typed unshifted or with `Shift` across Windows, macOS, and Linux, excluding dead keys and `AltGr` or `Option` characters: +Identical layouts share a set under several aliases, such as `AustrianKeys` and `GermanKeys`. Each set includes characters typed unshifted or with `Shift` across Windows, macOS, and Linux, excluding dead keys and `AltGr` or `Option` characters: | Set | Layouts | | --- | --- | diff --git a/docs/framework/lit/reference/classes/FormatForAriaController.md b/docs/framework/lit/reference/classes/FormatForAriaController.md new file mode 100644 index 000000000..a5ded53c0 --- /dev/null +++ b/docs/framework/lit/reference/classes/FormatForAriaController.md @@ -0,0 +1,196 @@ +--- +id: FormatForAriaController +title: FormatForAriaController +--- + + + +Defined in: controllers/format-for-aria.ts:52 + +A Lit ReactiveController whose `format` is `formatForAria` with the +controller's `platform` option, or the detected platform without one. A +`platform` passed to `format` wins. Use its value for `aria-keyshortcuts` +with Lit's `ifDefined`, so Lit omits the attribute for a multi-step sequence +or no hotkey. + +Physical bindings such as `[KeyQ]` name the key the user presses in +Chromium browsers, once the keyboard layout has loaded. The host updates +when the layout loads or changes. A `layoutMap` passed to `format` wins. + +Lit has no provider, so the options are the only defaults. Pass a getter to +read them from host properties. + +## Example + +```ts +class SearchButton extends LitElement { + private formatForAria = new FormatForAriaController(this) + + render() { + return html` + + ` + } +} +``` + +## Implements + +- `ReactiveController` + +## Constructors + +### Constructor + +```ts +new FormatForAriaController(_host, _options?): FormatForAriaController; +``` + +Defined in: controllers/format-for-aria.ts:71 + +#### Parameters + +##### \_host + +`ReactiveControllerHost` + +The Lit component that owns this controller. The controller adds itself to it. + +##### \_options? + +`MaybeGetter`\<[`FormatForAriaControllerOptions`](../interfaces/FormatForAriaControllerOptions.md)\> = `{}` + +Options or a getter. `platform` is read for each value. `keyboardLayout` is read on connection and before host updates. + +#### Returns + +`FormatForAriaController` + +## Properties + +### format + +```ts +format: (hotkey, options) => string | undefined; +``` + +Defined in: controllers/format-for-aria.ts:61 + +Formats a hotkey for `aria-keyshortcuts`, with the controller's platform +and the user's keyboard layout filled in. It takes the same options as +`formatForAria` and needs no `this`, so it can be passed around. + +Formats a hotkey for an `aria-keyshortcuts` attribute so screen readers can +announce the shortcut. `Mod+K` becomes `Meta+K` on macOS and `Control+K` +elsewhere. + +Modifiers use the ARIA names (`Control`, `Alt`, `Shift`, `Meta`) and come +before the key. Keys use `KeyboardEvent.key` values, such as `K`, `/`, +`Escape`, or `ArrowUp`, with `Space` for the space bar and `Plus` for the +plus key. A physical binding names the key at that position, so `[KeyQ]` +becomes `Q`, or the key from `layoutMap` such as `A` on a French AZERTY +keyboard. Logical punctuation stays as written, so `'?'` stays `?` even +where it takes Shift to type. + +Returns `undefined` when the hotkey has no ARIA form, so the attribute is +omitted. This applies to empty or `null` hotkeys, multi-step sequences, +standalone modifiers, and physical codes with no key value such as +`[NumpadMemoryAdd]`. A one-step sequence formats like its chord. + +For a control with two shortcuts, join both formatted values with a space. +In a server-rendered app, use your adapter's formatter or pass `platform`. +Without a `platform` option, `formatForAria` uses `'linux'` on the server, +like `formatForDisplay`. + +#### Parameters + +##### hotkey + +`DisplayHotkey` \| `null` \| `undefined` + +A hotkey string, raw object, parsed chord, or nothing + +##### options? + +`FormatAriaOptions` = `{}` + +The platform and keyboard layout + +#### Returns + +`string` \| `undefined` + +The attribute value, or `undefined` when there is none + +#### Example + +```ts +formatForAria('Mod+K', { platform: 'mac' }) // 'Meta+K' +formatForAria('Mod+Shift+P', { platform: 'windows' }) // 'Control+Shift+P' +formatForAria('Shift+Space') // 'Shift+Space' +formatForAria(['G', 'H']) // undefined +``` + +## Methods + +### dispose() + +```ts +dispose(): void; +``` + +Defined in: controllers/format-for-aria.ts:97 + +Releases the controller now and removes it from its host, with the +layout controller it added. Use this method to remove a controller early, +because Lit's `removeController` alone leaves it active. + +#### Returns + +`void` + +*** + +### hostConnected() + +```ts +hostConnected(): void; +``` + +Defined in: controllers/format-for-aria.ts:83 + +Starts reading the layout, unless `keyboardLayout` is false. + +#### Returns + +`void` + +#### Implementation of + +```ts +ReactiveController.hostConnected +``` + +*** + +### hostUpdate() + +```ts +hostUpdate(): void; +``` + +Defined in: controllers/format-for-aria.ts:88 + +Follows a `keyboardLayout` option that a host property changed. + +#### Returns + +`void` + +#### Implementation of + +```ts +ReactiveController.hostUpdate +``` diff --git a/docs/framework/lit/reference/classes/FormatForDisplayController.md b/docs/framework/lit/reference/classes/FormatForDisplayController.md index 8265b2692..fc488f777 100644 --- a/docs/framework/lit/reference/classes/FormatForDisplayController.md +++ b/docs/framework/lit/reference/classes/FormatForDisplayController.md @@ -50,7 +50,7 @@ class SaveButton extends LitElement { new FormatForDisplayController(_host, _options?): FormatForDisplayController; ``` -Defined in: [controllers/format-for-display.ts:79](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-display.ts#L79) +Defined in: [controllers/format-for-display.ts:78](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-display.ts#L78) #### Parameters @@ -385,7 +385,7 @@ formatForDisplay(['G', 'H']) dispose(): void; ``` -Defined in: [controllers/format-for-display.ts:101](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-display.ts#L101) +Defined in: [controllers/format-for-display.ts:104](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-display.ts#L104) Releases the controller now and removes it from its host, with the layout controller it added. Use it to remove a controller early: Lit's @@ -403,7 +403,7 @@ layout controller it added. Use it to remove a controller early: Lit's hostConnected(): void; ``` -Defined in: [controllers/format-for-display.ts:87](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-display.ts#L87) +Defined in: [controllers/format-for-display.ts:90](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-display.ts#L90) Starts reading the layout, unless `keyboardLayout` is false. @@ -425,7 +425,7 @@ ReactiveController.hostConnected hostUpdate(): void; ``` -Defined in: [controllers/format-for-display.ts:92](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-display.ts#L92) +Defined in: [controllers/format-for-display.ts:95](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-display.ts#L95) Follows a `keyboardLayout` option that a host property changed. diff --git a/docs/framework/lit/reference/index.md b/docs/framework/lit/reference/index.md index d38928476..ccdd09ee6 100644 --- a/docs/framework/lit/reference/index.md +++ b/docs/framework/lit/reference/index.md @@ -8,6 +8,7 @@ title: "@tanstack/lit-hotkeys" ## Classes - [AppHotkeysController](classes/AppHotkeysController.md) +- [FormatForAriaController](classes/FormatForAriaController.md) - [FormatForDisplayController](classes/FormatForDisplayController.md) - [HeldKeyCodesController](classes/HeldKeyCodesController.md) - [HeldKeysController](classes/HeldKeysController.md) @@ -21,6 +22,7 @@ title: "@tanstack/lit-hotkeys" ## Interfaces +- [FormatForAriaControllerOptions](interfaces/FormatForAriaControllerOptions.md) - [FormatForDisplayControllerOptions](interfaces/FormatForDisplayControllerOptions.md) ## Type Aliases @@ -36,6 +38,7 @@ title: "@tanstack/lit-hotkeys" ## Variables +- [~~formatForAria~~](variables/formatForAria.md) - [~~formatForDisplay~~](variables/formatForDisplay.md) ## Functions diff --git a/docs/framework/lit/reference/interfaces/FormatForAriaControllerOptions.md b/docs/framework/lit/reference/interfaces/FormatForAriaControllerOptions.md new file mode 100644 index 000000000..52bfa38d4 --- /dev/null +++ b/docs/framework/lit/reference/interfaces/FormatForAriaControllerOptions.md @@ -0,0 +1,38 @@ +--- +id: FormatForAriaControllerOptions +title: FormatForAriaControllerOptions +--- + + + +Defined in: controllers/format-for-aria.ts:8 + +Options for `FormatForAriaController`. + +## Properties + +### keyboardLayout? + +```ts +optional keyboardLayout?: boolean; +``` + +Defined in: controllers/format-for-aria.ts:20 + +Whether physical bindings follow the user's keyboard layout, so `[KeyQ]` +is `A` on a French AZERTY keyboard. The layout loads from the browser +when the first host connects. Only Chromium browsers report one. Set +`false` to never ask the browser for it. Default: `true`. + +*** + +### platform? + +```ts +optional platform?: HotkeyPlatform; +``` + +Defined in: controllers/format-for-aria.ts:13 + +The user's platform, for every value from `format`. Detected when unset. +On a server, set it from the request with `detectPlatform(userAgent)`. diff --git a/docs/framework/lit/reference/variables/formatForAria.md b/docs/framework/lit/reference/variables/formatForAria.md new file mode 100644 index 000000000..0a094bc8f --- /dev/null +++ b/docs/framework/lit/reference/variables/formatForAria.md @@ -0,0 +1,22 @@ +--- +id: formatForAria +title: formatForAria +--- + + + +```ts +const formatForAria: typeof coreFormatForAria = coreFormatForAria; +``` + +Defined in: format-for-aria.ts:12 + +Formats a hotkey for `aria-keyshortcuts`, without a controller's platform or +the user's keyboard layout. + +## Deprecated + +Use `FormatForAriaController` in elements. Its `format` is +this function with the controller's platform and the user's keyboard layout +filled in. Outside an element, keep calling this function and pass `platform` +yourself. diff --git a/docs/framework/octane/guides/accessibility.md b/docs/framework/octane/guides/accessibility.md new file mode 100644 index 000000000..9a99da3e7 --- /dev/null +++ b/docs/framework/octane/guides/accessibility.md @@ -0,0 +1,100 @@ +--- +title: Accessible Keyboard Shortcuts in Octane +id: accessibility +description: Make Octane keyboard shortcuts accessible. Announce them to screen readers with aria-keyshortcuts, and let users turn off single-key shortcuts as WCAG 2.1.4 requires. +--- + +Keyboard shortcuts help people who navigate without a mouse, but shortcuts can get in the way of other assistive technology. Screen readers can't announce a shortcut unless the control sets `aria-keyshortcuts`. Speech input types words as key presses, which can fire single-letter shortcuts by accident. This guide covers what TanStack Hotkeys handles by default and what to add in your app. + +## What the library handles + +These protections are on by default: + +- **Typing in fields and widgets.** Single keys and `Shift` or `Alt` chords don't fire while focus is in a text field, ``, or `contenteditable` element. Native buttons keep `Enter` and `Space`, links keep `Enter`, and ARIA widgets such as menus, listboxes, tabs, and grids keep their navigation keys. Configure this with `ignoreInputs` (see [Hotkey options](./hotkeys#hotkey-options)). +- **Characters typed with AltGr.** On keyboards where AltGr types characters such as `@` or `€`, typing them doesn't fire `Control+Alt` hotkeys. +- **Open overlays.** While focus is inside a native ``, popover, or ARIA dialog or menu, outer `Escape` hotkeys stay out of the way so the overlay closes first (see [Let an open overlay handle Escape](../../../guides/sensible-defaults.md#let-an-open-overlay-handle-escape)). To suspend all other page hotkeys while a dialog is open, wrap the dialog in an [exclusive scope](./hotkeys-provider-and-scopes#exclusive-scopes). + +## Announce shortcuts to screen readers + +Screen readers announce a control's shortcut from its [`aria-keyshortcuts`](https://w3c.github.io/aria/#aria-keyshortcuts) attribute. A visible `` label isn't enough. Screen readers may read a `` label as plain text rather than as a shortcut, and they may not read a symbol such as `⌘` as `Command`. Call `useFormatForAria()` to format a hotkey for the attribute using the same platform and keyboard layout as the display formatter: + +```tsx +import { + useAppHotkeys, + useFormatForAria, + useFormatForDisplay, +} from '@tanstack/preact-hotkeys' + +function SearchButton() { + const appHotkeys = useAppHotkeys() + const formatForAria = useFormatForAria() + const formatForDisplay = useFormatForDisplay() + const { hotkey } = appHotkeys['search.open'] + + return ( + + ) +} +``` + +Follow these rules when you add the attribute: + +- **Attach it to the target control.** Put `aria-keyshortcuts` on the button the shortcut activates or the field it focuses. The attribute only announces the shortcut, so register the hotkey as usual. +- **Keep the visible label.** Render a `` label alongside the attribute from the same hotkey so sighted and screen reader users see the same shortcut. +- **Document sequences in text.** ARIA has no syntax for multi-step sequences such as `['G', 'H']`, so the formatter returns `undefined` and Preact omits the attribute. List sequences in a [cheat sheet](./cheat-sheet-ui-helpers) instead. +- **Read from app hotkeys.** Pass the binding from [app hotkeys](./app-hotkeys) so `aria-keyshortcuts` updates when the user rebinds the shortcut. + +See [Format for `aria-keyshortcuts`](./formatting-display#format-for-aria-keyshortcuts) for the formatting rules and edge cases. + +## Let users turn off character key shortcuts + +[WCAG 2.1.4, Character Key Shortcuts](https://www.w3.org/WAI/WCAG22/Understanding/character-key-shortcuts.html) (Level A) covers shortcuts made only of keys that type a character, such as `K`, `?`, `Shift+K`, `Space`, or the sequence `['G', 'H']`. Speech input types words as key presses, and people with tremors press keys by accident, so these shortcuts fire when nobody meant them to. An app with character key shortcuts must provide at least one of these options: + +- A way to turn them off. +- A way to remap them to use `Control`, `Alt`, or `Meta`. +- Shortcuts that work only while a specific element has focus. + +### Turn them off + +Add a setting, such as **Single-key shortcuts**, and suspend character key shortcuts while it is off. Pass `suspendCharacterKeys` to `HotkeysProvider`, set from the user's setting. While a provider with `suspendCharacterKeys` is mounted, document-level character key shortcuts across the whole app stop firing, so one provider at the root of the app is enough: + +```tsx +import { HotkeysProvider } from '@tanstack/preact-hotkeys' + +function App({ settings }: { settings: Settings }) { + return ( + + + + ) +} +``` + +Suspensions are counted. Character key shortcuts stay off while any mounted provider sets `suspendCharacterKeys` to `true`, and they resume when the last one unmounts or its prop becomes `false`. `suspendCharacterKeys` applies even when the provider sets `enabled={false}`. Outside a provider, call `getHotkeyManager().suspendCharacterKeys()`, which returns a function that resumes them. + +While suspended, an enabled character key shortcut reports the status `'suspended'` (the same as a hotkey in an inactive scope), so a [cheat sheet](./cheat-sheet-ui-helpers) can mark it as off. To display the current toggle state in a settings screen, read `characterKeysSuspended` from [scope state](./hotkey-manager#read-scope-state). + +These hotkeys keep working while character keys are suspended: + +| Hotkey | Why it keeps working | +| --- | --- | +| `Mod+K`, `Control+K`, `Alt+K` | Uses `Control`, `Alt`, or `Meta`. | +| `Escape`, `Enter`, `Tab`, `ArrowUp`, `F1` | Does not type a character. | +| `['Mod+K', 'C']` | At least one step uses a modifier or a non-character key. | +| A hotkey with an element `target` | Fires only while focus is inside that element. | + +Suspension checks the effective hotkey, so an app hotkey remapped from `K` to `Mod+K` works even while character keys are suspended. + +### Let users remap them + +[App hotkeys](./app-hotkeys) with a [shortcut settings screen](./custom-hotkey-recording) meet WCAG 2.1.4 on their own, as long as users can rebind every character key shortcut to one with a modifier. Offering both a toggle and remapping lets users either disable single-key shortcuts or rebind individual ones. + +### Scope them to an element + +A hotkey with an element `target` fires only while focus is inside that element. Use `target` for shortcuts that belong to one widget, such as `J` and `K` in a list. See [Hotkey targets](./hotkeys#hotkey-targets). + +## Make shortcuts discoverable + +List every shortcut in a [cheat sheet](./cheat-sheet-ui-helpers), and show [modifier hints](./hotkey-hints) while a modifier is held. For physical-key bindings, use `useFormatForDisplay()` so labels match the user's keyboard layout (see [Keyboard layouts](./keyboard-layouts)). + +## Leave assistive technology its keys + +Screen readers use single keys in browse mode and handle them before the page sees them. NVDA, for example, moves by heading with `H` and by link with `K`. Use `Mod` chords for app-wide actions, and reserve single-key shortcuts for focused widgets or an opt-in setting. Avoid binding browser or system shortcuts such as `Mod+L` or `Mod+W`. diff --git a/docs/framework/preact/guides/cheat-sheet-ui-helpers.md b/docs/framework/preact/guides/cheat-sheet-ui-helpers.md index c2ffc8374..85f00faef 100644 --- a/docs/framework/preact/guides/cheat-sheet-ui-helpers.md +++ b/docs/framework/preact/guides/cheat-sheet-ui-helpers.md @@ -6,7 +6,7 @@ description: Build a keyboard shortcut cheat sheet or help dialog in Preact from Build your cheat sheet directly from your registered or declared hotkeys so the help dialog never drifts out of sync when bindings change. Format each binding with `useFormatForDisplay` (see [Formatting & Display](./formatting-display)). -Two hooks cover different cheat sheet setups: +Each of these hooks covers a different cheat sheet setup: - `useHotkeyRegistrations()` returns currently mounted registrations from `useHotkey` and `useHotkeys`. - `useAppHotkeyList()` returns every [app hotkey](./app-hotkeys) you declared, including shortcuts on routes that haven't mounted yet. @@ -86,7 +86,7 @@ function ShortcutList() { Filtering by `meta?.name` omits unnamed helper shortcuts, such as a dialog's `Escape`. Checking `status === 'active'` hides paused shortcuts: - `'active'` means the hotkey is enabled and in an active scope -- `'suspended'` means it is enabled, but its [scope](./hotkeys-provider-and-scopes) is inactive or suspended by an exclusive scope +- `'suspended'` means it is enabled, but its [scope](./hotkeys-provider-and-scopes) is inactive or suspended by an exclusive scope, or it is a character key shortcut while [character keys are suspended](./accessibility#turn-them-off) - `'disabled'` means `enabled: false` was set Each entry also includes `id`, `hotkey`, `options`, `target`, and `triggerCount`. Chord entries (`kind === 'chord'`) add `parsedChord`, and sequence entries (`kind === 'sequence'`) add `parsedSequence` and `matchedStepCount` (used in [Show sequences in your UI](./sequences#show-sequences-in-your-ui)). If multiple mounted components register the same shortcut, such as rows in a list, each registration appears as its own entry. @@ -119,7 +119,7 @@ function CheatSheet() { | Status | Meaning | | --- | --- | | `'active'` | At least one enabled registration in an active scope | -| `'suspended'` | Enabled registrations exist, but none in an active scope | +| `'suspended'` | Enabled registrations exist, but none can fire: their scope is inactive, or character keys are suspended | | `'disabled'` | Registered, but every registration has `enabled: false` | | `'inactive'` | Has a hotkey assigned, but no component has registered it yet | | `'unbound'` | No hotkey assigned (`null`) | diff --git a/docs/framework/preact/guides/formatting-display.md b/docs/framework/preact/guides/formatting-display.md index 5b80459d5..fe6638729 100644 --- a/docs/framework/preact/guides/formatting-display.md +++ b/docs/framework/preact/guides/formatting-display.md @@ -32,7 +32,7 @@ function SaveButton() { } ``` -The hook wires up two things automatically: +The hook wires up the following automatically: - **Platform.** Reads the nearest `HotkeysProvider`, or detects from `navigator` if there isn't one. - **Keyboard layout.** For physical codes like `[KeyW]`, reads the user's keyboard layout in Chromium browsers. @@ -153,6 +153,33 @@ formatForDisplay('Mod+[KeyQ]', { }) // '⌘ Action' ``` +## Format for `aria-keyshortcuts` + +`useFormatForAria()` returns a function that formats a hotkey for the [`aria-keyshortcuts`](https://w3c.github.io/aria/#aria-keyshortcuts) attribute so screen readers can announce it. It uses the same platform and keyboard layout as the display formatter. See [Accessibility](./accessibility#announce-shortcuts-to-screen-readers) for where to place the attribute. + +```tsx +import { useFormatForAria, useFormatForDisplay } from '@tanstack/preact-hotkeys' + +function SearchButton() { + const formatForAria = useFormatForAria() + const formatForDisplay = useFormatForDisplay() + + return ( + + ) +} +``` + +The output uses the key names from the ARIA specification: + +- **Modifiers.** `Mod` becomes `Meta` on macOS and `Control` elsewhere. Modifiers use `Control`, `Alt`, `Shift`, and `Meta` in that order before the key, so `Mod+Shift+P` formats as `Shift+Meta+P` on macOS. +- **Keys.** Keys use `KeyboardEvent.key` values (`K`, `/`, `Escape`, `ArrowUp`), with `Space` for the space bar and `Plus` for the plus key. A physical binding names the key at that position from the user's keyboard layout where the browser reports it, so `[KeyQ]` formats as `Q`, or `A` on a French AZERTY keyboard. A logical hotkey's punctuation stays as written, so `'?'` formats as `?` rather than the `Shift+/` you press on a US keyboard. The key that types `?` depends on the layout. To name the key, bind it physically, such as `Shift+[Slash]`. +- **No value.** Returns `undefined` for a multi-step sequence, a standalone modifier, an empty or `null` hotkey, or a physical code with no key name such as `[NumpadMemoryAdd]`, so Preact omits the attribute. ARIA has no syntax for multi-step sequences. + +For a control with two shortcuts, join both formatted values with a space, such as `Control+K /`. + ## Server-side rendering To render platform-accurate labels on the server without hydration mismatches or a Linux-label flash on macOS and Windows, pass `platform` to `HotkeysProvider` from the incoming request, or wrap labels in a client-only guard on static pages. See [SSR & Hydration](./ssr) for Fresh, Astro, Vite server rendering, and static page examples. @@ -172,6 +199,8 @@ formatForDisplay('Mod+S', { platform }) // '⌘ S' when platform is 'mac' > [!NOTE] > `formatForDisplay` is marked `@deprecated` on the Preact package so editor autocomplete nudges component code toward `useFormatForDisplay()`. Outside components, calling it directly is expected. +For `aria-keyshortcuts` outside a component, call `formatForAria` directly with `platform` and an optional `layoutMap`. For example, `formatForAria('Mod+S', { platform: 'mac' })` returns `'Meta+S'`. Like `formatForDisplay`, the plain export is marked `@deprecated`, so editors point component code to the adapter's formatter. + ## Parse, compare, and store hotkeys Use the core helpers for persistence, comparison, and validation: diff --git a/docs/framework/preact/guides/hotkey-manager.md b/docs/framework/preact/guides/hotkey-manager.md index 204f5338d..b292f5ad8 100644 --- a/docs/framework/preact/guides/hotkey-manager.md +++ b/docs/framework/preact/guides/hotkey-manager.md @@ -88,7 +88,7 @@ close.unregister() releaseScope() ``` -`activateScope` returns a release function, and a scope remains active until every activation of it has been released. It accepts two options: +`activateScope` returns a release function, and a scope remains active until every activation of it has been released. It accepts these options: - `exclusive` suspends every other scope (including `'global'`), or pass `{ allow: ['global'] }` to keep specific scopes active. - `parent` names an ancestor scope so this scope takes precedence over it (defaults to `'global'`). @@ -97,12 +97,13 @@ releaseScope() Call `manager.isScopeActive(scope)` to check whether a scope can currently fire, or inspect each registration's `status` (see [List the hotkeys on screen](./cheat-sheet-ui-helpers#list-the-hotkeys-on-screen)). -`manager.scopes` is a store with four fields: +`manager.scopes` is a store with these fields: - `active`: active scopes ordered lowest-to-highest precedence (`'global'` is always active and omitted here) - `exclusive`: currently controlling exclusive scope, or `null` - `allowed`: active scopes permitted by the exclusive scope - `suspended`: active scopes blocked by an exclusive scope (may include `'global'`) +- `characterKeysSuspended`: whether character key shortcuts are suspended by `suspendCharacterKeys` Inside Preact components, read the same state reactively with `useHotkeyScopesState`: @@ -118,6 +119,17 @@ function KeyboardOwner() { The [devtools](../../../devtools) display the same live scope state without writing code. +## Suspend character key shortcuts + +Call `manager.suspendCharacterKeys()` to pause document-level hotkeys made only of keys that type a character, such as `K`, `Shift+/`, or `['G', 'H']`. Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys such as `Escape`, and hotkeys targeted at an element keep working. Suspensions are counted like scope activations, so character key shortcuts stay suspended until every returned resume function runs: + +```ts +const resume = manager.suspendCharacterKeys() +resume() +``` + +Read `manager.scopes.state.characterKeysSuspended` to check whether character keys are suspended. Inside components, pass `suspendCharacterKeys` to `HotkeysProvider` instead. See [Accessibility](./accessibility#let-users-turn-off-character-key-shortcuts). + ## Reset sequence progress Call `manager.resetSequenceProgress()` to clear partial progress on all active sequences, such as when an external UI action cancels a pending command. diff --git a/docs/framework/preact/guides/hotkeys-provider-and-scopes.md b/docs/framework/preact/guides/hotkeys-provider-and-scopes.md index 65df4a5d4..9aed0ae43 100644 --- a/docs/framework/preact/guides/hotkeys-provider-and-scopes.md +++ b/docs/framework/preact/guides/hotkeys-provider-and-scopes.md @@ -82,14 +82,14 @@ function Editor() { } ``` -Keep two scope rules in mind: +Keep these scope rules in mind: - **Providers without `scope` inherit.** A nested provider that only sets `defaultOptions` stays in its parent's scope. - **Scopes are identified by name.** Two mounted providers with `scope="editor"` share the same `'editor'` scope, which stays active until both unmount. Give independent regions distinct names so they toggle separately. ## Scopes and targets -A scope and a [`target`](./hotkeys#hotkey-targets) both constrain when a hotkey fires, using two different axes: +A scope and a [`target`](./hotkeys#hotkey-targets) both constrain when a hotkey fires, on different axes: | | Scope | Target | | --- | --- | --- | @@ -174,7 +174,7 @@ function FolderPane({ name }: { name: string }) { } ``` -`FolderPane` stays unaware of which tab is selected. Note two details: +`FolderPane` stays unaware of which tab is selected. Note these details: - **`enabled` cascades downward.** Disabling a provider deactivates every nested scope inside it, even if that provider sets no `scope` of its own. A scopeless provider with `enabled={false}` leaves its own hotkeys active because `'global'` cannot be disabled. - **Inactive scopes stay listed.** Their hotkeys remain visible in devtools and report `'suspended'` in [`useAppHotkeyList`](./cheat-sheet-ui-helpers#list-every-app-hotkey). @@ -257,6 +257,10 @@ export const appHotkeys = defineAppHotkeys({ If you integrate non-Preact overlays, such as third-party dialogs, activate their scopes imperatively via [Activate a scope](./hotkey-manager#activate-a-scope). +## Suspend character key shortcuts + +Pass `suspendCharacterKeys` to `HotkeysProvider` to pause document-level character key shortcuts, such as `K` or `['G', 'H']`, across the app while the prop is `true`. Suspended hotkeys report the status `'suspended'`, like hotkeys in an inactive scope, and the prop applies even when `enabled` is `false`. Wire it to a user setting as shown in [Accessibility](./accessibility#let-users-turn-off-character-key-shortcuts). + ## Inspect scopes The [devtools](../../../devtools) group registrations by scope and display which scopes are active, suspended, allowed, or exclusive. To read the same state inside components, see [Read scope state](./hotkey-manager#read-scope-state). diff --git a/docs/framework/preact/guides/hotkeys.md b/docs/framework/preact/guides/hotkeys.md index a1d97670e..332951780 100644 --- a/docs/framework/preact/guides/hotkeys.md +++ b/docs/framework/preact/guides/hotkeys.md @@ -223,7 +223,7 @@ function RichTextEditor() { } ``` -Options merge in three layers: provider defaults first, then shared `useHotkeys` options, then per-item options. +Options merge in layers: provider defaults first, then shared `useHotkeys` options, then per-item options. ### Build the list from data diff --git a/docs/framework/preact/guides/keyboard-layouts.md b/docs/framework/preact/guides/keyboard-layouts.md index 5b627b66d..b580d152a 100644 --- a/docs/framework/preact/guides/keyboard-layouts.md +++ b/docs/framework/preact/guides/keyboard-layouts.md @@ -54,7 +54,7 @@ All hooks (`useHotkeys`, `useHotkeyHint`, `useFormatForDisplay`), app hotkeys, c ## Available key sets -26 exported sets cover 33 layouts. Identical layouts share aliases, such as `AustrianKeys` and `GermanKeys`. Each set includes characters typed unshifted or with `Shift` across Windows, macOS, and Linux, excluding dead keys and `AltGr` or `Option` characters: +Identical layouts share a set under several aliases, such as `AustrianKeys` and `GermanKeys`. Each set includes characters typed unshifted or with `Shift` across Windows, macOS, and Linux, excluding dead keys and `AltGr` or `Option` characters: | Set | Layouts | | --- | --- | diff --git a/docs/framework/preact/reference/functions/useDefaultHotkeysOptions.md b/docs/framework/preact/reference/functions/useDefaultHotkeysOptions.md index 11b5c520c..18a584893 100644 --- a/docs/framework/preact/reference/functions/useDefaultHotkeysOptions.md +++ b/docs/framework/preact/reference/functions/useDefaultHotkeysOptions.md @@ -9,7 +9,7 @@ title: useDefaultHotkeysOptions function useDefaultHotkeysOptions(): HotkeysProviderOptions; ``` -Defined in: [HotkeysProvider.tsx:194](https://github.com/TanStack/hotkeys/blob/main/packages/preact-hotkeys/src/HotkeysProvider.tsx#L194) +Defined in: [HotkeysProvider.tsx:202](https://github.com/TanStack/hotkeys/blob/main/packages/preact-hotkeys/src/HotkeysProvider.tsx#L202) ## Returns diff --git a/docs/framework/preact/reference/functions/useFormatForAria.md b/docs/framework/preact/reference/functions/useFormatForAria.md new file mode 100644 index 000000000..b7131421c --- /dev/null +++ b/docs/framework/preact/reference/functions/useFormatForAria.md @@ -0,0 +1,101 @@ +--- +id: useFormatForAria +title: useFormatForAria +--- + + + +```ts +function useFormatForAria(): (hotkey, options) => string | undefined; +``` + +Defined in: useFormatForAria.ts:39 + +Returns `formatForAria` with the platform from `HotkeysProvider`, or the +detected platform without one. A `platform` passed to the returned function +wins. Use its value for `aria-keyshortcuts`, so screen readers announce the +shortcut. It returns `undefined` for a multi-step sequence or no hotkey, so +Preact omits the attribute. + +Physical bindings such as `[KeyQ]` name the key the user presses in +Chromium browsers, once the keyboard layout has loaded. See +`useKeyboardLayout`. A `layoutMap` passed to the returned function wins. + +Call the hook once at the top of the component; the returned function can +be called anywhere. Server-rendered apps should set the provider's +`defaultOptions.platform` from the request with `detectPlatform(userAgent)`, +so the server HTML matches the user's platform. + +## Returns + +```ts +(hotkey, options?): string | undefined; +``` + +Formats a hotkey for an `aria-keyshortcuts` attribute so screen readers can +announce the shortcut. `Mod+K` becomes `Meta+K` on macOS and `Control+K` +elsewhere. + +Modifiers use the ARIA names (`Control`, `Alt`, `Shift`, `Meta`) and come +before the key. Keys use `KeyboardEvent.key` values, such as `K`, `/`, +`Escape`, or `ArrowUp`, with `Space` for the space bar and `Plus` for the +plus key. A physical binding names the key at that position, so `[KeyQ]` +becomes `Q`, or the key from `layoutMap` such as `A` on a French AZERTY +keyboard. Logical punctuation stays as written, so `'?'` stays `?` even +where it takes Shift to type. + +Returns `undefined` when the hotkey has no ARIA form, so the attribute is +omitted. This applies to empty or `null` hotkeys, multi-step sequences, +standalone modifiers, and physical codes with no key value such as +`[NumpadMemoryAdd]`. A one-step sequence formats like its chord. + +For a control with two shortcuts, join both formatted values with a space. +In a server-rendered app, use your adapter's formatter or pass `platform`. +Without a `platform` option, `formatForAria` uses `'linux'` on the server, +like `formatForDisplay`. + +### Parameters + +#### hotkey + +`DisplayHotkey` \| `null` \| `undefined` + +A hotkey string, raw object, parsed chord, or nothing + +#### options? + +`FormatAriaOptions` = `{}` + +The platform and keyboard layout + +### Returns + +`string` \| `undefined` + +The attribute value, or `undefined` when there is none + +### Example + +```ts +formatForAria('Mod+K', { platform: 'mac' }) // 'Meta+K' +formatForAria('Mod+Shift+P', { platform: 'windows' }) // 'Control+Shift+P' +formatForAria('Shift+Space') // 'Shift+Space' +formatForAria(['G', 'H']) // undefined +``` + +## Example + +```tsx +function SearchButton() { + const appHotkeys = useAppHotkeys() + const formatForAria = useFormatForAria() + const formatForDisplay = useFormatForDisplay() + const { hotkey } = appHotkeys['search.open'] + + return ( + + ) +} +``` diff --git a/docs/framework/preact/reference/functions/useHotkeysContext.md b/docs/framework/preact/reference/functions/useHotkeysContext.md index e28ff756e..46590b802 100644 --- a/docs/framework/preact/reference/functions/useHotkeysContext.md +++ b/docs/framework/preact/reference/functions/useHotkeysContext.md @@ -9,7 +9,7 @@ title: useHotkeysContext function useHotkeysContext(): HotkeysContextValue | null; ``` -Defined in: [HotkeysProvider.tsx:190](https://github.com/TanStack/hotkeys/blob/main/packages/preact-hotkeys/src/HotkeysProvider.tsx#L190) +Defined in: [HotkeysProvider.tsx:198](https://github.com/TanStack/hotkeys/blob/main/packages/preact-hotkeys/src/HotkeysProvider.tsx#L198) ## Returns diff --git a/docs/framework/preact/reference/index.md b/docs/framework/preact/reference/index.md index 04bbb88bd..ec0f241dd 100644 --- a/docs/framework/preact/reference/index.md +++ b/docs/framework/preact/reference/index.md @@ -25,6 +25,7 @@ title: "@tanstack/preact-hotkeys" ## Variables +- [~~formatForAria~~](variables/formatForAria.md) - [~~formatForDisplay~~](variables/formatForDisplay.md) ## Functions @@ -34,6 +35,7 @@ title: "@tanstack/preact-hotkeys" - [useAppHotkeys](functions/useAppHotkeys.md) - [useCustomHotkeys](functions/useCustomHotkeys.md) - [useDefaultHotkeysOptions](functions/useDefaultHotkeysOptions.md) +- [useFormatForAria](functions/useFormatForAria.md) - [useFormatForDisplay](functions/useFormatForDisplay.md) - [useHeldKeyCodes](functions/useHeldKeyCodes.md) - [useHeldKeys](functions/useHeldKeys.md) diff --git a/docs/framework/preact/reference/variables/formatForAria.md b/docs/framework/preact/reference/variables/formatForAria.md new file mode 100644 index 000000000..21f20d47b --- /dev/null +++ b/docs/framework/preact/reference/variables/formatForAria.md @@ -0,0 +1,22 @@ +--- +id: formatForAria +title: formatForAria +--- + + + +```ts +const formatForAria: typeof coreFormatForAria = coreFormatForAria; +``` + +Defined in: formatForAria.ts:12 + +Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or +the user's keyboard layout. + +## Deprecated + +Use `useFormatForAria()` in components. It returns this +function with the provider's platform and the user's keyboard layout filled +in. Outside a component, keep calling this function and pass `platform` +yourself. diff --git a/docs/framework/react/guides/accessibility.md b/docs/framework/react/guides/accessibility.md new file mode 100644 index 000000000..08a107a7a --- /dev/null +++ b/docs/framework/react/guides/accessibility.md @@ -0,0 +1,104 @@ +--- +title: Accessible Keyboard Shortcuts in React +id: accessibility +description: Make React keyboard shortcuts accessible. Announce them to screen readers with aria-keyshortcuts, and let users turn off single-key shortcuts as WCAG 2.1.4 requires. +--- + +Keyboard shortcuts help people who navigate without a mouse, but shortcuts can get in the way of other assistive technology. Screen readers can't announce a shortcut unless the control sets `aria-keyshortcuts`. Speech input types words as key presses, which can fire single-letter shortcuts by accident. This guide covers what TanStack Hotkeys handles by default and what to add in your app. + +## What the library handles + +These protections are on by default: + +- **Typing in fields and widgets.** Single keys and `Shift` or `Alt` chords don't fire while focus is in a text field, ``, or `contenteditable` element. Native buttons keep `Enter` and `Space`, links keep `Enter`, and ARIA widgets such as menus, listboxes, tabs, and grids keep their navigation keys. Configure this with `ignoreInputs` (see [Hotkey options](./hotkeys#hotkey-options)). +- **Characters typed with AltGr.** On keyboards where AltGr types characters such as `@` or `€`, typing them doesn't fire `Control+Alt` hotkeys. +- **Open overlays.** While focus is inside a native ``, popover, or ARIA dialog or menu, outer `Escape` hotkeys stay out of the way so the overlay closes first (see [Let an open overlay handle Escape](../../../guides/sensible-defaults.md#let-an-open-overlay-handle-escape)). To suspend all other page hotkeys while a dialog is open, wrap the dialog in an [exclusive scope](./hotkeys-provider-and-scopes#exclusive-scopes). + +## Announce shortcuts to screen readers + +Screen readers announce a control's shortcut from its [`aria-keyshortcuts`](https://w3c.github.io/aria/#aria-keyshortcuts) attribute. A visible `` label isn't enough. Screen readers may read a `` label as plain text rather than as a shortcut, and they may not read a symbol such as `⌘` as `Command`. Call `createFormatForAria()` to format a hotkey for the attribute using the same platform and keyboard layout as the display formatter: + +```tsx +import { + createFormatForAria, + createFormatForDisplay, + useAppHotkeys, +} from '@tanstack/solid-hotkeys' +import { Show } from 'solid-js' + +function SearchButton() { + const appHotkeys = useAppHotkeys() + const formatForAria = createFormatForAria() + const formatForDisplay = createFormatForDisplay() + const hotkey = () => appHotkeys()['search.open'].hotkey + + return ( + + ) +} +``` + +Follow these rules when you add the attribute: + +- **Attach it to the target control.** Put `aria-keyshortcuts` on the button the shortcut activates or the field it focuses. The attribute only announces the shortcut, so register the hotkey as usual. +- **Keep the visible label.** Render a `` label alongside the attribute from the same hotkey so sighted and screen reader users see the same shortcut. +- **Document sequences in text.** ARIA has no syntax for multi-step sequences such as `['G', 'H']`, so the formatter returns `undefined` and Solid omits the attribute. List sequences in a [cheat sheet](./cheat-sheet-ui-helpers) instead. +- **Read from app hotkeys.** Pass the binding from [app hotkeys](./app-hotkeys) so `aria-keyshortcuts` updates when the user rebinds the shortcut. + +See [Format for `aria-keyshortcuts`](./formatting-display#format-for-aria-keyshortcuts) for the formatting rules and edge cases. + +## Let users turn off character key shortcuts + +[WCAG 2.1.4, Character Key Shortcuts](https://www.w3.org/WAI/WCAG22/Understanding/character-key-shortcuts.html) (Level A) covers shortcuts made only of keys that type a character, such as `K`, `?`, `Shift+K`, `Space`, or the sequence `['G', 'H']`. Speech input types words as key presses, and people with tremors press keys by accident, so these shortcuts fire when nobody meant them to. An app with character key shortcuts must provide at least one of these options: + +- A way to turn them off. +- A way to remap them to use `Control`, `Alt`, or `Meta`. +- Shortcuts that work only while a specific element has focus. + +### Turn them off + +Add a setting, such as **Single-key shortcuts**, and suspend character key shortcuts while it is off. Pass `suspendCharacterKeys` to `HotkeysProvider`, set from the user's setting. While a provider with `suspendCharacterKeys` is mounted, document-level character key shortcuts across the whole app stop firing, so one provider at the root of the app is enough: + +```tsx +import { HotkeysProvider } from '@tanstack/solid-hotkeys' +import type { Accessor } from 'solid-js' + +function App(props: { settings: Accessor }) { + return ( + + + + ) +} +``` + +Suspensions are counted. Character key shortcuts stay off while any mounted provider sets `suspendCharacterKeys` to `true`, and they resume when the last one unmounts or its prop becomes `false`. `suspendCharacterKeys` applies even when the provider sets `enabled={false}`. Outside a provider, call `getHotkeyManager().suspendCharacterKeys()`, which returns a function that resumes them. + +While suspended, an enabled character key shortcut reports the status `'suspended'` (the same as a hotkey in an inactive scope), so a [cheat sheet](./cheat-sheet-ui-helpers) can mark it as off. To display the current toggle state in a settings screen, read `characterKeysSuspended` from [scope state](./hotkey-manager#read-scope-state). + +These hotkeys keep working while character keys are suspended: + +| Hotkey | Why it keeps working | +| --- | --- | +| `Mod+K`, `Control+K`, `Alt+K` | Uses `Control`, `Alt`, or `Meta`. | +| `Escape`, `Enter`, `Tab`, `ArrowUp`, `F1` | Does not type a character. | +| `['Mod+K', 'C']` | At least one step uses a modifier or a non-character key. | +| A hotkey with an element `target` | Fires only while focus is inside that element. | + +Suspension checks the effective hotkey, so an app hotkey remapped from `K` to `Mod+K` works even while character keys are suspended. + +### Let users remap them + +[App hotkeys](./app-hotkeys) with a [shortcut settings screen](./custom-hotkey-recording) meet WCAG 2.1.4 on their own, as long as users can rebind every character key shortcut to one with a modifier. Offering both a toggle and remapping lets users either disable single-key shortcuts or rebind individual ones. + +### Scope them to an element + +A hotkey with an element `target` fires only while focus is inside that element. Use `target` for shortcuts that belong to one widget, such as `J` and `K` in a list. See [Hotkey targets](./hotkeys#hotkey-targets). + +## Make shortcuts discoverable + +List every shortcut in a [cheat sheet](./cheat-sheet-ui-helpers), and show [modifier hints](./hotkey-hints) while a modifier is held. For physical-key bindings, use `createFormatForDisplay()` so labels match the user's keyboard layout (see [Keyboard layouts](./keyboard-layouts)). + +## Leave assistive technology its keys + +Screen readers use single keys in browse mode and handle them before the page sees them. NVDA, for example, moves by heading with `H` and by link with `K`. Use `Mod` chords for app-wide actions, and reserve single-key shortcuts for focused widgets or an opt-in setting. Avoid binding browser or system shortcuts such as `Mod+L` or `Mod+W`. diff --git a/docs/framework/solid/guides/cheat-sheet-ui-helpers.md b/docs/framework/solid/guides/cheat-sheet-ui-helpers.md index df1167ced..5670004ba 100644 --- a/docs/framework/solid/guides/cheat-sheet-ui-helpers.md +++ b/docs/framework/solid/guides/cheat-sheet-ui-helpers.md @@ -6,7 +6,7 @@ description: Build a keyboard shortcut cheat sheet or help dialog in Solid from Build your cheat sheet directly from your registered or declared hotkeys so the help dialog never drifts out of sync when bindings change. Format each binding with `createFormatForDisplay` (see [Formatting & Display](./formatting-display)). -Two primitives cover different cheat sheet setups: +Each of these primitives covers a different cheat sheet setup: - `createHotkeyRegistrations` returns the hotkeys registered right now from `createHotkey` and `createHotkeys`. It only knows about components that are rendered. - `createAppHotkeyList` returns every [app hotkey](./app-hotkeys) you declared, including shortcuts on routes that haven't rendered yet. @@ -91,7 +91,7 @@ function ShortcutList() { Filtering by `meta?.name` omits unnamed helper shortcuts, such as a dialog's `Escape`. Checking `status === 'active'` hides paused shortcuts: - `'active'` means the hotkey is enabled and in an active scope -- `'suspended'` means it is enabled, but its [scope](./hotkeys-provider-and-scopes) is inactive or suspended by an exclusive scope +- `'suspended'` means it is enabled, but its [scope](./hotkeys-provider-and-scopes) is inactive or suspended by an exclusive scope, or it is a character key shortcut while [character keys are suspended](./accessibility#turn-them-off) - `'disabled'` means `enabled: false` was set Each entry also includes `id`, `hotkey`, `options`, `target`, and `triggerCount`. Chord entries (`kind === 'chord'`) add `parsedChord`, and sequence entries (`kind === 'sequence'`) add `parsedSequence` and `matchedStepCount` (used in [Show sequences in your UI](./sequences#show-sequences-in-your-ui)). If multiple mounted components register the same shortcut, such as rows in a list, each registration appears as its own entry. @@ -127,7 +127,7 @@ function CheatSheet() { | Status | Meaning | | --- | --- | | `'active'` | At least one enabled registration in an active scope | -| `'suspended'` | Enabled registrations exist, but none in an active scope | +| `'suspended'` | Enabled registrations exist, but none can fire: their scope is inactive, or character keys are suspended | | `'disabled'` | Registered, but every registration has `enabled: false` | | `'inactive'` | Has a hotkey assigned, but nothing has registered it yet | | `'unbound'` | No hotkey assigned (`null`) | diff --git a/docs/framework/solid/guides/formatting-display.md b/docs/framework/solid/guides/formatting-display.md index 36ae2afcf..3f9e4cb20 100644 --- a/docs/framework/solid/guides/formatting-display.md +++ b/docs/framework/solid/guides/formatting-display.md @@ -32,7 +32,7 @@ function SaveButton() { } ``` -The label is `⌘ S` on macOS and `Ctrl+S` on Windows and Linux. The primitive wires up two things automatically: +The label is `⌘ S` on macOS and `Ctrl+S` on Windows and Linux. The primitive wires up the following automatically: - **Platform.** Reads the nearest `HotkeysProvider`, or detects from `navigator` if there isn't one. - **Keyboard layout.** For physical codes like `[KeyW]`, reads the user's keyboard layout in Chromium browsers. @@ -155,6 +155,33 @@ formatForDisplay('Mod+[KeyQ]', { `keyLabels` wins over a layout entry, which wins over the fallback label. Layout entries get normal letter casing and key symbols, and missing or empty entries fall back. All of these options affect display only. +## Format for `aria-keyshortcuts` + +`createFormatForAria()` returns a function that formats a hotkey for the [`aria-keyshortcuts`](https://w3c.github.io/aria/#aria-keyshortcuts) attribute so screen readers can announce it. It uses the same platform and keyboard layout as the display formatter. See [Accessibility](./accessibility#announce-shortcuts-to-screen-readers) for where to place the attribute. + +```tsx +import { createFormatForAria, createFormatForDisplay } from '@tanstack/solid-hotkeys' + +function SearchButton() { + const formatForAria = createFormatForAria() + const formatForDisplay = createFormatForDisplay() + + return ( + + ) +} +``` + +The output uses the key names from the ARIA specification: + +- **Modifiers.** `Mod` becomes `Meta` on macOS and `Control` elsewhere. Modifiers use `Control`, `Alt`, `Shift`, and `Meta` in that order before the key, so `Mod+Shift+P` formats as `Shift+Meta+P` on macOS. +- **Keys.** Keys use `KeyboardEvent.key` values (`K`, `/`, `Escape`, `ArrowUp`), with `Space` for the space bar and `Plus` for the plus key. A physical binding names the key at that position from the user's keyboard layout where the browser reports it, so `[KeyQ]` formats as `Q`, or `A` on a French AZERTY keyboard. A logical hotkey's punctuation stays as written, so `'?'` formats as `?` rather than the `Shift+/` you press on a US keyboard. The key that types `?` depends on the layout. To name the key, bind it physically, such as `Shift+[Slash]`. +- **No value.** Returns `undefined` for a multi-step sequence, a standalone modifier, an empty or `null` hotkey, or a physical code with no key name such as `[NumpadMemoryAdd]`, so Solid omits the attribute. ARIA has no syntax for multi-step sequences. + +For a control with two shortcuts, join both formatted values with a space, such as `Control+K /`. + ## Server-side rendering To render platform-accurate labels on the server without hydration mismatches or a Linux-label flash on macOS and Windows, pass `platform` to `HotkeysProvider` from the incoming request, or wrap labels in a client-only guard on static pages. See [SSR & Hydration](./ssr) for SolidStart, TanStack Start, Astro, and static page examples. @@ -174,6 +201,8 @@ formatForDisplay('Mod+S', { platform }) // '⌘ S' when platform is 'mac' > [!NOTE] > `formatForDisplay` is marked `@deprecated` on the Solid package so editor autocomplete nudges component code toward `createFormatForDisplay()`. Outside components, calling it directly is expected. +For `aria-keyshortcuts` outside a component, call `formatForAria` directly with `platform` and an optional `layoutMap`. For example, `formatForAria('Mod+S', { platform: 'mac' })` returns `'Meta+S'`. Like `formatForDisplay`, the plain export is marked `@deprecated`, so editors point component code to the adapter's formatter. + ## Parse, compare, and store hotkeys Use the core helpers for persistence, comparison, and validation: diff --git a/docs/framework/solid/guides/hotkey-manager.md b/docs/framework/solid/guides/hotkey-manager.md index 146e6801b..be8756a67 100644 --- a/docs/framework/solid/guides/hotkey-manager.md +++ b/docs/framework/solid/guides/hotkey-manager.md @@ -89,7 +89,7 @@ close.unregister() releaseScope() ``` -`activateScope` returns a release function, and a scope remains active until every activation of it has been released. It accepts two options: +`activateScope` returns a release function, and a scope remains active until every activation of it has been released. It accepts these options: - `exclusive` suspends every other scope (including `'global'`), or pass `{ allow: ['global'] }` to keep specific scopes active. - `parent` names an ancestor scope so this scope takes precedence over it (defaults to `'global'`). @@ -98,12 +98,13 @@ releaseScope() Call `manager.isScopeActive(scope)` to check whether a scope can currently fire, or inspect each registration's `status` (see [List the hotkeys on screen](./cheat-sheet-ui-helpers#list-the-hotkeys-on-screen)). -`manager.scopes` is a store with four fields: +`manager.scopes` is a store with these fields: - `active`: active scopes ordered lowest-to-highest precedence (`'global'` is always active and omitted here) - `exclusive`: currently controlling exclusive scope, or `null` - `allowed`: active scopes permitted by the exclusive scope - `suspended`: active scopes blocked by an exclusive scope (may include `'global'`) +- `characterKeysSuspended`: whether character key shortcuts are suspended by `suspendCharacterKeys` Inside Solid components, read the same state reactively with `createHotkeyScopesState`. It updates when scopes activate or release: @@ -124,6 +125,17 @@ function KeyboardOwner() { The [devtools](../../../devtools) display the same live scope state without writing code. +## Suspend character key shortcuts + +Call `manager.suspendCharacterKeys()` to pause document-level hotkeys made only of keys that type a character, such as `K`, `Shift+/`, or `['G', 'H']`. Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys such as `Escape`, and hotkeys targeted at an element keep working. Suspensions are counted like scope activations, so character key shortcuts stay suspended until every returned resume function runs: + +```ts +const resume = manager.suspendCharacterKeys() +resume() +``` + +Read `manager.scopes.state.characterKeysSuspended` to check whether character keys are suspended. Inside components, pass `suspendCharacterKeys` to `HotkeysProvider` instead. See [Accessibility](./accessibility#let-users-turn-off-character-key-shortcuts). + ## Reset sequence progress Call `manager.resetSequenceProgress()` to clear partial progress on all active sequences, such as when an external UI action cancels a pending command. diff --git a/docs/framework/solid/guides/hotkeys-provider-and-scopes.md b/docs/framework/solid/guides/hotkeys-provider-and-scopes.md index b864f3071..62987b02a 100644 --- a/docs/framework/solid/guides/hotkeys-provider-and-scopes.md +++ b/docs/framework/solid/guides/hotkeys-provider-and-scopes.md @@ -82,14 +82,14 @@ function Editor() { } ``` -Keep two scope rules in mind: +Keep these scope rules in mind: - **Providers without `scope` inherit.** A nested provider that only sets `defaultOptions` stays in its parent's scope. - **Scopes are identified by name.** Two mounted providers with `scope="editor"` share the same `'editor'` scope, which stays active until both unmount. Give independent regions distinct names so they toggle separately. ## Scopes and targets -A scope and a [`target`](./hotkeys#hotkey-targets) both constrain when a hotkey fires, using two different axes: +A scope and a [`target`](./hotkeys#hotkey-targets) both constrain when a hotkey fires, on different axes: | | Scope | Target | | --- | --- | --- | @@ -180,7 +180,7 @@ function FolderPane(props: { name: string }) { } ``` -`FolderPane` doesn't know which folder is current. Provider props are reactive, so the scope turns on and off as `current` changes. Note two details: +`FolderPane` doesn't know which folder is current. Provider props are reactive, so the scope turns on and off as `current` changes. Note these details: - **`enabled` cascades downward.** Disabling a provider deactivates every nested scope inside it, even if that provider sets no `scope` of its own. A scopeless provider with `enabled={false}` leaves its own hotkeys active because `'global'` cannot be disabled. - **Inactive scopes stay listed.** Their hotkeys remain visible in devtools and report `'suspended'` in [`createAppHotkeyList`](./cheat-sheet-ui-helpers#list-every-app-hotkey). @@ -268,6 +268,10 @@ export const appHotkeys = defineAppHotkeys({ If you integrate non-Solid overlays, such as third-party dialogs, activate their scopes imperatively via [Activate a scope](./hotkey-manager#activate-a-scope). +## Suspend character key shortcuts + +Pass `suspendCharacterKeys` to `HotkeysProvider` to pause document-level character key shortcuts, such as `K` or `['G', 'H']`, across the app while the prop is `true`. Suspended hotkeys report the status `'suspended'`, like hotkeys in an inactive scope, and the prop applies even when `enabled` is `false`. Wire it to a user setting as shown in [Accessibility](./accessibility#let-users-turn-off-character-key-shortcuts). + ## Inspect scopes The [devtools](../../../devtools) group registrations by scope and display which scopes are active, suspended, allowed, or exclusive. To read the same state inside components, see [Read scope state](./hotkey-manager#read-scope-state). diff --git a/docs/framework/solid/guides/hotkeys.md b/docs/framework/solid/guides/hotkeys.md index 4c9607a0f..c305da8c9 100644 --- a/docs/framework/solid/guides/hotkeys.md +++ b/docs/framework/solid/guides/hotkeys.md @@ -260,7 +260,7 @@ function RichTextEditor() { } ``` -Options merge in three layers: provider defaults first, then shared `createHotkeys` options, then per-item options. +Options merge in layers: provider defaults first, then shared `createHotkeys` options, then per-item options. ### Build the list from data diff --git a/docs/framework/solid/guides/keyboard-layouts.md b/docs/framework/solid/guides/keyboard-layouts.md index 4641ce3e6..f94abbb51 100644 --- a/docs/framework/solid/guides/keyboard-layouts.md +++ b/docs/framework/solid/guides/keyboard-layouts.md @@ -54,7 +54,7 @@ All primitives (`createHotkeys`, `createHotkeyHint`, `createFormatForDisplay`), ## Available key sets -26 exported sets cover 33 layouts. Identical layouts share aliases, such as `AustrianKeys` and `GermanKeys`. Each set includes characters typed unshifted or with `Shift` across Windows, macOS, and Linux, excluding dead keys and `AltGr` or `Option` characters: +Identical layouts share a set under several aliases, such as `AustrianKeys` and `GermanKeys`. Each set includes characters typed unshifted or with `Shift` across Windows, macOS, and Linux, excluding dead keys and `AltGr` or `Option` characters: | Set | Layouts | | --- | --- | diff --git a/docs/framework/solid/reference/functions/createFormatForAria.md b/docs/framework/solid/reference/functions/createFormatForAria.md new file mode 100644 index 000000000..4f81e1af6 --- /dev/null +++ b/docs/framework/solid/reference/functions/createFormatForAria.md @@ -0,0 +1,97 @@ +--- +id: createFormatForAria +title: createFormatForAria +--- + + + +```ts +function createFormatForAria(): (hotkey, options) => string | undefined; +``` + +Defined in: createFormatForAria.ts:34 + +Returns `formatForAria` with the provider's `platform` as the default. Use +its value for `aria-keyshortcuts`, so screen readers announce the shortcut. +It returns `undefined` for a multi-step sequence or no hotkey, so Solid +omits the attribute. Call in a component; the returned function works anywhere, +and JSX updates when the provider's platform changes. An explicit +`platform` option wins. + +Physical bindings such as `[KeyQ]` name the key the user presses in +Chromium browsers, once the keyboard layout has loaded. See +`createKeyboardLayout`. An explicit `layoutMap` option wins. + +Server-rendered apps should set the provider's `defaultOptions.platform` +from the request user agent with `detectPlatform(userAgent)`. + +## Returns + +```ts +(hotkey, options?): string | undefined; +``` + +Formats a hotkey for an `aria-keyshortcuts` attribute so screen readers can +announce the shortcut. `Mod+K` becomes `Meta+K` on macOS and `Control+K` +elsewhere. + +Modifiers use the ARIA names (`Control`, `Alt`, `Shift`, `Meta`) and come +before the key. Keys use `KeyboardEvent.key` values, such as `K`, `/`, +`Escape`, or `ArrowUp`, with `Space` for the space bar and `Plus` for the +plus key. A physical binding names the key at that position, so `[KeyQ]` +becomes `Q`, or the key from `layoutMap` such as `A` on a French AZERTY +keyboard. Logical punctuation stays as written, so `'?'` stays `?` even +where it takes Shift to type. + +Returns `undefined` when the hotkey has no ARIA form, so the attribute is +omitted. This applies to empty or `null` hotkeys, multi-step sequences, +standalone modifiers, and physical codes with no key value such as +`[NumpadMemoryAdd]`. A one-step sequence formats like its chord. + +For a control with two shortcuts, join both formatted values with a space. +In a server-rendered app, use your adapter's formatter or pass `platform`. +Without a `platform` option, `formatForAria` uses `'linux'` on the server, +like `formatForDisplay`. + +### Parameters + +#### hotkey + +`DisplayHotkey` \| `null` \| `undefined` + +A hotkey string, raw object, parsed chord, or nothing + +#### options? + +`FormatAriaOptions` = `{}` + +The platform and keyboard layout + +### Returns + +`string` \| `undefined` + +The attribute value, or `undefined` when there is none + +### Example + +```ts +formatForAria('Mod+K', { platform: 'mac' }) // 'Meta+K' +formatForAria('Mod+Shift+P', { platform: 'windows' }) // 'Control+Shift+P' +formatForAria('Shift+Space') // 'Shift+Space' +formatForAria(['G', 'H']) // undefined +``` + +## Example + +```tsx +function SearchButton() { + const appHotkeys = useAppHotkeys() + const formatForAria = createFormatForAria() + return ( + + ) +} +``` diff --git a/docs/framework/solid/reference/functions/useDefaultHotkeysOptions.md b/docs/framework/solid/reference/functions/useDefaultHotkeysOptions.md index 5ba42ef8a..0a7113578 100644 --- a/docs/framework/solid/reference/functions/useDefaultHotkeysOptions.md +++ b/docs/framework/solid/reference/functions/useDefaultHotkeysOptions.md @@ -9,7 +9,7 @@ title: useDefaultHotkeysOptions function useDefaultHotkeysOptions(): HotkeysProviderOptions; ``` -Defined in: [HotkeysProvider.tsx:205](https://github.com/TanStack/hotkeys/blob/main/packages/solid-hotkeys/src/HotkeysProvider.tsx#L205) +Defined in: [HotkeysProvider.tsx:212](https://github.com/TanStack/hotkeys/blob/main/packages/solid-hotkeys/src/HotkeysProvider.tsx#L212) ## Returns diff --git a/docs/framework/solid/reference/functions/useHotkeysContext.md b/docs/framework/solid/reference/functions/useHotkeysContext.md index 9a5187374..32cf7b1f4 100644 --- a/docs/framework/solid/reference/functions/useHotkeysContext.md +++ b/docs/framework/solid/reference/functions/useHotkeysContext.md @@ -11,7 +11,7 @@ function useHotkeysContext(): | null; ``` -Defined in: [HotkeysProvider.tsx:201](https://github.com/TanStack/hotkeys/blob/main/packages/solid-hotkeys/src/HotkeysProvider.tsx#L201) +Defined in: [HotkeysProvider.tsx:208](https://github.com/TanStack/hotkeys/blob/main/packages/solid-hotkeys/src/HotkeysProvider.tsx#L208) ## Returns diff --git a/docs/framework/solid/reference/index.md b/docs/framework/solid/reference/index.md index 09165b6ca..0285ea53a 100644 --- a/docs/framework/solid/reference/index.md +++ b/docs/framework/solid/reference/index.md @@ -25,12 +25,14 @@ title: "@tanstack/solid-hotkeys" ## Variables +- [~~formatForAria~~](variables/formatForAria.md) - [~~formatForDisplay~~](variables/formatForDisplay.md) - [HotkeysProvider](variables/HotkeysProvider.md) ## Functions - [createAppHotkeyList](functions/createAppHotkeyList.md) +- [createFormatForAria](functions/createFormatForAria.md) - [createFormatForDisplay](functions/createFormatForDisplay.md) - [createHeldKeyCodes](functions/createHeldKeyCodes.md) - [createHeldKeys](functions/createHeldKeys.md) diff --git a/docs/framework/solid/reference/variables/formatForAria.md b/docs/framework/solid/reference/variables/formatForAria.md new file mode 100644 index 000000000..42aee3ec3 --- /dev/null +++ b/docs/framework/solid/reference/variables/formatForAria.md @@ -0,0 +1,22 @@ +--- +id: formatForAria +title: formatForAria +--- + + + +```ts +const formatForAria: typeof coreFormatForAria = coreFormatForAria; +``` + +Defined in: formatForAria.ts:12 + +Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or +the user's keyboard layout. + +## Deprecated + +Use `createFormatForAria()` in components. It returns this +function with the provider's platform and the user's keyboard layout filled +in. Outside a component, keep calling this function and pass `platform` +yourself. diff --git a/docs/framework/svelte/guides/accessibility.md b/docs/framework/svelte/guides/accessibility.md new file mode 100644 index 000000000..e4d7ee34e --- /dev/null +++ b/docs/framework/svelte/guides/accessibility.md @@ -0,0 +1,102 @@ +--- +title: Accessible Keyboard Shortcuts in Svelte +id: accessibility +description: Make Svelte keyboard shortcuts accessible. Announce them to screen readers with aria-keyshortcuts, and let users turn off single-key shortcuts as WCAG 2.1.4 requires. +--- + +Keyboard shortcuts help people who navigate without a mouse, but shortcuts can get in the way of other assistive technology. Screen readers can't announce a shortcut unless the control sets `aria-keyshortcuts`. Speech input types words as key presses, which can fire single-letter shortcuts by accident. This guide covers what TanStack Hotkeys handles by default and what to add in your app. + +## What the library handles + +These protections are on by default: + +- **Typing in fields and widgets.** Single keys and `Shift` or `Alt` chords don't fire while focus is in a text field, ``, or `contenteditable` element. Native buttons keep `Enter` and `Space`, links keep `Enter`, and ARIA widgets such as menus, listboxes, tabs, and grids keep their navigation keys. Configure this with `ignoreInputs` (see [Hotkey options](./hotkeys#hotkey-options)). +- **Characters typed with AltGr.** On keyboards where AltGr types characters such as `@` or `€`, typing them doesn't fire `Control+Alt` hotkeys. +- **Open overlays.** While focus is inside a native ``, popover, or ARIA dialog or menu, outer `Escape` hotkeys stay out of the way so the overlay closes first (see [Let an open overlay handle Escape](../../../guides/sensible-defaults.md#let-an-open-overlay-handle-escape)). To suspend all other page hotkeys while a dialog is open, wrap the dialog in an [exclusive scope](./hotkeys-provider-and-scopes#exclusive-scopes). + +## Announce shortcuts to screen readers + +Screen readers announce a control's shortcut from its [`aria-keyshortcuts`](https://w3c.github.io/aria/#aria-keyshortcuts) attribute. A visible `` label isn't enough. Screen readers may read a `` label as plain text rather than as a shortcut, and they may not read a symbol such as `⌘` as `Command`. Call `useFormatForAria()` to format a hotkey for the attribute using the same platform and keyboard layout as the display formatter: + +```vue + + + +``` + +Follow these rules when you add the attribute: + +- **Attach it to the target control.** Put `aria-keyshortcuts` on the button the shortcut activates or the field it focuses. The attribute only announces the shortcut, so register the hotkey as usual. +- **Keep the visible label.** Render a `` label alongside the attribute from the same hotkey so sighted and screen reader users see the same shortcut. +- **Document sequences in text.** ARIA has no syntax for multi-step sequences such as `['G', 'H']`, so the formatter returns `undefined` and Vue omits the attribute. List sequences in a [cheat sheet](./cheat-sheet-ui-helpers) instead. +- **Read from app hotkeys.** Pass the binding from [app hotkeys](./app-hotkeys) so `aria-keyshortcuts` updates when the user rebinds the shortcut. + +See [Format for `aria-keyshortcuts`](./formatting-display#format-for-aria-keyshortcuts) for the formatting rules and edge cases. + +## Let users turn off character key shortcuts + +[WCAG 2.1.4, Character Key Shortcuts](https://www.w3.org/WAI/WCAG22/Understanding/character-key-shortcuts.html) (Level A) covers shortcuts made only of keys that type a character, such as `K`, `?`, `Shift+K`, `Space`, or the sequence `['G', 'H']`. Speech input types words as key presses, and people with tremors press keys by accident, so these shortcuts fire when nobody meant them to. An app with character key shortcuts must provide at least one of these options: + +- A way to turn them off. +- A way to remap them to use `Control`, `Alt`, or `Meta`. +- Shortcuts that work only while a specific element has focus. + +### Turn them off + +Add a setting, such as **Single-key shortcuts**, and suspend character key shortcuts while it is off. Pass `suspend-character-keys` to `HotkeysProvider`, set from the user's setting. While a provider with `suspend-character-keys` is mounted, document-level character key shortcuts across the whole app stop firing, so one provider at the root of the app is enough: + +```vue + + + +``` + +With `provideHotkeysContext`, pass a getter or a ref: `provideHotkeysContext({ suspendCharacterKeys: () => !settings.characterKeyShortcuts })`. + +Suspensions are counted. Character key shortcuts stay off while any mounted provider sets `suspendCharacterKeys` to `true`, and they resume when the last one unmounts or its prop becomes `false`. `suspendCharacterKeys` applies even when the provider sets `:enabled="false"`. Outside a provider, call `getHotkeyManager().suspendCharacterKeys()`, which returns a function that resumes them. + +While suspended, an enabled character key shortcut reports the status `'suspended'` (the same as a hotkey in an inactive scope), so a [cheat sheet](./cheat-sheet-ui-helpers) can mark it as off. To display the current toggle state in a settings screen, read `characterKeysSuspended` from [scope state](./hotkey-manager#read-scope-state). + +These hotkeys keep working while character keys are suspended: + +| Hotkey | Why it keeps working | +| --- | --- | +| `Mod+K`, `Control+K`, `Alt+K` | Uses `Control`, `Alt`, or `Meta`. | +| `Escape`, `Enter`, `Tab`, `ArrowUp`, `F1` | Does not type a character. | +| `['Mod+K', 'C']` | At least one step uses a modifier or a non-character key. | +| A hotkey with an element `target` | Fires only while focus is inside that element. | + +Suspension checks the effective hotkey, so an app hotkey remapped from `K` to `Mod+K` works even while character keys are suspended. + +### Let users remap them + +[App hotkeys](./app-hotkeys) with a [shortcut settings screen](./custom-hotkey-recording) meet WCAG 2.1.4 on their own, as long as users can rebind every character key shortcut to one with a modifier. Offering both a toggle and remapping lets users either disable single-key shortcuts or rebind individual ones. + +### Scope them to an element + +A hotkey with an element `target` fires only while focus is inside that element. Use `target` for shortcuts that belong to one widget, such as `J` and `K` in a list. See [Hotkey targets](./hotkeys#hotkey-targets). + +## Make shortcuts discoverable + +List every shortcut in a [cheat sheet](./cheat-sheet-ui-helpers), and show [modifier hints](./hotkey-hints) while a modifier is held. For physical-key bindings, use `useFormatForDisplay()` so labels match the user's keyboard layout (see [Keyboard layouts](./keyboard-layouts)). + +## Leave assistive technology its keys + +Screen readers use single keys in browse mode and handle them before the page sees them. NVDA, for example, moves by heading with `H` and by link with `K`. Use `Mod` chords for app-wide actions, and reserve single-key shortcuts for focused widgets or an opt-in setting. Avoid binding browser or system shortcuts such as `Mod+L` or `Mod+W`. diff --git a/docs/framework/vue/guides/cheat-sheet-ui-helpers.md b/docs/framework/vue/guides/cheat-sheet-ui-helpers.md index 9f28f61c2..643d38b65 100644 --- a/docs/framework/vue/guides/cheat-sheet-ui-helpers.md +++ b/docs/framework/vue/guides/cheat-sheet-ui-helpers.md @@ -85,7 +85,7 @@ const named = computed(() => Filtering by `meta?.name` omits unnamed helper shortcuts, such as a dialog's `Escape`. Checking `status === 'active'` hides paused shortcuts: - `'active'` means the hotkey is enabled and in an active scope -- `'suspended'` means it is enabled, but its [scope](./hotkeys-provider-and-scopes) is inactive or suspended by an exclusive scope +- `'suspended'` means it is enabled, but its [scope](./hotkeys-provider-and-scopes) is inactive or suspended by an exclusive scope, or it is a character key shortcut while [character keys are suspended](./accessibility#turn-them-off) - `'disabled'` means `enabled: false` was set Each entry also includes `id`, `hotkey`, `options`, `target`, and `triggerCount`. Chord entries (`kind === 'chord'`) add `parsedChord`, and sequence entries (`kind === 'sequence'`) add `parsedSequence` and `matchedStepCount` (used in [Show sequences in your UI](./sequences#show-sequences-in-your-ui)). If several components register the same shortcut, such as rows in a list, each registration appears as its own entry. @@ -120,7 +120,7 @@ const items = useAppHotkeyList() | Status | Meaning | | --- | --- | | `'active'` | At least one enabled registration in an active scope | -| `'suspended'` | Enabled registrations exist, but none in an active scope | +| `'suspended'` | Enabled registrations exist, but none can fire: their scope is inactive, or character keys are suspended | | `'disabled'` | Registered, but every registration has `enabled: false` | | `'inactive'` | Has a hotkey assigned, but no component has registered it yet | | `'unbound'` | No hotkey assigned (`null`) | diff --git a/docs/framework/vue/guides/formatting-display.md b/docs/framework/vue/guides/formatting-display.md index 913d22aac..15e30c736 100644 --- a/docs/framework/vue/guides/formatting-display.md +++ b/docs/framework/vue/guides/formatting-display.md @@ -32,7 +32,7 @@ const formatForDisplay = useFormatForDisplay() ``` -The label is `⌘ S` on macOS and `Ctrl+S` on Windows and Linux. The composable fills in two things for you: +The label is `⌘ S` on macOS and `Ctrl+S` on Windows and Linux. The composable fills in the following for you: - **Platform.** Reads the nearest `HotkeysProvider`, or detects it from `navigator` when there is none. - **Keyboard layout.** For physical codes such as `[KeyW]`, reads the user's keyboard layout in Chromium browsers. See [Label physical keys for the user's keyboard](#label-physical-keys-for-the-users-keyboard). @@ -159,6 +159,33 @@ formatForDisplay('Mod+[KeyQ]', { `keyLabels` wins over a layout entry, which wins over the fallback label. Layout entries get normal letter casing and key symbols, and missing or empty entries fall back. All of these options affect display only. `keyLabels` works anywhere, including on the server. +## Format for `aria-keyshortcuts` + +`useFormatForAria()` returns a function that formats a hotkey for the [`aria-keyshortcuts`](https://w3c.github.io/aria/#aria-keyshortcuts) attribute so screen readers can announce it. It uses the same platform and keyboard layout as the display formatter. See [Accessibility](./accessibility#announce-shortcuts-to-screen-readers) for where to place the attribute. + +```vue + + + +``` + +The output uses the key names from the ARIA specification: + +- **Modifiers.** `Mod` becomes `Meta` on macOS and `Control` elsewhere. Modifiers use `Control`, `Alt`, `Shift`, and `Meta` in that order before the key, so `Mod+Shift+P` formats as `Shift+Meta+P` on macOS. +- **Keys.** Keys use `KeyboardEvent.key` values (`K`, `/`, `Escape`, `ArrowUp`), with `Space` for the space bar and `Plus` for the plus key. A physical binding names the key at that position from the user's keyboard layout where the browser reports it, so `[KeyQ]` formats as `Q`, or `A` on a French AZERTY keyboard. A logical hotkey's punctuation stays as written, so `'?'` formats as `?` rather than the `Shift+/` you press on a US keyboard. The key that types `?` depends on the layout. To name the key, bind it physically, such as `Shift+[Slash]`. +- **No value.** Returns `undefined` for a multi-step sequence, a standalone modifier, an empty or `null` hotkey, or a physical code with no key name such as `[NumpadMemoryAdd]`, so Vue omits the attribute. ARIA has no syntax for multi-step sequences. + +For a control with two shortcuts, join both formatted values with a space, such as `Control+K /`. + ## Server-side rendering Pass `platform` to `HotkeysProvider` from the incoming request so the server renders the right labels, or wrap labels in a client-only guard on static pages. See [SSR & Hydration](./ssr) for Nuxt, Vite SSR, Astro, and static page examples. @@ -178,6 +205,8 @@ The plain function takes the same options as the function from the composable. I > [!NOTE] > `formatForDisplay` is marked `@deprecated` so editor autocomplete nudges component code toward `useFormatForDisplay`. Outside components, calling it directly is expected. +For `aria-keyshortcuts` outside a component, call `formatForAria` directly with `platform` and an optional `layoutMap`. For example, `formatForAria('Mod+S', { platform: 'mac' })` returns `'Meta+S'`. Like `formatForDisplay`, the plain export is marked `@deprecated`, so editors point component code to the adapter's formatter. + ## Parse, compare, and store hotkeys `parseHotkey` returns each chord's key, as either a logical `key` or a physical `code`, plus its modifiers with `Mod` resolved. Check which one is present before reading it: diff --git a/docs/framework/vue/guides/hotkey-manager.md b/docs/framework/vue/guides/hotkey-manager.md index b4a2e7a6d..4aad77b74 100644 --- a/docs/framework/vue/guides/hotkey-manager.md +++ b/docs/framework/vue/guides/hotkey-manager.md @@ -91,7 +91,7 @@ close.unregister() releaseScope() ``` -`activateScope` returns a function that releases the scope. A scope stays active until every activation of it is released. `activateScope` takes two options: +`activateScope` returns a function that releases the scope. A scope stays active until every activation of it is released. `activateScope` takes these options: - `exclusive` suspends every other scope, including `'global'`, while this scope is active. Pass `{ allow: ['global'] }` to keep the listed scopes working. - `parent` names the scope this one is nested in, so this scope takes precedence over it. The default is `'global'`. @@ -123,6 +123,17 @@ const scopes = useHotkeyScopesState() The [devtools](../../../devtools) show the same scope state without any code. +## Suspend character key shortcuts + +Call `manager.suspendCharacterKeys()` to pause document-level hotkeys made only of keys that type a character, such as `K`, `Shift+/`, or `['G', 'H']`. Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys such as `Escape`, and hotkeys targeted at an element keep working. Suspensions are counted like scope activations, so character key shortcuts stay suspended until every returned resume function runs: + +```ts +const resume = manager.suspendCharacterKeys() +resume() +``` + +Read `manager.scopes.state.characterKeysSuspended` to check whether character keys are suspended. Inside components, pass `suspend-character-keys` to `HotkeysProvider` (or `suspendCharacterKeys` to `provideHotkeysContext`) instead. See [Accessibility](./accessibility#let-users-turn-off-character-key-shortcuts). + ## Reset sequence progress `manager.resetSequenceProgress()` clears the steps the user has pressed in every sequence. Call it when an action in your app should cancel a sequence the user has started. diff --git a/docs/framework/vue/guides/hotkeys-provider-and-scopes.md b/docs/framework/vue/guides/hotkeys-provider-and-scopes.md index 1db83d273..1cdd49042 100644 --- a/docs/framework/vue/guides/hotkeys-provider-and-scopes.md +++ b/docs/framework/vue/guides/hotkeys-provider-and-scopes.md @@ -289,6 +289,10 @@ For UI that Vue doesn't render, such as a dialog from another library, activate `HotkeysProvider` and `provideHotkeysContext` need a component, because they use `provide` and `onMounted`. A hotkey registered in an `effectScope` outside a component can't read a provider's defaults, scope, or app hotkeys. Pass `scope` in its options instead. See [Choose a scope for one hotkey](#choose-a-scope-for-one-hotkey). +## Suspend character key shortcuts + +Pass `suspend-character-keys` to `HotkeysProvider` (or `suspendCharacterKeys` to `provideHotkeysContext`) to pause document-level character key shortcuts, such as `K` or `['G', 'H']`, across the app while the value is `true`. Suspended hotkeys report the status `'suspended'`, like hotkeys in an inactive scope, and the option applies even when `enabled` is `false`. Wire it to a user setting as shown in [Accessibility](./accessibility#let-users-turn-off-character-key-shortcuts). + ## Inspect scopes The [devtools](../../../devtools) group registrations by scope and show which scopes are active, suspended, allowed, or exclusive. To read the same state in your own UI, see [Read scope state](./hotkey-manager#read-scope-state). diff --git a/docs/framework/vue/guides/hotkeys.md b/docs/framework/vue/guides/hotkeys.md index c80e251b2..3eca45b60 100644 --- a/docs/framework/vue/guides/hotkeys.md +++ b/docs/framework/vue/guides/hotkeys.md @@ -243,9 +243,9 @@ useHotkeys( ``` -The shared `target` makes all three hotkeys listen on the editor only. [Hotkey targets](#hotkey-targets) explains targets. +The shared `target` makes every hotkey in the list listen on the editor only. [Hotkey targets](#hotkey-targets) explains targets. -Options merge in three layers: defaults from the provider first, then the shared options, then per-item options. +Options merge in layers: defaults from the provider first, then the shared options, then per-item options. ### Build the list from data diff --git a/docs/framework/vue/guides/keyboard-layouts.md b/docs/framework/vue/guides/keyboard-layouts.md index 94fc316bc..c01b5f69e 100644 --- a/docs/framework/vue/guides/keyboard-layouts.md +++ b/docs/framework/vue/guides/keyboard-layouts.md @@ -57,7 +57,7 @@ useHotkey('Mod+Ñ', search) // Type error: Spanish isn't registered ## Available key sets -26 exported sets cover 33 layouts. Identical layouts share aliases, such as `AustrianKeys` and `GermanKeys`. Each set includes characters typed unshifted or with `Shift` across Windows, macOS, and Linux, excluding dead keys and `AltGr` or `Option` characters: +Identical layouts share a set under several aliases, such as `AustrianKeys` and `GermanKeys`. Each set includes characters typed unshifted or with `Shift` across Windows, macOS, and Linux, excluding dead keys and `AltGr` or `Option` characters: | Set | Layouts | | --- | --- | diff --git a/docs/framework/vue/reference/functions/provideHotkeysContext.md b/docs/framework/vue/reference/functions/provideHotkeysContext.md index f66e628a8..4fd30cb86 100644 --- a/docs/framework/vue/reference/functions/provideHotkeysContext.md +++ b/docs/framework/vue/reference/functions/provideHotkeysContext.md @@ -9,7 +9,7 @@ title: provideHotkeysContext function provideHotkeysContext(options?): void; ``` -Defined in: [HotkeysProviderContext.ts:110](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/HotkeysProviderContext.ts#L110) +Defined in: [HotkeysProviderContext.ts:114](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/HotkeysProviderContext.ts#L114) Provides default options, app hotkeys, and the user's custom hotkeys to descendants. `HotkeysProvider` calls this; call it directly in a component's diff --git a/docs/framework/vue/reference/functions/useDefaultHotkeysOptions.md b/docs/framework/vue/reference/functions/useDefaultHotkeysOptions.md index 2b99c412f..7aa9c1c6e 100644 --- a/docs/framework/vue/reference/functions/useDefaultHotkeysOptions.md +++ b/docs/framework/vue/reference/functions/useDefaultHotkeysOptions.md @@ -9,7 +9,7 @@ title: useDefaultHotkeysOptions function useDefaultHotkeysOptions(): HotkeysProviderOptions; ``` -Defined in: [HotkeysProviderContext.ts:221](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/HotkeysProviderContext.ts#L221) +Defined in: [HotkeysProviderContext.ts:234](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/HotkeysProviderContext.ts#L234) ## Returns diff --git a/docs/framework/vue/reference/functions/useFormatForAria.md b/docs/framework/vue/reference/functions/useFormatForAria.md new file mode 100644 index 000000000..cd6cdf8a1 --- /dev/null +++ b/docs/framework/vue/reference/functions/useFormatForAria.md @@ -0,0 +1,98 @@ +--- +id: useFormatForAria +title: useFormatForAria +--- + + + +```ts +function useFormatForAria(): (hotkey, options?) => string | undefined; +``` + +Defined in: useFormatForAria.ts:35 + +Returns `formatForAria` with the provider's `platform` as the default. Use +its value for `aria-keyshortcuts`, so screen readers announce the shortcut. +It returns `undefined` for a multi-step sequence or no hotkey, so Vue omits +the attribute. Call in `setup`; the returned function works anywhere, and +templates update when the provider's platform changes. An explicit +`platform` option wins. + +Physical bindings such as `[KeyQ]` name the key the user presses in +Chromium browsers, once the keyboard layout has loaded. See +`useKeyboardLayout`. A `layoutMap` passed to the returned function wins. + +Server-rendered apps should set the provider's `defaultOptions.platform` +from the request user agent with `detectPlatform(userAgent)`. + +## Returns + +```ts +(hotkey, options?): string | undefined; +``` + +Formats a hotkey for an `aria-keyshortcuts` attribute so screen readers can +announce the shortcut. `Mod+K` becomes `Meta+K` on macOS and `Control+K` +elsewhere. + +Modifiers use the ARIA names (`Control`, `Alt`, `Shift`, `Meta`) and come +before the key. Keys use `KeyboardEvent.key` values, such as `K`, `/`, +`Escape`, or `ArrowUp`, with `Space` for the space bar and `Plus` for the +plus key. A physical binding names the key at that position, so `[KeyQ]` +becomes `Q`, or the key from `layoutMap` such as `A` on a French AZERTY +keyboard. Logical punctuation stays as written, so `'?'` stays `?` even +where it takes Shift to type. + +Returns `undefined` when the hotkey has no ARIA form, so the attribute is +omitted. This applies to empty or `null` hotkeys, multi-step sequences, +standalone modifiers, and physical codes with no key value such as +`[NumpadMemoryAdd]`. A one-step sequence formats like its chord. + +For a control with two shortcuts, join both formatted values with a space. +In a server-rendered app, use your adapter's formatter or pass `platform`. +Without a `platform` option, `formatForAria` uses `'linux'` on the server, +like `formatForDisplay`. + +### Parameters + +#### hotkey + +`DisplayHotkey` \| `null` \| `undefined` + +A hotkey string, raw object, parsed chord, or nothing + +#### options? + +`FormatAriaOptions` + +The platform and keyboard layout + +### Returns + +`string` \| `undefined` + +The attribute value, or `undefined` when there is none + +### Example + +```ts +formatForAria('Mod+K', { platform: 'mac' }) // 'Meta+K' +formatForAria('Mod+Shift+P', { platform: 'windows' }) // 'Control+Shift+P' +formatForAria('Shift+Space') // 'Shift+Space' +formatForAria(['G', 'H']) // undefined +``` + +## Example + +```vue + + + +``` diff --git a/docs/framework/vue/reference/functions/useHotkeysContext.md b/docs/framework/vue/reference/functions/useHotkeysContext.md index 0f1402399..df6da0006 100644 --- a/docs/framework/vue/reference/functions/useHotkeysContext.md +++ b/docs/framework/vue/reference/functions/useHotkeysContext.md @@ -9,7 +9,7 @@ title: useHotkeysContext function useHotkeysContext(): VueHotkeysContextValue | null; ``` -Defined in: [HotkeysProviderContext.ts:217](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/HotkeysProviderContext.ts#L217) +Defined in: [HotkeysProviderContext.ts:230](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/HotkeysProviderContext.ts#L230) The nearest context, or `null`. Outside a component, such as in a bare `effectScope`, there is no context to read, so this skips `inject` and its diff --git a/docs/framework/vue/reference/index.md b/docs/framework/vue/reference/index.md index d4ead763c..8d6cdcc14 100644 --- a/docs/framework/vue/reference/index.md +++ b/docs/framework/vue/reference/index.md @@ -25,6 +25,7 @@ title: "@tanstack/vue-hotkeys" ## Variables +- [~~formatForAria~~](variables/formatForAria.md) - [~~formatForDisplay~~](variables/formatForDisplay.md) - [HotkeysProvider](variables/HotkeysProvider.md) @@ -35,6 +36,7 @@ title: "@tanstack/vue-hotkeys" - [useAppHotkeys](functions/useAppHotkeys.md) - [useCustomHotkeys](functions/useCustomHotkeys.md) - [useDefaultHotkeysOptions](functions/useDefaultHotkeysOptions.md) +- [useFormatForAria](functions/useFormatForAria.md) - [useFormatForDisplay](functions/useFormatForDisplay.md) - [useHeldKeyCodes](functions/useHeldKeyCodes.md) - [useHeldKeys](functions/useHeldKeys.md) diff --git a/docs/framework/vue/reference/interfaces/ProvideHotkeysContextOptions.md b/docs/framework/vue/reference/interfaces/ProvideHotkeysContextOptions.md index ed3f7eaf4..0cb7a4b8e 100644 --- a/docs/framework/vue/reference/interfaces/ProvideHotkeysContextOptions.md +++ b/docs/framework/vue/reference/interfaces/ProvideHotkeysContextOptions.md @@ -19,7 +19,7 @@ optional appHotkeys?: MaybeRefOrGetter< | undefined>; ``` -Defined in: [HotkeysProviderContext.ts:78](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/HotkeysProviderContext.ts#L78) +Defined in: [HotkeysProviderContext.ts:82](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/HotkeysProviderContext.ts#L82) Every app hotkey, from `defineAppHotkeys`. It can start as `undefined` and arrive later, such as from a lazy import. Later changes update the @@ -36,7 +36,7 @@ optional customHotkeys?: MaybeRefOrGetter< | undefined>; ``` -Defined in: [HotkeysProviderContext.ts:85](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/HotkeysProviderContext.ts#L85) +Defined in: [HotkeysProviderContext.ts:89](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/HotkeysProviderContext.ts#L89) The user's saved custom hotkeys. When the value changes, such as after saved data loads or the user signs in, it replaces the current custom @@ -91,7 +91,7 @@ See `HotkeysProviderScopeProps['exclusive']`. optional onCustomHotkeysChange?: (customHotkeys) => void; ``` -Defined in: [HotkeysProviderContext.ts:87](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/HotkeysProviderContext.ts#L87) +Defined in: [HotkeysProviderContext.ts:91](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/HotkeysProviderContext.ts#L91) Called with the custom hotkeys after every change, ready to save. @@ -116,3 +116,15 @@ optional scope?: MaybeRefOrGetter; Defined in: [HotkeysProviderContext.ts:68](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/HotkeysProviderContext.ts#L68) See `HotkeysProviderScopeProps['scope']`. + +*** + +### suspendCharacterKeys? + +```ts +optional suspendCharacterKeys?: MaybeRefOrGetter; +``` + +Defined in: [HotkeysProviderContext.ts:74](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/HotkeysProviderContext.ts#L74) + +See `HotkeysProviderScopeProps['suspendCharacterKeys']`. diff --git a/docs/framework/vue/reference/variables/HotkeysProvider.md b/docs/framework/vue/reference/variables/HotkeysProvider.md index 1847464be..f5247cbfc 100644 --- a/docs/framework/vue/reference/variables/HotkeysProvider.md +++ b/docs/framework/vue/reference/variables/HotkeysProvider.md @@ -12,7 +12,7 @@ const HotkeysProvider: DefineComponent VNode[] | und }, ComponentOptionsMixin, ComponentOptionsMixin, typeof providerEmits> = component; ``` -Defined in: [HotkeysProvider.tsx:98](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/HotkeysProvider.tsx#L98) +Defined in: [HotkeysProvider.tsx:101](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/HotkeysProvider.tsx#L101) Vue component that provides default options, app hotkeys, and the user's custom hotkeys. A new `customHotkeys` value replaces the current custom diff --git a/docs/framework/vue/reference/variables/formatForAria.md b/docs/framework/vue/reference/variables/formatForAria.md new file mode 100644 index 000000000..21f20d47b --- /dev/null +++ b/docs/framework/vue/reference/variables/formatForAria.md @@ -0,0 +1,22 @@ +--- +id: formatForAria +title: formatForAria +--- + + + +```ts +const formatForAria: typeof coreFormatForAria = coreFormatForAria; +``` + +Defined in: formatForAria.ts:12 + +Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or +the user's keyboard layout. + +## Deprecated + +Use `useFormatForAria()` in components. It returns this +function with the provider's platform and the user's keyboard layout filled +in. Outside a component, keep calling this function and pass `platform` +yourself. diff --git a/docs/guides/sensible-defaults.md b/docs/guides/sensible-defaults.md index 6f195365d..637da3211 100644 --- a/docs/guides/sensible-defaults.md +++ b/docs/guides/sensible-defaults.md @@ -40,7 +40,7 @@ Logical bindings like `Mod+S` or `?` match `event.key`, which is the character p ### When matching falls back to physical position -`event.key` doesn't always tell you which key was pressed, so the matcher falls back to the key's position (`event.code` or keycap identity) in four cases: +`event.key` doesn't always tell you which key was pressed, so the matcher falls back to the key's position (`event.code` or keycap identity) in these cases: - **Non-Latin layouts.** On a Russian layout, the `S` key types `ы`. `Mod+S` still matches so shortcuts work without switching layouts. - **macOS `Option`.** Option changes characters (`Option+S` types `ß`, German `Option+L` types `@`). `Alt+S` and `Alt+L` still match based on the letter printed on the key (`event.keyCode`, falling back to position when `keyCode` isn't a letter). On a French AZERTY Mac, `Alt+A` fires on the key labeled `A` (the US `Q` position). @@ -195,14 +195,14 @@ For most shortcuts, setting `preventDefault: 'always'` in your shared defaults i Don't use `'always'` on hotkeys you turn off specifically to hand keys back to the browser. Set `preventDefault: true` on those instead: - **Clipboard and editing chords.** `Mod+C`, `Mod+A`, and `Mod+Z` enabled only while canvas cells are selected would block native copy and undo in text inputs if `'always'` were set. -- **Single-key shortcuts.** Shortcuts behind an accessibility off switch would keep blocking `Space`, arrow keys, or `/` when turned off. +- **Single-key shortcuts.** Shortcuts behind an accessibility off switch, including character key shortcuts suspended with `suspendCharacterKeys`, would keep blocking `Space`, arrow keys, or `/` when turned off. - **`Tab` hotkeys.** Disabling them would still trap focus. ## Single-key shortcuts need an off switch Ignoring text inputs prevents `K` from firing while typing, but speech-input users dictate words as single keystrokes. Under [WCAG 2.1.4](https://www.w3.org/WAI/WCAG22/Understanding/character-key-shortcuts.html), any shortcut using only letters, numbers, or symbols (including `Shift+K` or a sequence like `['G', 'G']`) must satisfy at least one of these conditions: -- **Turn it off.** Wire `enabled` to a user preference. +- **Turn it off.** Pass `suspendCharacterKeys` to your provider, or call `getHotkeyManager().suspendCharacterKeys()`, from a user preference. Each framework's Accessibility guide shows how. - **Remap it.** Let users add a modifier through app hotkeys and the recorder. - **Scope it to focus.** Give it an element `target` so it fires only while that widget is focused. diff --git a/docs/reference/adapter/functions/activateHotkeysProviderScope.md b/docs/reference/adapter/functions/activateHotkeysProviderScope.md index 003b39e91..2fb148dbc 100644 --- a/docs/reference/adapter/functions/activateHotkeysProviderScope.md +++ b/docs/reference/adapter/functions/activateHotkeysProviderScope.md @@ -9,7 +9,7 @@ title: activateHotkeysProviderScope function activateHotkeysProviderScope(key): () => void; ``` -Defined in: [adapter.ts:541](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L541) +Defined in: [adapter.ts:555](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L555) Activates the scope described by a key from `getHotkeysProviderScopeKey`. Returns a function that releases the activation. diff --git a/docs/reference/adapter/functions/bindCustomHotkeyActions.md b/docs/reference/adapter/functions/bindCustomHotkeyActions.md index 53a7c44a0..68741361b 100644 --- a/docs/reference/adapter/functions/bindCustomHotkeyActions.md +++ b/docs/reference/adapter/functions/bindCustomHotkeyActions.md @@ -9,7 +9,7 @@ title: bindCustomHotkeyActions function bindCustomHotkeyActions(getStore): CustomHotkeyActions; ``` -Defined in: [adapter.ts:592](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L592) +Defined in: [adapter.ts:606](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L606) Custom hotkey actions that call the store from `getStore` each time, so they follow a store that changes. diff --git a/docs/reference/adapter/functions/createFormatForDisplay.md b/docs/reference/adapter/functions/createFormatForDisplay.md index 763025961..affc4e595 100644 --- a/docs/reference/adapter/functions/createFormatForDisplay.md +++ b/docs/reference/adapter/functions/createFormatForDisplay.md @@ -14,11 +14,11 @@ function createFormatForDisplay(getPlatform, getLayoutMap): { }; ``` -Defined in: [adapter.ts:639](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L639) +Defined in: [adapter.ts:693](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L693) A `formatForDisplay` that uses a provider's platform and keyboard layout -when the call doesn't pass them. Only a label that names a physical key -reads `getLayoutMap`, so other labels don't depend on the layout. +when the call doesn't pass them. Same as +`createFormatter(formatForDisplay, getPlatform, getLayoutMap)`. ## Parameters diff --git a/docs/reference/adapter/functions/createFormatter.md b/docs/reference/adapter/functions/createFormatter.md new file mode 100644 index 000000000..8e3fc9ae1 --- /dev/null +++ b/docs/reference/adapter/functions/createFormatter.md @@ -0,0 +1,51 @@ +--- +id: createFormatter +title: createFormatter +--- + + + +```ts +function createFormatter( + format, + getPlatform, + getLayoutMap +): TFormat; +``` + +Defined in: [adapter.ts:665](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L665) + +Returns `format`, such as `formatForDisplay` or `formatForAria`, with a +provider's platform and keyboard layout used when the call doesn't pass +them. Only a hotkey that names a physical key reads `getLayoutMap`, so +other hotkeys don't depend on the layout. + +## Type Parameters + +### TFormat + +`TFormat` *extends* (`hotkey`, `options?`) => `unknown` + +## Parameters + +### format + +`TFormat` + +### getPlatform + +() => `HotkeyPlatform` \| `undefined` + +### getLayoutMap + +() => `KeyboardLayoutMap` \| `null` \| `undefined` + +## Returns + +`TFormat` + +## Example + +```ts +const format = createFormatter(formatForAria, () => provider.platform, () => layoutMap) +``` diff --git a/docs/reference/adapter/functions/createHotkeyBindings.md b/docs/reference/adapter/functions/createHotkeyBindings.md index c8818980b..1eba7e751 100644 --- a/docs/reference/adapter/functions/createHotkeyBindings.md +++ b/docs/reference/adapter/functions/createHotkeyBindings.md @@ -9,7 +9,7 @@ title: createHotkeyBindings function createHotkeyBindings(adapterOptions?): object; ``` -Defined in: [adapter.ts:101](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L101) +Defined in: [adapter.ts:103](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L103) Reconciles adapter registrations while retaining handles for option updates. Adapters for frameworks that delegate key events, such as React, pass diff --git a/docs/reference/adapter/functions/definedOptions.md b/docs/reference/adapter/functions/definedOptions.md index a268d8434..8e396d4fa 100644 --- a/docs/reference/adapter/functions/definedOptions.md +++ b/docs/reference/adapter/functions/definedOptions.md @@ -9,7 +9,7 @@ title: definedOptions function definedOptions(...layers): T; ``` -Defined in: [\_registration.ts:27](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/_registration.ts#L27) +Defined in: [\_registration.ts:12](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/_registration.ts#L12) Merges option layers left to right. A key set to `undefined` keeps the earlier layer's value, so an unset option keeps its default. Getters are diff --git a/docs/reference/adapter/functions/followKeyboardLayout.md b/docs/reference/adapter/functions/followKeyboardLayout.md index a672a5dfe..260730d93 100644 --- a/docs/reference/adapter/functions/followKeyboardLayout.md +++ b/docs/reference/adapter/functions/followKeyboardLayout.md @@ -9,7 +9,7 @@ title: followKeyboardLayout function followKeyboardLayout(onChange, load?): () => void; ``` -Defined in: [adapter.ts:658](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L658) +Defined in: [adapter.ts:705](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L705) Loads the browser's keyboard layout and calls `onChange` when it changes. Pass `load` to run the load differently, such as outside Angular's zone. diff --git a/docs/reference/adapter/functions/getHotkeyRegistrationViews.md b/docs/reference/adapter/functions/getHotkeyRegistrationViews.md index ad1f9fdd1..4e8024954 100644 --- a/docs/reference/adapter/functions/getHotkeyRegistrationViews.md +++ b/docs/reference/adapter/functions/getHotkeyRegistrationViews.md @@ -9,7 +9,7 @@ title: getHotkeyRegistrationViews function getHotkeyRegistrationViews(registrations?): HotkeyRegistrationView[]; ``` -Defined in: [adapter.ts:606](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L606) +Defined in: [adapter.ts:620](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L620) Views of every registration, chords and sequences, for registration lists. diff --git a/docs/reference/adapter/functions/getHotkeysProviderScopeKey.md b/docs/reference/adapter/functions/getHotkeysProviderScopeKey.md index 469f1ead9..c3daa1674 100644 --- a/docs/reference/adapter/functions/getHotkeysProviderScopeKey.md +++ b/docs/reference/adapter/functions/getHotkeysProviderScopeKey.md @@ -9,7 +9,7 @@ title: getHotkeysProviderScopeKey function getHotkeysProviderScopeKey(options): string | null; ``` -Defined in: [adapter.ts:520](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L520) +Defined in: [adapter.ts:534](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L534) A key for a provider's scope activation, or `null` when the scope should not be active. Equal keys mean the same activation, so adapters reactivate only diff --git a/docs/reference/adapter/functions/getPublishedAppHotkeysStore.md b/docs/reference/adapter/functions/getPublishedAppHotkeysStore.md index 89ca5d628..d3de9e2c6 100644 --- a/docs/reference/adapter/functions/getPublishedAppHotkeysStore.md +++ b/docs/reference/adapter/functions/getPublishedAppHotkeysStore.md @@ -11,7 +11,7 @@ function getPublishedAppHotkeysStore(): | null; ``` -Defined in: [adapter.ts:584](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L584) +Defined in: [adapter.ts:598](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L598) The store published with `publishAppHotkeysStore` or `provideAppHotkeys`, or `null`. For adapters that resolve app hotkeys without a provider. diff --git a/docs/reference/adapter/functions/getServerPlatformSnapshot.md b/docs/reference/adapter/functions/getServerPlatformSnapshot.md index 731442299..516c1a81b 100644 --- a/docs/reference/adapter/functions/getServerPlatformSnapshot.md +++ b/docs/reference/adapter/functions/getServerPlatformSnapshot.md @@ -9,7 +9,7 @@ title: getServerPlatformSnapshot function getServerPlatformSnapshot(): HotkeyPlatform; ``` -Defined in: [adapter.ts:510](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L510) +Defined in: [adapter.ts:524](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L524) The platform to render with during server rendering and hydration when no provider sets one, for a `useSyncExternalStore` server snapshot. Warns once diff --git a/docs/reference/adapter/functions/isHotkeyHintVisible.md b/docs/reference/adapter/functions/isHotkeyHintVisible.md index 20cad67af..23292a8c5 100644 --- a/docs/reference/adapter/functions/isHotkeyHintVisible.md +++ b/docs/reference/adapter/functions/isHotkeyHintVisible.md @@ -14,7 +14,7 @@ function isHotkeyHintVisible( ): boolean; ``` -Defined in: [adapter.ts:618](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L618) +Defined in: [adapter.ts:632](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L632) Whether a hotkey's hint shows: its modifiers are held and a registration that can fire exists. App hotkeys resolve through `appHotkeysStore`. diff --git a/docs/reference/adapter/functions/mergeHotkeysProviderDefaults.md b/docs/reference/adapter/functions/mergeHotkeysProviderDefaults.md index 89e270a34..c4e0ffddd 100644 --- a/docs/reference/adapter/functions/mergeHotkeysProviderDefaults.md +++ b/docs/reference/adapter/functions/mergeHotkeysProviderDefaults.md @@ -13,7 +13,7 @@ function mergeHotkeysProviderDefaults( ): T; ``` -Defined in: [adapter.ts:476](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L476) +Defined in: [adapter.ts:490](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L490) Merges a provider's default options over its parent's. A provider with a `scope` sets `hotkey.scope`, so hotkeys registered inside it use that scope. diff --git a/docs/reference/adapter/functions/namesPhysicalKey.md b/docs/reference/adapter/functions/namesPhysicalKey.md index 425d23cb4..033c98be6 100644 --- a/docs/reference/adapter/functions/namesPhysicalKey.md +++ b/docs/reference/adapter/functions/namesPhysicalKey.md @@ -9,7 +9,7 @@ title: namesPhysicalKey function namesPhysicalKey(hotkey): boolean; ``` -Defined in: [adapter.ts:559](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L559) +Defined in: [adapter.ts:573](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L573) Whether a hotkey to display names a physical position, such as `[KeyQ]` or `{ code: 'KeyQ' }`. Only those labels follow the keyboard layout. A label diff --git a/docs/reference/adapter/functions/prepareHotkeyDefinitions.md b/docs/reference/adapter/functions/prepareHotkeyDefinitions.md index 0e4f0fe14..971ecf9b3 100644 --- a/docs/reference/adapter/functions/prepareHotkeyDefinitions.md +++ b/docs/reference/adapter/functions/prepareHotkeyDefinitions.md @@ -9,7 +9,7 @@ title: prepareHotkeyDefinitions function prepareHotkeyDefinitions(definitions, options?): HotkeyDefinition[]; ``` -Defined in: [adapter.ts:349](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L349) +Defined in: [adapter.ts:351](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L351) Converts adapter definitions into `createHotkeyBindings` definitions. Options merge in this order: defaults, app hotkey declaration, common diff --git a/docs/reference/adapter/functions/requireAppHotkeysStore.md b/docs/reference/adapter/functions/requireAppHotkeysStore.md index 3cca11f04..887902bd3 100644 --- a/docs/reference/adapter/functions/requireAppHotkeysStore.md +++ b/docs/reference/adapter/functions/requireAppHotkeysStore.md @@ -9,7 +9,7 @@ title: requireAppHotkeysStore function requireAppHotkeysStore(store, message): AppHotkeysStore>>>; ``` -Defined in: [adapter.ts:570](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L570) +Defined in: [adapter.ts:584](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L584) The app hotkeys store, typed by `Register`, or throws when there is none. `message` says which API needs it and how to provide one. diff --git a/docs/reference/adapter/functions/resolveRefTarget.md b/docs/reference/adapter/functions/resolveRefTarget.md index b90cf8d19..0f864d4ab 100644 --- a/docs/reference/adapter/functions/resolveRefTarget.md +++ b/docs/reference/adapter/functions/resolveRefTarget.md @@ -9,7 +9,7 @@ title: resolveRefTarget function resolveRefTarget(target): Target | null | undefined; ``` -Defined in: [adapter.ts:683](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L683) +Defined in: [adapter.ts:730](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L730) Resolves a ref object to its current element; other targets pass through. An unset ref resolves to `null` or `undefined`, so registration waits. diff --git a/docs/reference/adapter/functions/subscribePublishedAppHotkeys.md b/docs/reference/adapter/functions/subscribePublishedAppHotkeys.md index ab3e9e383..f07e9476e 100644 --- a/docs/reference/adapter/functions/subscribePublishedAppHotkeys.md +++ b/docs/reference/adapter/functions/subscribePublishedAppHotkeys.md @@ -9,7 +9,7 @@ title: subscribePublishedAppHotkeys function subscribePublishedAppHotkeys(onChange): () => void; ``` -Defined in: [adapter.ts:395](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L395) +Defined in: [adapter.ts:397](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L397) Calls `onChange` when the store published with `publishAppHotkeysStore` or `provideAppHotkeys` changes, or when its app hotkeys or custom hotkeys diff --git a/docs/reference/adapter/functions/syncRecorderOptions.md b/docs/reference/adapter/functions/syncRecorderOptions.md index eaa75e03a..0a2e43e9b 100644 --- a/docs/reference/adapter/functions/syncRecorderOptions.md +++ b/docs/reference/adapter/functions/syncRecorderOptions.md @@ -9,7 +9,7 @@ title: syncRecorderOptions function syncRecorderOptions(recorder, options): void; ``` -Defined in: [adapter.ts:699](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L699) +Defined in: [adapter.ts:746](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L746) Gives a recorder the full set of options an adapter resolved. Unlike `setOptions`, which merges, an option the caller stopped passing, such as diff --git a/docs/reference/adapter/functions/withDefaults.md b/docs/reference/adapter/functions/withDefaults.md index 848de4690..2adbbd900 100644 --- a/docs/reference/adapter/functions/withDefaults.md +++ b/docs/reference/adapter/functions/withDefaults.md @@ -9,7 +9,7 @@ title: withDefaults function withDefaults(defaults, options): T; ``` -Defined in: [\_registration.ts:46](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/_registration.ts#L46) +Defined in: [\_registration.ts:31](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/_registration.ts#L31) Merges options over defaults for an API whose `setOptions` treats `undefined` as "clear". An unset option takes its default, or stays diff --git a/docs/reference/adapter/index.md b/docs/reference/adapter/index.md index a126f1332..e90c9d7af 100644 --- a/docs/reference/adapter/index.md +++ b/docs/reference/adapter/index.md @@ -34,6 +34,7 @@ title: "@tanstack/hotkeys" - [bindCustomHotkeyActions](functions/bindCustomHotkeyActions.md) - [createAppHotkeysStore](functions/createAppHotkeysStore.md) - [createFormatForDisplay](functions/createFormatForDisplay.md) +- [createFormatter](functions/createFormatter.md) - [createHotkeyBindings](functions/createHotkeyBindings.md) - [createStore](functions/createStore.md) - [definedOptions](functions/definedOptions.md) diff --git a/docs/reference/adapter/interfaces/HotkeysContextValue.md b/docs/reference/adapter/interfaces/HotkeysContextValue.md index ec4d87444..e7acb1a41 100644 --- a/docs/reference/adapter/interfaces/HotkeysContextValue.md +++ b/docs/reference/adapter/interfaces/HotkeysContextValue.md @@ -5,7 +5,7 @@ title: HotkeysContextValue -Defined in: [adapter.ts:461](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L461) +Defined in: [adapter.ts:475](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L475) The value a framework provider passes down to its hotkeys and labels. @@ -25,7 +25,7 @@ appHotkeysStore: | null; ``` -Defined in: [adapter.ts:462](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L462) +Defined in: [adapter.ts:476](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L476) *** @@ -35,7 +35,7 @@ Defined in: [adapter.ts:462](https://github.com/TanStack/hotkeys/blob/main/packa defaultOptions: TDefaults; ``` -Defined in: [adapter.ts:464](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L464) +Defined in: [adapter.ts:478](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L478) Merged with every ancestor provider's defaults, including `hotkey.scope`. @@ -47,6 +47,6 @@ Merged with every ancestor provider's defaults, including `hotkey.scope`. enabled: boolean; ``` -Defined in: [adapter.ts:466](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L466) +Defined in: [adapter.ts:480](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L480) Whether this provider and every ancestor are enabled. diff --git a/docs/reference/adapter/interfaces/HotkeysDefaultOptions.md b/docs/reference/adapter/interfaces/HotkeysDefaultOptions.md index 3f4567fe1..7b162dce8 100644 --- a/docs/reference/adapter/interfaces/HotkeysDefaultOptions.md +++ b/docs/reference/adapter/interfaces/HotkeysDefaultOptions.md @@ -5,7 +5,7 @@ title: HotkeysDefaultOptions -Defined in: [adapter.ts:450](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L450) +Defined in: [adapter.ts:464](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L464) The shape of a provider's default options. Adapters declare their own interface, documented with their API names, that satisfies this one. @@ -28,7 +28,7 @@ interface, documented with their API names, that satisfies this one. optional hotkey?: THotkeyOptions; ``` -Defined in: [adapter.ts:456](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L456) +Defined in: [adapter.ts:470](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L470) *** @@ -38,7 +38,7 @@ Defined in: [adapter.ts:456](https://github.com/TanStack/hotkeys/blob/main/packa optional hotkeyRecorder?: TRecorderOptions; ``` -Defined in: [adapter.ts:457](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L457) +Defined in: [adapter.ts:471](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L471) *** @@ -48,7 +48,7 @@ Defined in: [adapter.ts:457](https://github.com/TanStack/hotkeys/blob/main/packa optional keyboardLayout?: boolean; ``` -Defined in: [adapter.ts:455](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L455) +Defined in: [adapter.ts:469](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L469) *** @@ -58,4 +58,4 @@ Defined in: [adapter.ts:455](https://github.com/TanStack/hotkeys/blob/main/packa optional platform?: HotkeyPlatform; ``` -Defined in: [adapter.ts:454](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L454) +Defined in: [adapter.ts:468](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L468) diff --git a/docs/reference/adapter/interfaces/HotkeysProviderScopeProps.md b/docs/reference/adapter/interfaces/HotkeysProviderScopeProps.md index 277a772f1..c6e6c991c 100644 --- a/docs/reference/adapter/interfaces/HotkeysProviderScopeProps.md +++ b/docs/reference/adapter/interfaces/HotkeysProviderScopeProps.md @@ -5,7 +5,7 @@ title: HotkeysProviderScopeProps -Defined in: [adapter.ts:414](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L414) +Defined in: [adapter.ts:416](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L416) Scope props shared by framework providers. @@ -17,7 +17,7 @@ Scope props shared by framework providers. optional enabled?: boolean; ``` -Defined in: [adapter.ts:432](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L432) +Defined in: [adapter.ts:434](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L434) Set false to deactivate this provider's scope, and the scopes of providers nested in it, without unmounting. Defaults to true. @@ -34,7 +34,7 @@ optional exclusive?: }; ``` -Defined in: [adapter.ts:427](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L427) +Defined in: [adapter.ts:429](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L429) While mounted and enabled, suspend hotkeys in every other scope, including `'global'`, except scopes of nested providers. Pass @@ -49,8 +49,28 @@ with `scope`, for dialogs and other overlays. optional scope?: string; ``` -Defined in: [adapter.ts:420](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L420) +Defined in: [adapter.ts:422](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L422) Scope for hotkeys registered inside this provider, active while it is mounted and enabled. Defaults to the parent provider's scope, or `'global'` at the root. App hotkeys that declare a scope keep it. + +*** + +### suspendCharacterKeys? + +```ts +optional suspendCharacterKeys?: boolean; +``` + +Defined in: [adapter.ts:446](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L446) + +While mounted, suspend document-level character key shortcuts across the +app, including hotkeys such as `K`, `?`, `Shift+K`, `Space`, or +`['G', 'H']` that use only keys that type a character. Wire this option to +a user setting so people who use speech input or press keys by accident +can turn single-key shortcuts off for WCAG 2.1.4 (Character Key +Shortcuts). Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys +such as `Escape` or `F1`, and hotkeys targeted at an element keep working. +This option applies even when the provider sets `enabled` to `false`. See +`HotkeyManager.suspendCharacterKeys`. Defaults to `false`. diff --git a/docs/reference/adapter/interfaces/PrepareHotkeyDefinitionsOptions.md b/docs/reference/adapter/interfaces/PrepareHotkeyDefinitionsOptions.md index 22fc823d7..b403da5a5 100644 --- a/docs/reference/adapter/interfaces/PrepareHotkeyDefinitionsOptions.md +++ b/docs/reference/adapter/interfaces/PrepareHotkeyDefinitionsOptions.md @@ -5,7 +5,7 @@ title: PrepareHotkeyDefinitionsOptions -Defined in: [adapter.ts:326](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L326) +Defined in: [adapter.ts:328](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L328) Context for `prepareHotkeyDefinitions`. @@ -25,7 +25,7 @@ optional appHotkeysStore?: | null; ``` -Defined in: [adapter.ts:328](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L328) +Defined in: [adapter.ts:330](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L330) The provider's app hotkeys store, so app hotkeys use custom hotkeys. @@ -37,7 +37,7 @@ The provider's app hotkeys store, so app hotkeys use custom hotkeys. optional commonOptions?: AdapterCommonOptions; ``` -Defined in: [adapter.ts:332](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L332) +Defined in: [adapter.ts:334](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L334) Options for every definition, applied after app hotkey declarations. @@ -49,7 +49,7 @@ Options for every definition, applied after app hotkey declarations. optional defaults?: AdapterCommonOptions; ``` -Defined in: [adapter.ts:330](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L330) +Defined in: [adapter.ts:332](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L332) Provider defaults, applied first. @@ -61,7 +61,7 @@ Provider defaults, applied first. optional resolveTarget?: (target) => Target | null | undefined; ``` -Defined in: [adapter.ts:339](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L339) +Defined in: [adapter.ts:341](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L341) Resolves a framework target, such as a ref. Return `null` or `undefined` to skip registration until the target exists. Without it, targets pass diff --git a/docs/reference/adapter/type-aliases/AdapterAppHotkeyOptions.md b/docs/reference/adapter/type-aliases/AdapterAppHotkeyOptions.md index e98bd54b5..441b18843 100644 --- a/docs/reference/adapter/type-aliases/AdapterAppHotkeyOptions.md +++ b/docs/reference/adapter/type-aliases/AdapterAppHotkeyOptions.md @@ -9,7 +9,7 @@ title: AdapterAppHotkeyOptions type AdapterAppHotkeyOptions = Omit<[T["defaultHotkey"]] extends [HotkeySequence] ? AdapterSequenceOptions : [T["defaultHotkey"]] extends [HotkeyChord] ? AdapterChordOptions : AdapterCommonOptions, "meta">; ``` -Defined in: [adapter.ts:276](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L276) +Defined in: [adapter.ts:278](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L278) Call-site options for an app hotkey. `meta` comes from the declaration. Kind-specific options follow the declared default: `requireReset` for a diff --git a/docs/reference/adapter/type-aliases/AdapterChordOptions.md b/docs/reference/adapter/type-aliases/AdapterChordOptions.md index a43d9f10f..129ad622b 100644 --- a/docs/reference/adapter/type-aliases/AdapterChordOptions.md +++ b/docs/reference/adapter/type-aliases/AdapterChordOptions.md @@ -9,7 +9,7 @@ title: AdapterChordOptions type AdapterChordOptions = WithTarget; ``` -Defined in: [adapter.ts:243](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L243) +Defined in: [adapter.ts:245](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L245) Options for a chord such as `'Mod+S'`, with a framework target. diff --git a/docs/reference/adapter/type-aliases/AdapterCommonOptions.md b/docs/reference/adapter/type-aliases/AdapterCommonOptions.md index 5e13a6f91..4bc9adaf3 100644 --- a/docs/reference/adapter/type-aliases/AdapterCommonOptions.md +++ b/docs/reference/adapter/type-aliases/AdapterCommonOptions.md @@ -9,7 +9,7 @@ title: AdapterCommonOptions type AdapterCommonOptions = AdapterChordOptions & AdapterSequenceOptions; ``` -Defined in: [adapter.ts:255](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L255) +Defined in: [adapter.ts:257](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L257) Options applied to every hotkey, such as defaults. Each applies to the kinds that support it. diff --git a/docs/reference/adapter/type-aliases/AdapterHotkeyDefinition.md b/docs/reference/adapter/type-aliases/AdapterHotkeyDefinition.md index e7e8361ee..9917c01dd 100644 --- a/docs/reference/adapter/type-aliases/AdapterHotkeyDefinition.md +++ b/docs/reference/adapter/type-aliases/AdapterHotkeyDefinition.md @@ -29,7 +29,7 @@ type AdapterHotkeyDefinition = }; ``` -Defined in: [adapter.ts:290](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L290) +Defined in: [adapter.ts:292](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L292) One hotkey and its callback for adapter APIs such as `useHotkeys`. Chords accept `requireReset`; sequences accept `timeout`; hotkeys of unknown kind diff --git a/docs/reference/adapter/type-aliases/AdapterHotkeyOptions.md b/docs/reference/adapter/type-aliases/AdapterHotkeyOptions.md index 446df70aa..eb7688f73 100644 --- a/docs/reference/adapter/type-aliases/AdapterHotkeyOptions.md +++ b/docs/reference/adapter/type-aliases/AdapterHotkeyOptions.md @@ -9,7 +9,7 @@ title: AdapterHotkeyOptions type AdapterHotkeyOptions = WithTarget; ``` -Defined in: [adapter.ts:240](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L240) +Defined in: [adapter.ts:242](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L242) Options shared by chords and sequences, with a framework target. diff --git a/docs/reference/adapter/type-aliases/AdapterOptionsFor.md b/docs/reference/adapter/type-aliases/AdapterOptionsFor.md index 54ff75191..6f619f7bb 100644 --- a/docs/reference/adapter/type-aliases/AdapterOptionsFor.md +++ b/docs/reference/adapter/type-aliases/AdapterOptionsFor.md @@ -9,7 +9,7 @@ title: AdapterOptionsFor type AdapterOptionsFor = [T] extends [never] ? AdapterCommonOptions : T extends readonly [unknown] ? AdapterChordOptions : T extends ReadonlyArray ? AdapterSequenceOptions : AdapterChordOptions; ``` -Defined in: [adapter.ts:259](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L259) +Defined in: [adapter.ts:261](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L261) Chord options for chords, sequence options for sequences. diff --git a/docs/reference/adapter/type-aliases/AdapterSequenceOptions.md b/docs/reference/adapter/type-aliases/AdapterSequenceOptions.md index f11d0efc2..982dc5f36 100644 --- a/docs/reference/adapter/type-aliases/AdapterSequenceOptions.md +++ b/docs/reference/adapter/type-aliases/AdapterSequenceOptions.md @@ -9,7 +9,7 @@ title: AdapterSequenceOptions type AdapterSequenceOptions = WithTarget; ``` -Defined in: [adapter.ts:249](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L249) +Defined in: [adapter.ts:251](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L251) Options for a sequence such as `['G', 'G']`, with a framework target. diff --git a/docs/reference/adapter/type-aliases/HotkeyBindingsCommonOptions.md b/docs/reference/adapter/type-aliases/HotkeyBindingsCommonOptions.md index 09b4c567f..ea8b499cc 100644 --- a/docs/reference/adapter/type-aliases/HotkeyBindingsCommonOptions.md +++ b/docs/reference/adapter/type-aliases/HotkeyBindingsCommonOptions.md @@ -9,6 +9,6 @@ title: HotkeyBindingsCommonOptions type HotkeyBindingsCommonOptions = HotkeyCommonOptions; ``` -Defined in: [adapter.ts:94](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L94) +Defined in: [adapter.ts:96](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L96) Options shared by every definition. Each option applies only to the kinds that support it. diff --git a/docs/reference/adapter/type-aliases/HotkeyDefinition.md b/docs/reference/adapter/type-aliases/HotkeyDefinition.md index ee066ce24..5fa4b77bb 100644 --- a/docs/reference/adapter/type-aliases/HotkeyDefinition.md +++ b/docs/reference/adapter/type-aliases/HotkeyDefinition.md @@ -24,7 +24,7 @@ type HotkeyDefinition = }; ``` -Defined in: [adapter.ts:75](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L75) +Defined in: [adapter.ts:77](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L77) A hotkey and its callback, with optional per-binding options. Chords accept `requireReset`; sequences accept `timeout`. diff --git a/docs/reference/adapter/type-aliases/HotkeyRecorderDefaults.md b/docs/reference/adapter/type-aliases/HotkeyRecorderDefaults.md index eba75f8cd..72efa811c 100644 --- a/docs/reference/adapter/type-aliases/HotkeyRecorderDefaults.md +++ b/docs/reference/adapter/type-aliases/HotkeyRecorderDefaults.md @@ -9,7 +9,7 @@ title: HotkeyRecorderDefaults type HotkeyRecorderDefaults = Partial>; ``` -Defined in: [adapter.ts:439](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L439) +Defined in: [adapter.ts:453](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L453) Provider defaults for every recorder. Each recorder sets its own `maxSteps`, `onRecord`, and `validate`. diff --git a/docs/reference/adapter/type-aliases/RefTarget.md b/docs/reference/adapter/type-aliases/RefTarget.md index d8fcecb9e..bb339834e 100644 --- a/docs/reference/adapter/type-aliases/RefTarget.md +++ b/docs/reference/adapter/type-aliases/RefTarget.md @@ -9,7 +9,7 @@ title: RefTarget type RefTarget = TRef | Target | null; ``` -Defined in: [adapter.ts:674](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L674) +Defined in: [adapter.ts:721](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L721) A framework ref, element, document, or window to listen on. A `null` or `undefined` target, or a ref that is still unset, waits for the element. diff --git a/docs/reference/adapter/type-aliases/WithTarget.md b/docs/reference/adapter/type-aliases/WithTarget.md index 726828d60..1596656fc 100644 --- a/docs/reference/adapter/type-aliases/WithTarget.md +++ b/docs/reference/adapter/type-aliases/WithTarget.md @@ -9,7 +9,7 @@ title: WithTarget type WithTarget = Omit & object; ``` -Defined in: [adapter.ts:231](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L231) +Defined in: [adapter.ts:233](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L233) Options with a framework-specific target, such as a ref. diff --git a/docs/reference/classes/AppHotkeysStore.md b/docs/reference/classes/AppHotkeysStore.md index bf22f7ed1..b6f1f9145 100644 --- a/docs/reference/classes/AppHotkeysStore.md +++ b/docs/reference/classes/AppHotkeysStore.md @@ -5,7 +5,7 @@ title: AppHotkeysStore -Defined in: [app-hotkeys.ts:458](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L458) +Defined in: [app-hotkeys.ts:459](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L459) Holds declared app hotkeys and the user's custom hotkeys. Framework providers create one and expose it through hooks; devtools read it from @@ -36,7 +36,7 @@ store.setCustomHotkey('doc.save', 'Mod+Shift+S') new AppHotkeysStore(appHotkeys, options?): AppHotkeysStore; ``` -Defined in: [app-hotkeys.ts:465](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L465) +Defined in: [app-hotkeys.ts:466](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L466) #### Parameters @@ -60,7 +60,7 @@ Defined in: [app-hotkeys.ts:465](https://github.com/TanStack/hotkeys/blob/main/p readonly store: Store>; ``` -Defined in: [app-hotkeys.ts:459](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L459) +Defined in: [app-hotkeys.ts:460](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L460) ## Accessors @@ -72,7 +72,7 @@ Defined in: [app-hotkeys.ts:459](https://github.com/TanStack/hotkeys/blob/main/p get appHotkeys(): T; ``` -Defined in: [app-hotkeys.ts:484](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L484) +Defined in: [app-hotkeys.ts:485](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L485) Effective app hotkeys. @@ -90,7 +90,7 @@ Effective app hotkeys. get customHotkeys(): CustomHotkeys; ``` -Defined in: [app-hotkeys.ts:489](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L489) +Defined in: [app-hotkeys.ts:490](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L490) The user's hotkeys that differ from the defaults. @@ -113,7 +113,7 @@ findConflicts( | null>[]; ``` -Defined in: [app-hotkeys.ts:578](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L578) +Defined in: [app-hotkeys.ts:579](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L579) Other app hotkeys that would collide if `id` used `hotkey`. App hotkeys collide when their scopes match or either is `'global'`, and their @@ -169,7 +169,7 @@ get(id): | undefined; ``` -Defined in: [app-hotkeys.ts:553](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L553) +Defined in: [app-hotkeys.ts:554](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L554) Effective app hotkey for an id, or `undefined` when it is not declared. @@ -195,7 +195,7 @@ Effective app hotkey for an id, or `undefined` when it is not declared. getList(registrations): AppHotkeyListItem[]; ``` -Defined in: [app-hotkeys.ts:663](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L663) +Defined in: [app-hotkeys.ts:664](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L664) Joins app hotkeys with live registrations, in declaration order. Adapters call this with the manager's registration views. @@ -218,7 +218,7 @@ Adapters call this with the manager's registration views. resetCustomHotkey(id): void; ``` -Defined in: [app-hotkeys.ts:640](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L640) +Defined in: [app-hotkeys.ts:641](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L641) Restores the default hotkey for an app hotkey. @@ -240,7 +240,7 @@ keyof `T` & `string` resetCustomHotkeys(): void; ``` -Defined in: [app-hotkeys.ts:647](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L647) +Defined in: [app-hotkeys.ts:648](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L648) Restores every default hotkey. @@ -256,7 +256,7 @@ Restores every default hotkey. setAppHotkeys(appHotkeys): void; ``` -Defined in: [app-hotkeys.ts:539](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L539) +Defined in: [app-hotkeys.ts:540](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L540) Replaces the declarations, for example after hot module replacement. Custom hotkeys for ids that still exist are kept. @@ -286,7 +286,7 @@ setCustomHotkey( | null>[]; ``` -Defined in: [app-hotkeys.ts:606](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L606) +Defined in: [app-hotkeys.ts:607](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L607) Sets the user's hotkey for an app hotkey. `null` unbinds it. A hotkey equal to the default removes the customization. Pass the recorder's @@ -325,7 +325,7 @@ hotkey, such as `''`, and both return an empty array. setOptions(options): void; ``` -Defined in: [app-hotkeys.ts:503](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L503) +Defined in: [app-hotkeys.ts:504](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L504) Updates options. Providers call it with their props on every update. diff --git a/docs/reference/classes/HotkeyManager.md b/docs/reference/classes/HotkeyManager.md index 5ae8723d0..fc675f0a4 100644 --- a/docs/reference/classes/HotkeyManager.md +++ b/docs/reference/classes/HotkeyManager.md @@ -5,7 +5,7 @@ title: HotkeyManager -Defined in: [hotkey-manager.ts:574](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L574) +Defined in: [hotkey-manager.ts:590](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L590) ## Properties @@ -15,7 +15,7 @@ Defined in: [hotkey-manager.ts:574](https://github.com/TanStack/hotkeys/blob/mai readonly appHotkeys: Store; ``` -Defined in: [hotkey-manager.ts:601](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L601) +Defined in: [hotkey-manager.ts:617](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L617) The app hotkeys store published by a framework provider, so tools such as devtools can list declared hotkeys that are not registered. @@ -28,7 +28,7 @@ devtools can list declared hotkeys that are not registered. readonly registrations: Store>; ``` -Defined in: [hotkey-manager.ts:594](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L594) +Defined in: [hotkey-manager.ts:610](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L610) The TanStack Store containing all hotkey registrations, chords and sequences. Use this to subscribe to registration changes or access current registrations. @@ -57,7 +57,7 @@ for (const [id, reg] of manager.registrations.state) { readonly scopes: Store; ``` -Defined in: [hotkey-manager.ts:604](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L604) +Defined in: [hotkey-manager.ts:620](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L620) Active scopes. Subscribe to show which hotkeys are suspended. @@ -69,7 +69,7 @@ Active scopes. Subscribe to show which hotkeys are suspended. activateScope(scope, options?): () => void; ``` -Defined in: [hotkey-manager.ts:711](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L711) +Defined in: [hotkey-manager.ts:729](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L729) Activates a scope until the returned function is called. Activations are counted, so a scope stays active until every activation is released. @@ -113,7 +113,7 @@ manager.activateScope('dialog', { exclusive: { allow: ['global'] } }) destroy(): void; ``` -Defined in: [hotkey-manager.ts:1982](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L1982) +Defined in: [hotkey-manager.ts:2031](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L2031) Destroys the manager and removes all listeners. @@ -129,7 +129,7 @@ Destroys the manager and removes all listeners. getRegistrationCount(): number; ``` -Defined in: [hotkey-manager.ts:1914](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L1914) +Defined in: [hotkey-manager.ts:1963](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L1963) Gets the number of registered hotkeys, chords and sequences. @@ -145,7 +145,7 @@ Gets the number of registered hotkeys, chords and sequences. hasActiveRegistration(hotkey): boolean; ``` -Defined in: [hotkey-manager.ts:1952](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L1952) +Defined in: [hotkey-manager.ts:2001](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L2001) Checks whether a hotkey can fire now: at least one registration is enabled, in an active scope, and listening where key presses go. A @@ -179,7 +179,7 @@ True if a registration that can fire exists isRegistered(hotkey, target?): boolean; ``` -Defined in: [hotkey-manager.ts:1925](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L1925) +Defined in: [hotkey-manager.ts:1974](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L1974) Checks if a specific hotkey is registered. @@ -211,7 +211,7 @@ True if a matching registration exists isScopeActive(scope?): boolean; ``` -Defined in: [hotkey-manager.ts:750](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L750) +Defined in: [hotkey-manager.ts:768](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L768) Whether hotkeys in a scope can fire: the scope is `'global'` or activated, and either no scope is exclusive or this scope is the @@ -239,7 +239,7 @@ register( ): HotkeyRegistrationHandle>; ``` -Defined in: [hotkey-manager.ts:919](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L919) +Defined in: [hotkey-manager.ts:968](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L968) Registers a hotkey handler and returns a handle for updating the registration. @@ -305,7 +305,7 @@ handle.unregister() resetSequenceProgress(): void; ``` -Defined in: [hotkey-manager.ts:1899](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L1899) +Defined in: [hotkey-manager.ts:1948](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L1948) Resets the progress of every in-progress sequence. @@ -315,13 +315,48 @@ Resets the progress of every in-progress sequence. *** +### suspendCharacterKeys() + +```ts +suspendCharacterKeys(): () => void; +``` + +Defined in: [hotkey-manager.ts:794](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L794) + +Suspends document-level character key shortcuts until you call the +returned function, so apps can let users turn off single-key shortcuts for +WCAG 2.1.4 (Character Key Shortcuts). A character key shortcut is a hotkey +whose every step types a character, alone or with `Shift`, such as `K`, +`?`, `Shift+K`, `Space`, or `['G', 'H']`. Hotkeys with `Control`, `Alt`, +or `Meta`, non-character keys such as `Escape` or `F1`, and hotkeys +targeted at an element keep working. Enabled hotkeys that are suspended +report the status `'suspended'`. + +Suspensions are counted, so character keys stay suspended until every +returned resume function runs. Framework providers call this while mounted +with `suspendCharacterKeys`. + +#### Returns + +() => `void` + +#### Example + +```ts +const resume = manager.suspendCharacterKeys() +// `K` and `['G', 'H']` don't fire; `Mod+K` and `Escape` do. +resume() +``` + +*** + ### getInstance() ```ts static getInstance(): HotkeyManager; ``` -Defined in: [hotkey-manager.ts:679](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L679) +Defined in: [hotkey-manager.ts:697](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L697) Gets the singleton instance of HotkeyManager. @@ -337,7 +372,7 @@ Gets the singleton instance of HotkeyManager. static resetInstance(): void; ``` -Defined in: [hotkey-manager.ts:686](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L686) +Defined in: [hotkey-manager.ts:704](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L704) Resets the singleton instance. Useful for testing. diff --git a/docs/reference/classes/HotkeyRecorder.md b/docs/reference/classes/HotkeyRecorder.md index 4a8b7cd0c..9b9958283 100644 --- a/docs/reference/classes/HotkeyRecorder.md +++ b/docs/reference/classes/HotkeyRecorder.md @@ -5,7 +5,7 @@ title: HotkeyRecorder -Defined in: [hotkey-recorder.ts:288](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L288) +Defined in: [hotkey-recorder.ts:283](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L283) Framework-agnostic class for recording keyboard shortcuts. @@ -51,7 +51,7 @@ recorder.destroy() new HotkeyRecorder(options): HotkeyRecorder; ``` -Defined in: [hotkey-recorder.ts:314](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L314) +Defined in: [hotkey-recorder.ts:310](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L310) #### Parameters @@ -69,7 +69,7 @@ Defined in: [hotkey-recorder.ts:314](https://github.com/TanStack/hotkeys/blob/ma new HotkeyRecorder(options): HotkeyRecorder; ``` -Defined in: [hotkey-recorder.ts:315](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L315) +Defined in: [hotkey-recorder.ts:311](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L311) #### Parameters @@ -89,7 +89,7 @@ Defined in: [hotkey-recorder.ts:315](https://github.com/TanStack/hotkeys/blob/ma readonly store: Store; ``` -Defined in: [hotkey-recorder.ts:289](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L289) +Defined in: [hotkey-recorder.ts:284](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L284) ## Methods @@ -99,7 +99,7 @@ Defined in: [hotkey-recorder.ts:289](https://github.com/TanStack/hotkeys/blob/ma cancel(): void; ``` -Defined in: [hotkey-recorder.ts:586](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L586) +Defined in: [hotkey-recorder.ts:585](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L585) Cancel recording without saving. @@ -118,7 +118,7 @@ the onCancel callback if provided. commit(): void; ``` -Defined in: [hotkey-recorder.ts:489](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L489) +Defined in: [hotkey-recorder.ts:488](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L488) Commits the recorded steps after validation and conflict checks. Called automatically at `maxSteps`, on Enter, or after `idleTimeoutMs`. @@ -136,7 +136,7 @@ A rejected commit leaves recording active with its steps intact. destroy(): void; ``` -Defined in: [hotkey-recorder.ts:599](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L599) +Defined in: [hotkey-recorder.ts:598](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L598) Clean up event listeners and reset state. @@ -155,7 +155,7 @@ all event listeners are properly removed. setOptions(options): void; ``` -Defined in: [hotkey-recorder.ts:325](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L325) +Defined in: [hotkey-recorder.ts:321](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L321) Updates the recorder options, including callbacks. This allows framework adapters to sync callback changes without recreating the recorder. @@ -178,7 +178,7 @@ This allows framework adapters to sync callback changes without recreating the r start(): void; ``` -Defined in: [hotkey-recorder.ts:357](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L357) +Defined in: [hotkey-recorder.ts:353](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L353) Start recording a new hotkey. @@ -197,7 +197,7 @@ and records chords according to `maxSteps`. stop(): void; ``` -Defined in: [hotkey-recorder.ts:576](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L576) +Defined in: [hotkey-recorder.ts:575](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L575) Stop recording (same as cancel, but doesn't call onCancel). diff --git a/docs/reference/functions/areHotkeysEqual.md b/docs/reference/functions/areHotkeysEqual.md index 5719f77a1..82e9581d5 100644 --- a/docs/reference/functions/areHotkeysEqual.md +++ b/docs/reference/functions/areHotkeysEqual.md @@ -13,7 +13,7 @@ function areHotkeysEqual( ): boolean; ``` -Defined in: [match.ts:201](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L201) +Defined in: [match.ts:202](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L202) Compares normalized hotkey identity, including all four modifiers. Sequences are equal when every step is equal; a one-step sequence equals its chord. diff --git a/docs/reference/functions/createHotkeyChordHandler.md b/docs/reference/functions/createHotkeyChordHandler.md index 2178e8c2f..a305a0e0d 100644 --- a/docs/reference/functions/createHotkeyChordHandler.md +++ b/docs/reference/functions/createHotkeyChordHandler.md @@ -13,7 +13,7 @@ function createHotkeyChordHandler( ): (event) => void; ``` -Defined in: [match.ts:102](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L102) +Defined in: [match.ts:103](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L103) Creates a keyboard event handler that calls the callback when the chord matches. For sequences, use `createSequenceMatcher`. diff --git a/docs/reference/functions/createMultiHotkeyChordHandler.md b/docs/reference/functions/createMultiHotkeyChordHandler.md index ec8d1dbdc..3fee52074 100644 --- a/docs/reference/functions/createMultiHotkeyChordHandler.md +++ b/docs/reference/functions/createMultiHotkeyChordHandler.md @@ -9,7 +9,7 @@ title: createMultiHotkeyChordHandler function createMultiHotkeyChordHandler(handlers, options?): (event) => void; ``` -Defined in: [match.ts:156](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L156) +Defined in: [match.ts:157](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L157) Creates a handler that matches several chords. diff --git a/docs/reference/functions/createSequenceMatcher.md b/docs/reference/functions/createSequenceMatcher.md index 06a5c52a5..c4d723e0d 100644 --- a/docs/reference/functions/createSequenceMatcher.md +++ b/docs/reference/functions/createSequenceMatcher.md @@ -9,7 +9,7 @@ title: createSequenceMatcher function createSequenceMatcher(sequence, options?): object; ``` -Defined in: [match.ts:250](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L250) +Defined in: [match.ts:248](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L248) Creates a simple sequence matcher for one-off use. diff --git a/docs/reference/functions/formatForAria.md b/docs/reference/functions/formatForAria.md new file mode 100644 index 000000000..45ff04efb --- /dev/null +++ b/docs/reference/functions/formatForAria.md @@ -0,0 +1,63 @@ +--- +id: formatForAria +title: formatForAria +--- + + + +```ts +function formatForAria(hotkey, options?): string | undefined; +``` + +Defined in: [format.ts:383](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L383) + +Formats a hotkey for an `aria-keyshortcuts` attribute so screen readers can +announce the shortcut. `Mod+K` becomes `Meta+K` on macOS and `Control+K` +elsewhere. + +Modifiers use the ARIA names (`Control`, `Alt`, `Shift`, `Meta`) and come +before the key. Keys use `KeyboardEvent.key` values, such as `K`, `/`, +`Escape`, or `ArrowUp`, with `Space` for the space bar and `Plus` for the +plus key. A physical binding names the key at that position, so `[KeyQ]` +becomes `Q`, or the key from `layoutMap` such as `A` on a French AZERTY +keyboard. Logical punctuation stays as written, so `'?'` stays `?` even +where it takes Shift to type. + +Returns `undefined` when the hotkey has no ARIA form, so the attribute is +omitted. This applies to empty or `null` hotkeys, multi-step sequences, +standalone modifiers, and physical codes with no key value such as +`[NumpadMemoryAdd]`. A one-step sequence formats like its chord. + +For a control with two shortcuts, join both formatted values with a space. +In a server-rendered app, use your adapter's formatter or pass `platform`. +Without a `platform` option, `formatForAria` uses `'linux'` on the server, +like `formatForDisplay`. + +## Parameters + +### hotkey + +[`DisplayHotkey`](../type-aliases/DisplayHotkey.md) \| `null` \| `undefined` + +A hotkey string, raw object, parsed chord, or nothing + +### options? + +[`FormatAriaOptions`](../interfaces/FormatAriaOptions.md) = `{}` + +The platform and keyboard layout + +## Returns + +`string` \| `undefined` + +The attribute value, or `undefined` when there is none + +## Example + +```ts +formatForAria('Mod+K', { platform: 'mac' }) // 'Meta+K' +formatForAria('Mod+Shift+P', { platform: 'windows' }) // 'Control+Shift+P' +formatForAria('Shift+Space') // 'Shift+Space' +formatForAria(['G', 'H']) // undefined +``` diff --git a/docs/reference/functions/formatForDisplay.md b/docs/reference/functions/formatForDisplay.md index 95bd2bf63..81a247f7b 100644 --- a/docs/reference/functions/formatForDisplay.md +++ b/docs/reference/functions/formatForDisplay.md @@ -11,7 +11,7 @@ title: formatForDisplay function formatForDisplay(hotkey, options): string[][]; ``` -Defined in: [format.ts:135](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L135) +Defined in: [format.ts:141](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L141) Formats a hotkey for display in a user interface. @@ -85,7 +85,7 @@ formatForDisplay(['G', 'H']) function formatForDisplay(hotkey, options): string[]; ``` -Defined in: [format.ts:139](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L139) +Defined in: [format.ts:145](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L145) Formats a hotkey for display in a user interface. @@ -159,7 +159,7 @@ formatForDisplay(['G', 'H']) function formatForDisplay(hotkey, options?): string; ``` -Defined in: [format.ts:143](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L143) +Defined in: [format.ts:149](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L149) Formats a hotkey for display in a user interface. @@ -233,7 +233,7 @@ formatForDisplay(['G', 'H']) function formatForDisplay(hotkey, options): string | string[] | string[][]; ``` -Defined in: [format.ts:147](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L147) +Defined in: [format.ts:153](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L153) Formats a hotkey for display in a user interface. diff --git a/docs/reference/functions/formatHotkey.md b/docs/reference/functions/formatHotkey.md index 6f12cd68c..300d9362e 100644 --- a/docs/reference/functions/formatHotkey.md +++ b/docs/reference/functions/formatHotkey.md @@ -11,7 +11,7 @@ title: formatHotkey function formatHotkey(parsed): string; ``` -Defined in: [format.ts:39](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L39) +Defined in: [format.ts:45](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L45) Converts a parsed hotkey back to a string, with each platform modifier spelled out, such as `Control+Shift+S`. A parsed chord returns a string, and @@ -43,7 +43,7 @@ formatHotkey(parseHotkey(['G', 'Mod+K'], 'mac')) // ['G', 'Meta+K'] function formatHotkey(parsed): string[]; ``` -Defined in: [format.ts:40](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L40) +Defined in: [format.ts:46](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L46) Converts a parsed hotkey back to a string, with each platform modifier spelled out, such as `Control+Shift+S`. A parsed chord returns a string, and @@ -75,7 +75,7 @@ formatHotkey(parseHotkey(['G', 'Mod+K'], 'mac')) // ['G', 'Meta+K'] function formatHotkey(parsed): string | string[]; ``` -Defined in: [format.ts:43](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L43) +Defined in: [format.ts:49](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L49) Converts a parsed hotkey back to a string, with each platform modifier spelled out, such as `Control+Shift+S`. A parsed chord returns a string, and diff --git a/docs/reference/functions/getAppHotkeyRegistrationOptions.md b/docs/reference/functions/getAppHotkeyRegistrationOptions.md index 11d4fe34c..ff8be86f2 100644 --- a/docs/reference/functions/getAppHotkeyRegistrationOptions.md +++ b/docs/reference/functions/getAppHotkeyRegistrationOptions.md @@ -9,7 +9,7 @@ title: getAppHotkeyRegistrationOptions function getAppHotkeyRegistrationOptions(appHotkey): AppHotkeyChordOptions & AppHotkeySequenceOptions & object; ``` -Defined in: [app-hotkeys.ts:715](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L715) +Defined in: [app-hotkeys.ts:716](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L716) Options that adapters pass to the manager when registering an app hotkey: declared options, scope, meta, and the app hotkey id. The manager drops options diff --git a/docs/reference/functions/getHotkeyManager.md b/docs/reference/functions/getHotkeyManager.md index f2a4e7c0c..a48aa57b9 100644 --- a/docs/reference/functions/getHotkeyManager.md +++ b/docs/reference/functions/getHotkeyManager.md @@ -9,7 +9,7 @@ title: getHotkeyManager function getHotkeyManager(): HotkeyManager; ``` -Defined in: [hotkey-manager.ts:1997](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L1997) +Defined in: [hotkey-manager.ts:2046](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L2046) Gets the singleton HotkeyManager instance. Convenience function for accessing the manager. diff --git a/docs/reference/functions/matchesKeyboardEvent.md b/docs/reference/functions/matchesKeyboardEvent.md index 1c68ba890..df00c7e8a 100644 --- a/docs/reference/functions/matchesKeyboardEvent.md +++ b/docs/reference/functions/matchesKeyboardEvent.md @@ -13,7 +13,7 @@ function matchesKeyboardEvent( ): boolean; ``` -Defined in: [match.ts:59](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L59) +Defined in: [match.ts:60](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L60) Checks if a KeyboardEvent matches a hotkey. diff --git a/docs/reference/functions/provideAppHotkeys.md b/docs/reference/functions/provideAppHotkeys.md index 2141a387e..fa12435dd 100644 --- a/docs/reference/functions/provideAppHotkeys.md +++ b/docs/reference/functions/provideAppHotkeys.md @@ -9,7 +9,7 @@ title: provideAppHotkeys function provideAppHotkeys(appHotkeys, options?): object; ``` -Defined in: [app-hotkeys.ts:762](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L762) +Defined in: [app-hotkeys.ts:763](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L763) Creates an app hotkeys store and publishes it on the HotkeyManager, for adapters without a provider component (such as Lit and Alpine). Hotkey diff --git a/docs/reference/functions/publishAppHotkeysStore.md b/docs/reference/functions/publishAppHotkeysStore.md index 57a95c36e..4655160f4 100644 --- a/docs/reference/functions/publishAppHotkeysStore.md +++ b/docs/reference/functions/publishAppHotkeysStore.md @@ -9,7 +9,7 @@ title: publishAppHotkeysStore function publishAppHotkeysStore(store): () => void; ``` -Defined in: [app-hotkeys.ts:736](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L736) +Defined in: [app-hotkeys.ts:737](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L737) Publishes a provider's store on the HotkeyManager so devtools can list declared hotkeys. Returns a cleanup function that unpublishes it if it is diff --git a/docs/reference/functions/resolveAppHotkey.md b/docs/reference/functions/resolveAppHotkey.md index 9ca950e10..358cb6cb2 100644 --- a/docs/reference/functions/resolveAppHotkey.md +++ b/docs/reference/functions/resolveAppHotkey.md @@ -9,7 +9,7 @@ title: resolveAppHotkey function resolveAppHotkey(appHotkey, store): AppHotkey; ``` -Defined in: [app-hotkeys.ts:703](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L703) +Defined in: [app-hotkeys.ts:704](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L704) Returns the provider's version of an app hotkey, so custom hotkeys apply even when a component imports the declaration directly. Falls back to the diff --git a/docs/reference/functions/toHotkeyRegistrationView.md b/docs/reference/functions/toHotkeyRegistrationView.md index 977077781..75866d9ee 100644 --- a/docs/reference/functions/toHotkeyRegistrationView.md +++ b/docs/reference/functions/toHotkeyRegistrationView.md @@ -9,7 +9,7 @@ title: toHotkeyRegistrationView function toHotkeyRegistrationView(reg): HotkeyRegistrationView; ``` -Defined in: [hotkey-manager.ts:297](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L297) +Defined in: [hotkey-manager.ts:308](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L308) Creates a public view from an internal registration, stripping the callback. diff --git a/docs/reference/index.md b/docs/reference/index.md index 0d9a1d0ba..a7f18eecf 100644 --- a/docs/reference/index.md +++ b/docs/reference/index.md @@ -22,6 +22,7 @@ title: "@tanstack/hotkeys" - [AppHotkeysStoreOptions](interfaces/AppHotkeysStoreOptions.md) - [CreateHotkeyChordHandlerOptions](interfaces/CreateHotkeyChordHandlerOptions.md) - [CustomHotkeyActions](interfaces/CustomHotkeyActions.md) +- [FormatAriaOptions](interfaces/FormatAriaOptions.md) - [FormatDisplayOptions](interfaces/FormatDisplayOptions.md) - [HeldModifierOptions](interfaces/HeldModifierOptions.md) - [HotkeyChordCallbackContext](interfaces/HotkeyChordCallbackContext.md) @@ -184,6 +185,7 @@ title: "@tanstack/hotkeys" - [defineAppHotkeys](functions/defineAppHotkeys.md) - [detectPlatform](functions/detectPlatform.md) - [findHotkeyConflicts](functions/findHotkeyConflicts.md) +- [formatForAria](functions/formatForAria.md) - [formatForDisplay](functions/formatForDisplay.md) - [formatHotkey](functions/formatHotkey.md) - [getAppHotkeyRegistrationOptions](functions/getAppHotkeyRegistrationOptions.md) diff --git a/docs/reference/interfaces/ActivateHotkeyScopeOptions.md b/docs/reference/interfaces/ActivateHotkeyScopeOptions.md index e611e35cf..650f15293 100644 --- a/docs/reference/interfaces/ActivateHotkeyScopeOptions.md +++ b/docs/reference/interfaces/ActivateHotkeyScopeOptions.md @@ -5,7 +5,7 @@ title: ActivateHotkeyScopeOptions -Defined in: [hotkey-manager.ts:521](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L521) +Defined in: [hotkey-manager.ts:537](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L537) Options for `HotkeyManager.activateScope`. @@ -21,7 +21,7 @@ optional exclusive?: }; ``` -Defined in: [hotkey-manager.ts:528](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L528) +Defined in: [hotkey-manager.ts:544](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L544) Suspend every other scope, including `'global'`, until this activation is released. Scopes nested in this one stay active. Pass `{ allow }` to keep @@ -36,7 +36,7 @@ still has to be activated, except `'global'`. optional parent?: string; ``` -Defined in: [hotkey-manager.ts:534](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L534) +Defined in: [hotkey-manager.ts:550](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L550) The scope this one is nested in. A nested scope takes precedence over its ancestors even when it was activated first, as nested providers are when diff --git a/docs/reference/interfaces/AppHotkeyListItem.md b/docs/reference/interfaces/AppHotkeyListItem.md index 70c8a1428..933ee0297 100644 --- a/docs/reference/interfaces/AppHotkeyListItem.md +++ b/docs/reference/interfaces/AppHotkeyListItem.md @@ -5,7 +5,7 @@ title: AppHotkeyListItem -Defined in: [app-hotkeys.ts:377](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L377) +Defined in: [app-hotkeys.ts:378](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L378) One row of an app hotkey cheat sheet. @@ -23,7 +23,7 @@ One row of an app hotkey cheat sheet. appHotkey: T; ``` -Defined in: [app-hotkeys.ts:378](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L378) +Defined in: [app-hotkeys.ts:379](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L379) *** @@ -33,7 +33,7 @@ Defined in: [app-hotkeys.ts:378](https://github.com/TanStack/hotkeys/blob/main/p isCustom: boolean; ``` -Defined in: [app-hotkeys.ts:381](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L381) +Defined in: [app-hotkeys.ts:382](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L382) Whether the effective hotkey differs from the declared default. @@ -45,7 +45,7 @@ Whether the effective hotkey differs from the declared default. registrations: HotkeyRegistrationView[]; ``` -Defined in: [app-hotkeys.ts:383](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L383) +Defined in: [app-hotkeys.ts:384](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L384) Live registrations of this app hotkey (for example, one per list row). @@ -57,4 +57,4 @@ Live registrations of this app hotkey (for example, one per list row). status: AppHotkeyStatus; ``` -Defined in: [app-hotkeys.ts:379](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L379) +Defined in: [app-hotkeys.ts:380](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L380) diff --git a/docs/reference/interfaces/AppHotkeysState.md b/docs/reference/interfaces/AppHotkeysState.md index c1b7e29d7..fb2e5faa7 100644 --- a/docs/reference/interfaces/AppHotkeysState.md +++ b/docs/reference/interfaces/AppHotkeysState.md @@ -5,7 +5,7 @@ title: AppHotkeysState -Defined in: [app-hotkeys.ts:387](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L387) +Defined in: [app-hotkeys.ts:388](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L388) State of an `AppHotkeysStore`. @@ -23,7 +23,7 @@ State of an `AppHotkeysStore`. appHotkeys: T; ``` -Defined in: [app-hotkeys.ts:389](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L389) +Defined in: [app-hotkeys.ts:390](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L390) Effective app hotkeys: declarations with custom hotkeys applied. @@ -35,6 +35,6 @@ Effective app hotkeys: declarations with custom hotkeys applied. customHotkeys: CustomHotkeys; ``` -Defined in: [app-hotkeys.ts:391](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L391) +Defined in: [app-hotkeys.ts:392](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L392) The user's hotkeys that differ from the defaults. diff --git a/docs/reference/interfaces/AppHotkeysStoreOptions.md b/docs/reference/interfaces/AppHotkeysStoreOptions.md index fa4ed3149..e748e59c6 100644 --- a/docs/reference/interfaces/AppHotkeysStoreOptions.md +++ b/docs/reference/interfaces/AppHotkeysStoreOptions.md @@ -5,7 +5,7 @@ title: AppHotkeysStoreOptions -Defined in: [app-hotkeys.ts:428](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L428) +Defined in: [app-hotkeys.ts:429](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L429) Options for `AppHotkeysStore`. @@ -23,7 +23,7 @@ Options for `AppHotkeysStore`. optional customHotkeys?: CustomHotkeys | null; ``` -Defined in: [app-hotkeys.ts:436](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L436) +Defined in: [app-hotkeys.ts:437](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L437) The user's saved custom hotkeys. Unknown ids and invalid entries are ignored. Passing a different value to `setOptions` later, such as data @@ -39,7 +39,7 @@ clears them. optional onCustomHotkeysChange?: (customHotkeys) => void; ``` -Defined in: [app-hotkeys.ts:438](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L438) +Defined in: [app-hotkeys.ts:439](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L439) Called with the custom hotkeys after every change, ready to save. @@ -61,6 +61,6 @@ Called with the custom hotkeys after every change, ready to save. optional platform?: HotkeyPlatform; ``` -Defined in: [app-hotkeys.ts:440](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L440) +Defined in: [app-hotkeys.ts:441](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L441) Platform used to compare hotkeys. Defaults to detection. diff --git a/docs/reference/interfaces/CreateHotkeyChordHandlerOptions.md b/docs/reference/interfaces/CreateHotkeyChordHandlerOptions.md index 8520ef894..176a622d7 100644 --- a/docs/reference/interfaces/CreateHotkeyChordHandlerOptions.md +++ b/docs/reference/interfaces/CreateHotkeyChordHandlerOptions.md @@ -5,7 +5,7 @@ title: CreateHotkeyChordHandlerOptions -Defined in: [match.ts:74](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L74) +Defined in: [match.ts:75](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L75) Options for creating a chord handler. @@ -17,7 +17,7 @@ Options for creating a chord handler. optional platform?: HotkeyPlatform; ``` -Defined in: [match.ts:80](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L80) +Defined in: [match.ts:81](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L81) The target platform for resolving 'Mod' @@ -29,7 +29,7 @@ The target platform for resolving 'Mod' optional preventDefault?: boolean; ``` -Defined in: [match.ts:76](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L76) +Defined in: [match.ts:77](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L77) Prevent the default browser action when the chord matches. Defaults to true @@ -41,6 +41,6 @@ Prevent the default browser action when the chord matches. Defaults to true optional stopPropagation?: boolean; ``` -Defined in: [match.ts:78](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L78) +Defined in: [match.ts:79](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L79) Stop event propagation when the chord matches. Defaults to true diff --git a/docs/reference/interfaces/CustomHotkeyActions.md b/docs/reference/interfaces/CustomHotkeyActions.md index 21f8ef6fc..75f6ff87d 100644 --- a/docs/reference/interfaces/CustomHotkeyActions.md +++ b/docs/reference/interfaces/CustomHotkeyActions.md @@ -5,7 +5,7 @@ title: CustomHotkeyActions -Defined in: [app-hotkeys.ts:400](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L400) +Defined in: [app-hotkeys.ts:401](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L401) Actions that change the user's custom hotkeys, as adapters return them. @@ -20,7 +20,7 @@ findConflicts: (id, hotkey, recordedWith?) => AppHotkey[]; ``` -Defined in: [app-hotkeys.ts:420](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L420) +Defined in: [app-hotkeys.ts:421](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L421) Other app hotkeys that would collide if `id` used `hotkey`. Pass the recorder's `context` for a recorded hotkey: it has the key press, which @@ -55,7 +55,7 @@ also finds a hotkey written differently that the same press fires. resetCustomHotkey: (id) => void; ``` -Defined in: [app-hotkeys.ts:412](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L412) +Defined in: [app-hotkeys.ts:413](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L413) Restores the default hotkey for an app hotkey. @@ -77,7 +77,7 @@ Restores the default hotkey for an app hotkey. resetCustomHotkeys: () => void; ``` -Defined in: [app-hotkeys.ts:414](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L414) +Defined in: [app-hotkeys.ts:415](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L415) Restores every default hotkey. @@ -96,7 +96,7 @@ setCustomHotkey: (id, hotkey, recordedWith?) => AppHotkey[]; ``` -Defined in: [app-hotkeys.ts:406](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L406) +Defined in: [app-hotkeys.ts:407](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L407) Sets the user's hotkey for an app hotkey. `null` unbinds it. Returns conflicting app hotkeys; when any exist, nothing changes. Pass diff --git a/docs/reference/interfaces/FormatAriaOptions.md b/docs/reference/interfaces/FormatAriaOptions.md new file mode 100644 index 000000000..b7408f330 --- /dev/null +++ b/docs/reference/interfaces/FormatAriaOptions.md @@ -0,0 +1,53 @@ +--- +id: FormatAriaOptions +title: FormatAriaOptions +--- + + + +Defined in: [format.ts:309](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L309) + +Options for formatting a hotkey for `aria-keyshortcuts`. + +## Properties + +### layoutMap? + +```ts +optional layoutMap?: object; +``` + +Defined in: [format.ts:320](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L320) + +An already-resolved code-to-key map, such as KeyboardLayoutMap or Map. +Used only for physical bindings, to name the key the user presses. +Missing or empty entries use the key at that position on a US keyboard. + +#### get + +```ts +get: (code) => string | undefined; +``` + +##### Parameters + +###### code + +`string` + +##### Returns + +`string` \| `undefined` + +*** + +### platform? + +```ts +optional platform?: HotkeyPlatform; +``` + +Defined in: [format.ts:314](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L314) + +The target platform, for resolving `Mod`. Without it, `formatForAria` +detects the platform in the browser and uses `'linux'` on a server. diff --git a/docs/reference/interfaces/FormatDisplayOptions.md b/docs/reference/interfaces/FormatDisplayOptions.md index 4475a775d..14ee2ad05 100644 --- a/docs/reference/interfaces/FormatDisplayOptions.md +++ b/docs/reference/interfaces/FormatDisplayOptions.md @@ -5,7 +5,7 @@ title: FormatDisplayOptions -Defined in: [format.ts:276](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L276) +Defined in: [format.ts:283](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L283) Options for formatting hotkeys for display. @@ -17,7 +17,7 @@ Options for formatting hotkeys for display. optional keyLabels?: Readonly>; ``` -Defined in: [format.ts:294](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L294) +Defined in: [format.ts:301](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L301) Final display overrides for logical keys or physical codes; take precedence over layoutMap. Never changes matching. @@ -29,7 +29,7 @@ Final display overrides for logical keys or physical codes; take precedence over optional layoutMap?: object; ``` -Defined in: [format.ts:292](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L292) +Defined in: [format.ts:299](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L299) An already-resolved code-to-key map, such as KeyboardLayoutMap or Map. Used only for physical bindings. Mapped keys receive normal display formatting; @@ -60,7 +60,7 @@ get: (code) => string | undefined; optional parts?: boolean; ``` -Defined in: [format.ts:285](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L285) +Defined in: [format.ts:292](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L292) Return individual key labels instead of a joined string. Default: false. @@ -72,7 +72,7 @@ Return individual key labels instead of a joined string. Default: false. optional platform?: HotkeyPlatform; ``` -Defined in: [format.ts:281](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L281) +Defined in: [format.ts:288](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L288) The target platform. Without it, `formatForDisplay` detects the platform in the browser and uses `'linux'` on a server. @@ -85,7 +85,7 @@ in the browser and uses `'linux'` on a server. optional separatorToken?: string | null; ``` -Defined in: [format.ts:296](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L296) +Defined in: [format.ts:303](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L303) Override the separator between display tokens. Defaults to platform-specific formatting when null/undefined. @@ -97,7 +97,7 @@ Override the separator between display tokens. Defaults to platform-specific for optional sequenceSeparator?: string; ``` -Defined in: [format.ts:298](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L298) +Defined in: [format.ts:305](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L305) Separator between sequence steps. Default: a space. @@ -114,6 +114,6 @@ optional useSymbols?: }; ``` -Defined in: [format.ts:283](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L283) +Defined in: [format.ts:290](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L290) Whether to use symbols for the display. Defaults to true. diff --git a/docs/reference/interfaces/HotkeyChordRecorderOptions.md b/docs/reference/interfaces/HotkeyChordRecorderOptions.md index f91386d70..e0b58cde0 100644 --- a/docs/reference/interfaces/HotkeyChordRecorderOptions.md +++ b/docs/reference/interfaces/HotkeyChordRecorderOptions.md @@ -5,7 +5,7 @@ title: HotkeyChordRecorderOptions -Defined in: [hotkey-recorder.ts:185](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L185) +Defined in: [hotkey-recorder.ts:186](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L186) Options for recording a single chord. This is the default (`maxSteps: 1`). @@ -21,7 +21,7 @@ Options for recording a single chord. This is the default (`maxSteps: 1`). optional cancelOnBlur?: boolean; ``` -Defined in: [hotkey-recorder.ts:163](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L163) +Defined in: [hotkey-recorder.ts:164](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L164) Whether to cancel recording when the window loses focus, as when the user switches apps or tabs, opens browser devtools, or clicks into an iframe. @@ -42,7 +42,7 @@ HotkeyRecorderBaseOptions.cancelOnBlur optional detectConflicts?: boolean | HotkeyConflictOptions; ``` -Defined in: [hotkey-recorder.ts:84](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L84) +Defined in: [hotkey-recorder.ts:85](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L85) Opt in to live-registry conflicts, including sequence prefixes. Default: false. @@ -60,7 +60,7 @@ HotkeyRecorderBaseOptions.detectConflicts optional ignoreInputs?: boolean; ``` -Defined in: [hotkey-recorder.ts:174](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L174) +Defined in: [hotkey-recorder.ts:175](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L175) Whether to ignore keyboard events from input-like elements (text inputs, textarea, select, contenteditable) while recording. When true, typing in @@ -80,7 +80,7 @@ HotkeyRecorderBaseOptions.ignoreInputs optional maxSteps?: 1; ``` -Defined in: [hotkey-recorder.ts:187](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L187) +Defined in: [hotkey-recorder.ts:188](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L188) Maximum number of chords to record. Default: 1 @@ -92,7 +92,7 @@ Maximum number of chords to record. Default: 1 optional onCancel?: () => void; ``` -Defined in: [hotkey-recorder.ts:156](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L156) +Defined in: [hotkey-recorder.ts:157](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L157) Optional callback when recording is cancelled: Escape, Tab without `recordTab`, or the window losing focus with `cancelOnBlur` @@ -115,7 +115,7 @@ HotkeyRecorderBaseOptions.onCancel optional onClear?: () => void; ``` -Defined in: [hotkey-recorder.ts:168](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L168) +Defined in: [hotkey-recorder.ts:169](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L169) Optional callback when the recording is cleared: Backspace/Delete with no modifiers and no recorded steps @@ -138,7 +138,7 @@ HotkeyRecorderBaseOptions.onClear onRecord: (hotkey, context) => void; ``` -Defined in: [hotkey-recorder.ts:197](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L197) +Defined in: [hotkey-recorder.ts:198](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L198) Callback when a chord is successfully recorded. `context` is the one `validate` received, with the key press that recorded the chord. @@ -165,7 +165,7 @@ Callback when a chord is successfully recorded. `context` is the one optional onReject?: (rejection) => void; ``` -Defined in: [hotkey-recorder.ts:86](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L86) +Defined in: [hotkey-recorder.ts:87](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L87) Rejected candidates leave recording active. @@ -193,7 +193,7 @@ HotkeyRecorderBaseOptions.onReject optional platform?: HotkeyPlatform; ``` -Defined in: [hotkey-recorder.ts:82](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L82) +Defined in: [hotkey-recorder.ts:83](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L83) Platform used for Mod and AltGraph handling. Defaults to platform detection. @@ -211,7 +211,7 @@ HotkeyRecorderBaseOptions.platform optional recordBy?: RecorderKeyMode; ``` -Defined in: [hotkey-recorder.ts:80](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L80) +Defined in: [hotkey-recorder.ts:81](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L81) How the pressed key is written. Default: `'auto'`. @@ -229,7 +229,7 @@ HotkeyRecorderBaseOptions.recordBy optional recordTab?: boolean; ``` -Defined in: [hotkey-recorder.ts:181](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L181) +Defined in: [hotkey-recorder.ts:182](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L182) Whether to record Tab and Shift+Tab. By default they cancel recording and move focus, so keyboard users can leave the recorder. Tab with Control, @@ -250,7 +250,7 @@ HotkeyRecorderBaseOptions.recordTab optional validate?: (hotkey, context) => string | boolean; ``` -Defined in: [hotkey-recorder.ts:189](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L189) +Defined in: [hotkey-recorder.ts:190](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L190) Return true to accept, or false or a message to reject while staying in recording mode. The message is passed to `onReject`. diff --git a/docs/reference/interfaces/HotkeyChordRecorderValidationContext.md b/docs/reference/interfaces/HotkeyChordRecorderValidationContext.md index a821d1735..9cbc9663f 100644 --- a/docs/reference/interfaces/HotkeyChordRecorderValidationContext.md +++ b/docs/reference/interfaces/HotkeyChordRecorderValidationContext.md @@ -5,7 +5,7 @@ title: HotkeyChordRecorderValidationContext -Defined in: [hotkey-recorder.ts:90](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L90) +Defined in: [hotkey-recorder.ts:91](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L91) Validation context for a recorded chord. @@ -17,7 +17,7 @@ Validation context for a recorded chord. event: KeyboardEvent; ``` -Defined in: [hotkey-recorder.ts:93](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L93) +Defined in: [hotkey-recorder.ts:94](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L94) The event that recorded the chord. @@ -29,7 +29,7 @@ The event that recorded the chord. kind: "chord"; ``` -Defined in: [hotkey-recorder.ts:91](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L91) +Defined in: [hotkey-recorder.ts:92](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L92) *** @@ -39,7 +39,7 @@ Defined in: [hotkey-recorder.ts:91](https://github.com/TanStack/hotkeys/blob/mai parsedChord: ParsedHotkeyChord; ``` -Defined in: [hotkey-recorder.ts:95](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L95) +Defined in: [hotkey-recorder.ts:96](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L96) The chord with `Mod` resolved for the recorder's platform. @@ -51,7 +51,7 @@ The chord with `Mod` resolved for the recorder's platform. platform: HotkeyPlatform; ``` -Defined in: [hotkey-recorder.ts:101](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L101) +Defined in: [hotkey-recorder.ts:102](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L102) The platform the chord was recorded on. `Control` recorded on macOS and `Meta` recorded elsewhere mean other keys on the other platforms, so diff --git a/docs/reference/interfaces/HotkeyChordRegistrationView.md b/docs/reference/interfaces/HotkeyChordRegistrationView.md index 7145b460c..ad1fdca2f 100644 --- a/docs/reference/interfaces/HotkeyChordRegistrationView.md +++ b/docs/reference/interfaces/HotkeyChordRegistrationView.md @@ -5,7 +5,7 @@ title: HotkeyChordRegistrationView -Defined in: [hotkey-manager.ts:252](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L252) +Defined in: [hotkey-manager.ts:253](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L253) Public view of a chord registration, without its callback. @@ -21,7 +21,7 @@ Public view of a chord registration, without its callback. hasFired: boolean; ``` -Defined in: [hotkey-manager.ts:248](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L248) +Defined in: [hotkey-manager.ts:249](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L249) #### Inherited from @@ -37,7 +37,7 @@ RegistrationViewBase.hasFired hotkey: HotkeyChord; ``` -Defined in: [hotkey-manager.ts:254](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L254) +Defined in: [hotkey-manager.ts:255](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L255) *** @@ -47,7 +47,7 @@ Defined in: [hotkey-manager.ts:254](https://github.com/TanStack/hotkeys/blob/mai id: string; ``` -Defined in: [hotkey-manager.ts:243](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L243) +Defined in: [hotkey-manager.ts:244](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L244) #### Inherited from @@ -63,7 +63,7 @@ RegistrationViewBase.id kind: "chord"; ``` -Defined in: [hotkey-manager.ts:253](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L253) +Defined in: [hotkey-manager.ts:254](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L254) *** @@ -73,7 +73,7 @@ Defined in: [hotkey-manager.ts:253](https://github.com/TanStack/hotkeys/blob/mai options: HotkeyChordOptions; ``` -Defined in: [hotkey-manager.ts:256](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L256) +Defined in: [hotkey-manager.ts:257](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L257) *** @@ -83,7 +83,7 @@ Defined in: [hotkey-manager.ts:256](https://github.com/TanStack/hotkeys/blob/mai parsedChord: ParsedHotkeyChord; ``` -Defined in: [hotkey-manager.ts:255](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L255) +Defined in: [hotkey-manager.ts:256](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L256) *** @@ -93,7 +93,7 @@ Defined in: [hotkey-manager.ts:255](https://github.com/TanStack/hotkeys/blob/mai status: HotkeyRegistrationStatus; ``` -Defined in: [hotkey-manager.ts:245](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L245) +Defined in: [hotkey-manager.ts:246](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L246) Whether the registration is enabled and in an active scope. @@ -111,7 +111,7 @@ RegistrationViewBase.status target: Target; ``` -Defined in: [hotkey-manager.ts:246](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L246) +Defined in: [hotkey-manager.ts:247](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L247) #### Inherited from @@ -127,7 +127,7 @@ RegistrationViewBase.target triggerCount: number; ``` -Defined in: [hotkey-manager.ts:247](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L247) +Defined in: [hotkey-manager.ts:248](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L248) #### Inherited from diff --git a/docs/reference/interfaces/HotkeyRecorderActions.md b/docs/reference/interfaces/HotkeyRecorderActions.md index 31993c413..21a4a479f 100644 --- a/docs/reference/interfaces/HotkeyRecorderActions.md +++ b/docs/reference/interfaces/HotkeyRecorderActions.md @@ -5,7 +5,7 @@ title: HotkeyRecorderActions -Defined in: [hotkey-recorder.ts:137](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L137) +Defined in: [hotkey-recorder.ts:138](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L138) The recorder controls that framework adapters return. @@ -17,7 +17,7 @@ The recorder controls that framework adapters return. cancelRecording: () => void; ``` -Defined in: [hotkey-recorder.ts:143](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L143) +Defined in: [hotkey-recorder.ts:144](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L144) Cancel recording and call onCancel @@ -33,7 +33,7 @@ Cancel recording and call onCancel commitRecording: () => void; ``` -Defined in: [hotkey-recorder.ts:145](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L145) +Defined in: [hotkey-recorder.ts:146](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L146) Commit the recorded steps now (multi-step recordings) @@ -49,7 +49,7 @@ Commit the recorded steps now (multi-step recordings) startRecording: () => void; ``` -Defined in: [hotkey-recorder.ts:139](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L139) +Defined in: [hotkey-recorder.ts:140](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L140) Start recording a new hotkey @@ -65,7 +65,7 @@ Start recording a new hotkey stopRecording: () => void; ``` -Defined in: [hotkey-recorder.ts:141](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L141) +Defined in: [hotkey-recorder.ts:142](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L142) Stop recording without calling onCancel diff --git a/docs/reference/interfaces/HotkeyRecorderState.md b/docs/reference/interfaces/HotkeyRecorderState.md index bf6ba4b51..df06abaf9 100644 --- a/docs/reference/interfaces/HotkeyRecorderState.md +++ b/docs/reference/interfaces/HotkeyRecorderState.md @@ -5,7 +5,7 @@ title: HotkeyRecorderState -Defined in: [hotkey-recorder.ts:127](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L127) +Defined in: [hotkey-recorder.ts:128](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L128) State interface for the HotkeyRecorder. Adapters narrow `THotkey` to the kind their recorder records. @@ -24,7 +24,7 @@ kind their recorder records. isRecording: boolean; ``` -Defined in: [hotkey-recorder.ts:129](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L129) +Defined in: [hotkey-recorder.ts:130](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L130) Whether recording is currently active @@ -36,7 +36,7 @@ Whether recording is currently active recordedHotkey: THotkey | null; ``` -Defined in: [hotkey-recorder.ts:133](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L133) +Defined in: [hotkey-recorder.ts:134](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L134) The last committed hotkey: a chord, or a sequence of two or more steps @@ -48,6 +48,6 @@ The last committed hotkey: a chord, or a sequence of two or more steps steps: HotkeySequence; ``` -Defined in: [hotkey-recorder.ts:131](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L131) +Defined in: [hotkey-recorder.ts:132](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L132) Chords recorded so far in a multi-step recording (empty for `maxSteps: 1`) diff --git a/docs/reference/interfaces/HotkeyRegistrationHandle.md b/docs/reference/interfaces/HotkeyRegistrationHandle.md index 88aaf77d5..61f8e1e3d 100644 --- a/docs/reference/interfaces/HotkeyRegistrationHandle.md +++ b/docs/reference/interfaces/HotkeyRegistrationHandle.md @@ -5,7 +5,7 @@ title: HotkeyRegistrationHandle -Defined in: [hotkey-manager.ts:347](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L347) +Defined in: [hotkey-manager.ts:358](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L358) A handle returned from HotkeyManager.register() that allows updating the callback and options without re-registering the hotkey. @@ -41,7 +41,7 @@ handle.unregister() callback: HotkeyCallback; ``` -Defined in: [hotkey-manager.ts:354](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L354) +Defined in: [hotkey-manager.ts:365](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L365) The callback function. Can be set directly to update without re-registering. This avoids stale closures when the callback references React state. @@ -54,7 +54,7 @@ This avoids stale closures when the callback references React state. readonly id: string; ``` -Defined in: [hotkey-manager.ts:356](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L356) +Defined in: [hotkey-manager.ts:367](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L367) Unique identifier for this registration @@ -66,7 +66,7 @@ Unique identifier for this registration readonly isActive: boolean; ``` -Defined in: [hotkey-manager.ts:358](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L358) +Defined in: [hotkey-manager.ts:369](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L369) Check if this registration is still active (not unregistered) @@ -78,7 +78,7 @@ Check if this registration is still active (not unregistered) setOptions: (options) => void; ``` -Defined in: [hotkey-manager.ts:366](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L366) +Defined in: [hotkey-manager.ts:377](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L377) Update options (merged with existing options). Useful for updating `enabled`, `preventDefault`, etc. without re-registering. @@ -104,7 +104,7 @@ cannot process it again in another phase. unregister: () => void; ``` -Defined in: [hotkey-manager.ts:368](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L368) +Defined in: [hotkey-manager.ts:379](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L379) Unregister this hotkey diff --git a/docs/reference/interfaces/HotkeyRegistrationsResult.md b/docs/reference/interfaces/HotkeyRegistrationsResult.md index 76c58b158..3a3c1bd5c 100644 --- a/docs/reference/interfaces/HotkeyRegistrationsResult.md +++ b/docs/reference/interfaces/HotkeyRegistrationsResult.md @@ -5,7 +5,7 @@ title: HotkeyRegistrationsResult -Defined in: [hotkey-manager.ts:280](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L280) +Defined in: [hotkey-manager.ts:281](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L281) The registrations an adapter reports, chords and sequences. @@ -17,6 +17,6 @@ The registrations an adapter reports, chords and sequences. readonly hotkeys: HotkeyRegistrationView[]; ``` -Defined in: [hotkey-manager.ts:282](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L282) +Defined in: [hotkey-manager.ts:283](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L283) Every registration, chords and sequences. Narrow each view with `kind`. diff --git a/docs/reference/interfaces/HotkeyScopesState.md b/docs/reference/interfaces/HotkeyScopesState.md index 40b59ca69..320b01318 100644 --- a/docs/reference/interfaces/HotkeyScopesState.md +++ b/docs/reference/interfaces/HotkeyScopesState.md @@ -5,7 +5,7 @@ title: HotkeyScopesState -Defined in: [hotkey-manager.ts:500](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L500) +Defined in: [hotkey-manager.ts:511](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L511) Active hotkey scopes, published on `HotkeyManager.scopes`. @@ -17,7 +17,7 @@ Active hotkey scopes, published on `HotkeyManager.scopes`. active: readonly string[]; ``` -Defined in: [hotkey-manager.ts:505](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L505) +Defined in: [hotkey-manager.ts:516](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L516) Activated scopes, lowest precedence first. `'global'` is always active and not listed. @@ -30,20 +30,33 @@ and not listed. allowed: readonly string[]; ``` -Defined in: [hotkey-manager.ts:512](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L512) +Defined in: [hotkey-manager.ts:523](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L523) Scopes the exclusive scope allows that are active, possibly including `'global'`. Empty when no scope is exclusive. *** +### characterKeysSuspended + +```ts +characterKeysSuspended: boolean; +``` + +Defined in: [hotkey-manager.ts:533](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L533) + +Whether character key shortcuts, such as `K` or `Shift+/`, are suspended +by `suspendCharacterKeys`. Hotkeys on an element are not suspended. + +*** + ### exclusive ```ts exclusive: string | null; ``` -Defined in: [hotkey-manager.ts:507](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L507) +Defined in: [hotkey-manager.ts:518](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L518) The exclusive scope that owns the keyboard, or `null` when none is active. @@ -55,7 +68,7 @@ The exclusive scope that owns the keyboard, or `null` when none is active. suspended: readonly string[]; ``` -Defined in: [hotkey-manager.ts:517](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L517) +Defined in: [hotkey-manager.ts:528](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L528) Scopes that are active but cannot fire because another scope is exclusive, possibly including `'global'`. diff --git a/docs/reference/interfaces/HotkeySequenceRecorderOptions.md b/docs/reference/interfaces/HotkeySequenceRecorderOptions.md index 929479c4d..0cbcc7f36 100644 --- a/docs/reference/interfaces/HotkeySequenceRecorderOptions.md +++ b/docs/reference/interfaces/HotkeySequenceRecorderOptions.md @@ -5,7 +5,7 @@ title: HotkeySequenceRecorderOptions -Defined in: [hotkey-recorder.ts:207](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L207) +Defined in: [hotkey-recorder.ts:208](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L208) Options for recording up to `maxSteps` chords. A one-step recording commits as a chord string; two or more steps commit as a sequence. @@ -22,7 +22,7 @@ as a chord string; two or more steps commit as a sequence. optional cancelOnBlur?: boolean; ``` -Defined in: [hotkey-recorder.ts:163](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L163) +Defined in: [hotkey-recorder.ts:164](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L164) Whether to cancel recording when the window loses focus, as when the user switches apps or tabs, opens browser devtools, or clicks into an iframe. @@ -43,7 +43,7 @@ HotkeyRecorderBaseOptions.cancelOnBlur optional commitKeys?: HotkeyRecorderCommitKeys; ``` -Defined in: [hotkey-recorder.ts:221](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L221) +Defined in: [hotkey-recorder.ts:222](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L222) Whether plain Enter commits the recorded steps. Default: 'enter' @@ -55,7 +55,7 @@ Whether plain Enter commits the recorded steps. Default: 'enter' optional detectConflicts?: boolean | HotkeyConflictOptions; ``` -Defined in: [hotkey-recorder.ts:84](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L84) +Defined in: [hotkey-recorder.ts:85](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L85) Opt in to live-registry conflicts, including sequence prefixes. Default: false. @@ -73,7 +73,7 @@ HotkeyRecorderBaseOptions.detectConflicts optional idleTimeoutMs?: number; ``` -Defined in: [hotkey-recorder.ts:223](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L223) +Defined in: [hotkey-recorder.ts:224](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L224) Commit automatically after this many milliseconds without a new step. Disabled when unset or 0. @@ -85,7 +85,7 @@ Commit automatically after this many milliseconds without a new step. Disabled w optional ignoreInputs?: boolean; ``` -Defined in: [hotkey-recorder.ts:174](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L174) +Defined in: [hotkey-recorder.ts:175](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L175) Whether to ignore keyboard events from input-like elements (text inputs, textarea, select, contenteditable) while recording. When true, typing in @@ -105,7 +105,7 @@ HotkeyRecorderBaseOptions.ignoreInputs maxSteps: number; ``` -Defined in: [hotkey-recorder.ts:209](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L209) +Defined in: [hotkey-recorder.ts:210](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L210) Maximum number of chords to record. Reaching it commits automatically. Use `Infinity` for no limit. @@ -117,7 +117,7 @@ Maximum number of chords to record. Reaching it commits automatically. Use `Infi optional onCancel?: () => void; ``` -Defined in: [hotkey-recorder.ts:156](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L156) +Defined in: [hotkey-recorder.ts:157](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L157) Optional callback when recording is cancelled: Escape, Tab without `recordTab`, or the window losing focus with `cancelOnBlur` @@ -140,7 +140,7 @@ HotkeyRecorderBaseOptions.onCancel optional onClear?: () => void; ``` -Defined in: [hotkey-recorder.ts:168](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L168) +Defined in: [hotkey-recorder.ts:169](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L169) Optional callback when the recording is cleared: Backspace/Delete with no modifiers and no recorded steps @@ -163,7 +163,7 @@ HotkeyRecorderBaseOptions.onClear onRecord: (hotkey, context) => void; ``` -Defined in: [hotkey-recorder.ts:219](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L219) +Defined in: [hotkey-recorder.ts:220](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L220) Callback when a hotkey is successfully recorded. `context` is the one `validate` received, with the key press that recorded each step. @@ -190,7 +190,7 @@ Callback when a hotkey is successfully recorded. `context` is the one optional onReject?: (rejection) => void; ``` -Defined in: [hotkey-recorder.ts:86](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L86) +Defined in: [hotkey-recorder.ts:87](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L87) Rejected candidates leave recording active. @@ -218,7 +218,7 @@ HotkeyRecorderBaseOptions.onReject optional platform?: HotkeyPlatform; ``` -Defined in: [hotkey-recorder.ts:82](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L82) +Defined in: [hotkey-recorder.ts:83](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L83) Platform used for Mod and AltGraph handling. Defaults to platform detection. @@ -236,7 +236,7 @@ HotkeyRecorderBaseOptions.platform optional recordBy?: RecorderKeyMode; ``` -Defined in: [hotkey-recorder.ts:80](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L80) +Defined in: [hotkey-recorder.ts:81](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L81) How the pressed key is written. Default: `'auto'`. @@ -254,7 +254,7 @@ HotkeyRecorderBaseOptions.recordBy optional recordTab?: boolean; ``` -Defined in: [hotkey-recorder.ts:181](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L181) +Defined in: [hotkey-recorder.ts:182](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L182) Whether to record Tab and Shift+Tab. By default they cancel recording and move focus, so keyboard users can leave the recorder. Tab with Control, @@ -275,7 +275,7 @@ HotkeyRecorderBaseOptions.recordTab optional validate?: (hotkey, context) => string | boolean; ``` -Defined in: [hotkey-recorder.ts:211](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L211) +Defined in: [hotkey-recorder.ts:212](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L212) Return true to accept, or false or a message to reject while staying in recording mode. The message is passed to `onReject`. diff --git a/docs/reference/interfaces/HotkeySequenceRecorderValidationContext.md b/docs/reference/interfaces/HotkeySequenceRecorderValidationContext.md index 7ecc47d8d..14d8d7365 100644 --- a/docs/reference/interfaces/HotkeySequenceRecorderValidationContext.md +++ b/docs/reference/interfaces/HotkeySequenceRecorderValidationContext.md @@ -5,7 +5,7 @@ title: HotkeySequenceRecorderValidationContext -Defined in: [hotkey-recorder.ts:105](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L105) +Defined in: [hotkey-recorder.ts:106](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L106) Validation context for a recorded sequence. @@ -17,7 +17,7 @@ Validation context for a recorded sequence. events: readonly KeyboardEvent[]; ``` -Defined in: [hotkey-recorder.ts:108](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L108) +Defined in: [hotkey-recorder.ts:109](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L109) The event that recorded each step. @@ -29,7 +29,7 @@ The event that recorded each step. kind: "sequence"; ``` -Defined in: [hotkey-recorder.ts:106](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L106) +Defined in: [hotkey-recorder.ts:107](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L107) *** @@ -39,7 +39,7 @@ Defined in: [hotkey-recorder.ts:106](https://github.com/TanStack/hotkeys/blob/ma parsedSequence: ParsedHotkeyChord[]; ``` -Defined in: [hotkey-recorder.ts:110](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L110) +Defined in: [hotkey-recorder.ts:111](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L111) Each step with `Mod` resolved for the recorder's platform. @@ -51,6 +51,6 @@ Each step with `Mod` resolved for the recorder's platform. platform: HotkeyPlatform; ``` -Defined in: [hotkey-recorder.ts:112](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L112) +Defined in: [hotkey-recorder.ts:113](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L113) The platform the sequence was recorded on. diff --git a/docs/reference/interfaces/HotkeySequenceRegistrationView.md b/docs/reference/interfaces/HotkeySequenceRegistrationView.md index eaccd56ee..6722627e1 100644 --- a/docs/reference/interfaces/HotkeySequenceRegistrationView.md +++ b/docs/reference/interfaces/HotkeySequenceRegistrationView.md @@ -5,7 +5,7 @@ title: HotkeySequenceRegistrationView -Defined in: [hotkey-manager.ts:260](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L260) +Defined in: [hotkey-manager.ts:261](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L261) Public view of a sequence registration, without its callback. @@ -21,7 +21,7 @@ Public view of a sequence registration, without its callback. hasFired: boolean; ``` -Defined in: [hotkey-manager.ts:248](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L248) +Defined in: [hotkey-manager.ts:249](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L249) #### Inherited from @@ -37,7 +37,7 @@ RegistrationViewBase.hasFired hotkey: HotkeySequence; ``` -Defined in: [hotkey-manager.ts:262](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L262) +Defined in: [hotkey-manager.ts:263](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L263) *** @@ -47,7 +47,7 @@ Defined in: [hotkey-manager.ts:262](https://github.com/TanStack/hotkeys/blob/mai id: string; ``` -Defined in: [hotkey-manager.ts:243](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L243) +Defined in: [hotkey-manager.ts:244](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L244) #### Inherited from @@ -63,7 +63,7 @@ RegistrationViewBase.id kind: "sequence"; ``` -Defined in: [hotkey-manager.ts:261](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L261) +Defined in: [hotkey-manager.ts:262](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L262) *** @@ -73,7 +73,7 @@ Defined in: [hotkey-manager.ts:261](https://github.com/TanStack/hotkeys/blob/mai matchedStepCount: number; ``` -Defined in: [hotkey-manager.ts:266](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L266) +Defined in: [hotkey-manager.ts:267](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L267) Steps matched in the current attempt (0 when idle or just completed). @@ -85,7 +85,7 @@ Steps matched in the current attempt (0 when idle or just completed). options: HotkeySequenceOptions; ``` -Defined in: [hotkey-manager.ts:264](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L264) +Defined in: [hotkey-manager.ts:265](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L265) *** @@ -95,7 +95,7 @@ Defined in: [hotkey-manager.ts:264](https://github.com/TanStack/hotkeys/blob/mai parsedSequence: ParsedHotkeyChord[]; ``` -Defined in: [hotkey-manager.ts:263](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L263) +Defined in: [hotkey-manager.ts:264](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L264) *** @@ -105,7 +105,7 @@ Defined in: [hotkey-manager.ts:263](https://github.com/TanStack/hotkeys/blob/mai partialMatchLastKeyTime: number; ``` -Defined in: [hotkey-manager.ts:268](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L268) +Defined in: [hotkey-manager.ts:269](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L269) `Date.now()` when the last step in the current attempt matched; 0 if none. @@ -117,7 +117,7 @@ Defined in: [hotkey-manager.ts:268](https://github.com/TanStack/hotkeys/blob/mai status: HotkeyRegistrationStatus; ``` -Defined in: [hotkey-manager.ts:245](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L245) +Defined in: [hotkey-manager.ts:246](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L246) Whether the registration is enabled and in an active scope. @@ -135,7 +135,7 @@ RegistrationViewBase.status target: Target; ``` -Defined in: [hotkey-manager.ts:246](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L246) +Defined in: [hotkey-manager.ts:247](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L247) #### Inherited from @@ -151,7 +151,7 @@ RegistrationViewBase.target triggerCount: number; ``` -Defined in: [hotkey-manager.ts:247](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L247) +Defined in: [hotkey-manager.ts:248](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L248) #### Inherited from diff --git a/docs/reference/interfaces/RecorderOptions.md b/docs/reference/interfaces/RecorderOptions.md index defd43875..e8f612eac 100644 --- a/docs/reference/interfaces/RecorderOptions.md +++ b/docs/reference/interfaces/RecorderOptions.md @@ -5,7 +5,7 @@ title: RecorderOptions -Defined in: [hotkey-recorder.ts:78](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L78) +Defined in: [hotkey-recorder.ts:79](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L79) ## Properties @@ -15,7 +15,7 @@ Defined in: [hotkey-recorder.ts:78](https://github.com/TanStack/hotkeys/blob/mai optional detectConflicts?: boolean | HotkeyConflictOptions; ``` -Defined in: [hotkey-recorder.ts:84](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L84) +Defined in: [hotkey-recorder.ts:85](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L85) Opt in to live-registry conflicts, including sequence prefixes. Default: false. @@ -27,7 +27,7 @@ Opt in to live-registry conflicts, including sequence prefixes. Default: false. optional onReject?: (rejection) => void; ``` -Defined in: [hotkey-recorder.ts:86](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L86) +Defined in: [hotkey-recorder.ts:87](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L87) Rejected candidates leave recording active. @@ -49,7 +49,7 @@ Rejected candidates leave recording active. optional platform?: HotkeyPlatform; ``` -Defined in: [hotkey-recorder.ts:82](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L82) +Defined in: [hotkey-recorder.ts:83](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L83) Platform used for Mod and AltGraph handling. Defaults to platform detection. @@ -61,6 +61,6 @@ Platform used for Mod and AltGraph handling. Defaults to platform detection. optional recordBy?: RecorderKeyMode; ``` -Defined in: [hotkey-recorder.ts:80](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L80) +Defined in: [hotkey-recorder.ts:81](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L81) How the pressed key is written. Default: `'auto'`. diff --git a/docs/reference/interfaces/RecorderRejection.md b/docs/reference/interfaces/RecorderRejection.md index e931a8a2c..686c40392 100644 --- a/docs/reference/interfaces/RecorderRejection.md +++ b/docs/reference/interfaces/RecorderRejection.md @@ -5,7 +5,7 @@ title: RecorderRejection -Defined in: [hotkey-recorder.ts:69](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L69) +Defined in: [hotkey-recorder.ts:70](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L70) ## Properties @@ -15,7 +15,7 @@ Defined in: [hotkey-recorder.ts:69](https://github.com/TanStack/hotkeys/blob/mai optional conflicts?: HotkeyConflict[]; ``` -Defined in: [hotkey-recorder.ts:75](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L75) +Defined in: [hotkey-recorder.ts:76](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L76) *** @@ -25,7 +25,7 @@ Defined in: [hotkey-recorder.ts:75](https://github.com/TanStack/hotkeys/blob/mai optional hotkey?: Hotkey; ``` -Defined in: [hotkey-recorder.ts:74](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L74) +Defined in: [hotkey-recorder.ts:75](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L75) The rejected chord or sequence, when one was recorded. @@ -37,7 +37,7 @@ The rejected chord or sequence, when one was recorded. optional message?: string; ``` -Defined in: [hotkey-recorder.ts:72](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L72) +Defined in: [hotkey-recorder.ts:73](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L73) The message your `validate` callback returned, when it returned one. @@ -49,4 +49,4 @@ The message your `validate` callback returned, when it returned one. reason: RecorderRejectionReason; ``` -Defined in: [hotkey-recorder.ts:70](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L70) +Defined in: [hotkey-recorder.ts:71](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L71) diff --git a/docs/reference/type-aliases/AppHotkeyStatus.md b/docs/reference/type-aliases/AppHotkeyStatus.md index 56f50ea36..e086d1170 100644 --- a/docs/reference/type-aliases/AppHotkeyStatus.md +++ b/docs/reference/type-aliases/AppHotkeyStatus.md @@ -12,11 +12,12 @@ type AppHotkeyStatus = | "unbound"; ``` -Defined in: [app-hotkeys.ts:374](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L374) +Defined in: [app-hotkeys.ts:375](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L375) Status of an app hotkey in the running app. - `'active'`: at least one enabled registration -- `'suspended'`: has an enabled registration, but none in an active scope +- `'suspended'`: has an enabled registration, but none can fire: its scope is + inactive, or it is a character key shortcut while character keys are suspended - `'disabled'`: registered, but every registration has `enabled: false` - `'inactive'`: has a hotkey, but nothing has registered it - `'unbound'`: no hotkey assigned diff --git a/docs/reference/type-aliases/DisplayHotkey.md b/docs/reference/type-aliases/DisplayHotkey.md index 9cdffc057..f1f5b2790 100644 --- a/docs/reference/type-aliases/DisplayHotkey.md +++ b/docs/reference/type-aliases/DisplayHotkey.md @@ -11,6 +11,6 @@ type DisplayHotkey = | ReadonlyArray; ``` -Defined in: [format.ts:81](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L81) +Defined in: [format.ts:87](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L87) A hotkey to display: a chord or a sequence of chords. diff --git a/docs/reference/type-aliases/DisplayHotkeyChord.md b/docs/reference/type-aliases/DisplayHotkeyChord.md index 043f4a6ad..8ec40c11c 100644 --- a/docs/reference/type-aliases/DisplayHotkeyChord.md +++ b/docs/reference/type-aliases/DisplayHotkeyChord.md @@ -12,7 +12,7 @@ type DisplayHotkeyChord = | CanonicalModifier; ``` -Defined in: [format.ts:75](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L75) +Defined in: [format.ts:81](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L81) A single chord to display: a hotkey string, which includes single keys, a modifier on its own, a raw object such as `{ key }`, or a parsed hotkey. diff --git a/docs/reference/type-aliases/HotkeyRecorderCommitKeys.md b/docs/reference/type-aliases/HotkeyRecorderCommitKeys.md index cdbac7ec2..148c1f21f 100644 --- a/docs/reference/type-aliases/HotkeyRecorderCommitKeys.md +++ b/docs/reference/type-aliases/HotkeyRecorderCommitKeys.md @@ -9,6 +9,6 @@ title: HotkeyRecorderCommitKeys type HotkeyRecorderCommitKeys = "enter" | "none"; ``` -Defined in: [hotkey-recorder.ts:149](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L149) +Defined in: [hotkey-recorder.ts:150](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L150) Which keys commit a multi-step recording before it reaches `maxSteps`. diff --git a/docs/reference/type-aliases/HotkeyRecorderOptions.md b/docs/reference/type-aliases/HotkeyRecorderOptions.md index ef5925964..b0c7ca8af 100644 --- a/docs/reference/type-aliases/HotkeyRecorderOptions.md +++ b/docs/reference/type-aliases/HotkeyRecorderOptions.md @@ -11,7 +11,7 @@ type HotkeyRecorderOptions = | HotkeySequenceRecorderOptions; ``` -Defined in: [hotkey-recorder.ts:230](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L230) +Defined in: [hotkey-recorder.ts:231](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L231) Options for HotkeyRecorder. `maxSteps` (default 1) selects between recording a single chord and recording a sequence. diff --git a/docs/reference/type-aliases/HotkeyRecorderValidationContext.md b/docs/reference/type-aliases/HotkeyRecorderValidationContext.md index 3851cb390..af964d5a9 100644 --- a/docs/reference/type-aliases/HotkeyRecorderValidationContext.md +++ b/docs/reference/type-aliases/HotkeyRecorderValidationContext.md @@ -11,7 +11,7 @@ type HotkeyRecorderValidationContext = | HotkeySequenceRecorderValidationContext; ``` -Defined in: [hotkey-recorder.ts:119](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L119) +Defined in: [hotkey-recorder.ts:120](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L120) Validation context for a recorded chord or sequence. Narrow with `kind` to read `parsedChord` or `parsedSequence`. diff --git a/docs/reference/type-aliases/HotkeyRegistrationStatus.md b/docs/reference/type-aliases/HotkeyRegistrationStatus.md index a1ed5627d..8c9bf718a 100644 --- a/docs/reference/type-aliases/HotkeyRegistrationStatus.md +++ b/docs/reference/type-aliases/HotkeyRegistrationStatus.md @@ -9,10 +9,11 @@ title: HotkeyRegistrationStatus type HotkeyRegistrationStatus = "active" | "suspended" | "disabled"; ``` -Defined in: [hotkey-manager.ts:240](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L240) +Defined in: [hotkey-manager.ts:241](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L241) Whether a registration is on. Focus isn't checked: a registration on an element also needs focus inside that element to fire. - `'active'`: enabled, and its scope is active -- `'suspended'`: enabled, but its scope is inactive or suspended by an exclusive scope +- `'suspended'`: enabled, but its scope is inactive or suspended by an exclusive scope, + or it is a character key shortcut while `suspendCharacterKeys` is in effect - `'disabled'`: registered with `enabled: false` diff --git a/docs/reference/type-aliases/HotkeyRegistrationView.md b/docs/reference/type-aliases/HotkeyRegistrationView.md index 474e00d6f..3d0279e49 100644 --- a/docs/reference/type-aliases/HotkeyRegistrationView.md +++ b/docs/reference/type-aliases/HotkeyRegistrationView.md @@ -11,7 +11,7 @@ type HotkeyRegistrationView = | HotkeySequenceRegistrationView; ``` -Defined in: [hotkey-manager.ts:275](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L275) +Defined in: [hotkey-manager.ts:276](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-manager.ts#L276) Public view of a hotkey registration for display and introspection. Narrow with `kind` to read chord- or sequence-specific fields. diff --git a/docs/reference/type-aliases/MultiHotkeyChordHandler.md b/docs/reference/type-aliases/MultiHotkeyChordHandler.md index cf5768b31..5821865e0 100644 --- a/docs/reference/type-aliases/MultiHotkeyChordHandler.md +++ b/docs/reference/type-aliases/MultiHotkeyChordHandler.md @@ -9,4 +9,4 @@ title: MultiHotkeyChordHandler type MultiHotkeyChordHandler = { [K in HotkeyChord]?: HotkeyCallback }; ``` -Defined in: [match.ts:134](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L134) +Defined in: [match.ts:135](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L135) diff --git a/docs/reference/type-aliases/RecorderKeyMode.md b/docs/reference/type-aliases/RecorderKeyMode.md index 56c7cfa8b..e949aae9c 100644 --- a/docs/reference/type-aliases/RecorderKeyMode.md +++ b/docs/reference/type-aliases/RecorderKeyMode.md @@ -9,7 +9,7 @@ title: RecorderKeyMode type RecorderKeyMode = "auto" | "code" | "key"; ``` -Defined in: [hotkey-recorder.ts:43](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L43) +Defined in: [hotkey-recorder.ts:44](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L44) How the recorder writes the pressed key: diff --git a/docs/reference/type-aliases/RecorderRejectionReason.md b/docs/reference/type-aliases/RecorderRejectionReason.md index 0b0344b1a..80e3f49c0 100644 --- a/docs/reference/type-aliases/RecorderRejectionReason.md +++ b/docs/reference/type-aliases/RecorderRejectionReason.md @@ -9,7 +9,7 @@ title: RecorderRejectionReason type RecorderRejectionReason = "alt-graph" | "missing-code" | "whitespace" | "validation" | "conflict"; ``` -Defined in: [hotkey-recorder.ts:62](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L62) +Defined in: [hotkey-recorder.ts:63](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/hotkey-recorder.ts#L63) Why the recorder rejected a key press or a recording: diff --git a/docs/reference/type-aliases/RegisteredAppHotkeyListItem.md b/docs/reference/type-aliases/RegisteredAppHotkeyListItem.md index e280872ee..9cf18315f 100644 --- a/docs/reference/type-aliases/RegisteredAppHotkeyListItem.md +++ b/docs/reference/type-aliases/RegisteredAppHotkeyListItem.md @@ -9,6 +9,6 @@ title: RegisteredAppHotkeyListItem type RegisteredAppHotkeyListItem = AppHotkeyListItem; ``` -Defined in: [app-hotkeys.ts:395](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L395) +Defined in: [app-hotkeys.ts:396](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L396) A cheat sheet row for one of the registered app hotkeys. diff --git a/docs/reference/variables/DEFAULT_SEQUENCE_TIMEOUT.md b/docs/reference/variables/DEFAULT_SEQUENCE_TIMEOUT.md index 7d7696666..8b60dda2c 100644 --- a/docs/reference/variables/DEFAULT_SEQUENCE_TIMEOUT.md +++ b/docs/reference/variables/DEFAULT_SEQUENCE_TIMEOUT.md @@ -9,6 +9,6 @@ title: DEFAULT_SEQUENCE_TIMEOUT const DEFAULT_SEQUENCE_TIMEOUT: 1000 = 1000; ``` -Defined in: [match.ts:222](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/match.ts#L222) +Defined in: [constants.ts:157](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/constants.ts#L157) Default timeout between sequence steps (in milliseconds). diff --git a/package.json b/package.json index 8540bca51..9fb4b70f3 100644 --- a/package.json +++ b/package.json @@ -57,13 +57,13 @@ { "name": "everything", "path": "packages/hotkeys/dist/index.js", - "limit": "14.5 KB" + "limit": "15 KB" }, { "name": "HotkeyManager", "path": "packages/hotkeys/dist/index.js", "import": "{ getHotkeyManager }", - "limit": "8.5 KB" + "limit": "9 KB" }, { "name": "HotkeyRecorder", @@ -89,6 +89,12 @@ "import": "{ formatForDisplay }", "limit": "3 KB" }, + { + "name": "formatForAria", + "path": "packages/hotkeys/dist/index.js", + "import": "{ formatForAria }", + "limit": "2 KB" + }, { "name": "Provider without app hotkeys", "path": "packages/hotkeys/dist/adapter.js", @@ -191,7 +197,7 @@ "ignore": [ "alpinejs" ], - "limit": "12 KB" + "limit": "12.5 KB" }, { "name": "Alpine hotkeyDirective", diff --git a/packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md b/packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md index 48eb84439..da6d369ea 100644 --- a/packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md +++ b/packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md @@ -83,6 +83,7 @@ Each owner has these methods. Read their state through `.value`, or `.hotkeys` f | `createHotkey(hotkey, callback, options?)` | Register one chord, sequence, or app hotkey until the owner is destroyed; options can be a getter. | | `createHotkeys(definitions, commonOptions?)` | Register several hotkeys, or a getter of a list built from data, in one call. | | `createFormatForDisplay()` | Get the function that formats a hotkey as a label, with the owner's default `platform` and the user's keyboard layout filled in. Only Chromium browsers report a layout, so physical keys keep their US labels in Firefox and Safari. Use it for every label in a component: `const formatForDisplay = hotkeys.createFormatForDisplay()` once, then `formatForDisplay(hotkey)` in a getter or an `x-text` expression. | +| `createFormatForAria()` | Get the function that formats a hotkey for `aria-keyshortcuts`, with the owner's default `platform` and the user's keyboard layout filled in. Returns `undefined` for a multi-step sequence or no hotkey, so the attribute is omitted. Set `aria-keyshortcuts` on every control that has a shortcut, next to the visible label. | | `createAppHotkeys()` | Get the declared app hotkeys with the user's custom hotkeys applied. | | `createAppHotkeyList()` | List every app hotkey with its status, for a cheat sheet or settings screen. | | `createCustomHotkeys()` | Read, change, and reset the user's custom hotkeys, and check a new one for conflicts. | @@ -94,7 +95,7 @@ Each owner has these methods. Read their state through `.value`, or `.hotkeys` f | `createHeldKeyCodes()` | Map each held key to its physical `event.code`. | | `destroy()` | Release every hotkey, subscription, and recorder the owner created. | -The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use the owner's `createFormatForDisplay()` in components. Outside a component, call the plain function and pass `platform`. +The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use the owner's `createFormatForDisplay()` in components. Outside a component, call the plain function and pass `platform`. The plain `formatForAria` export is deprecated the same way, in favor of the owner's `createFormatForAria()`. ## Pitfalls diff --git a/packages/alpine-hotkeys/src/createFormatForAria.ts b/packages/alpine-hotkeys/src/createFormatForAria.ts new file mode 100644 index 000000000..8d36b0fb7 --- /dev/null +++ b/packages/alpine-hotkeys/src/createFormatForAria.ts @@ -0,0 +1,15 @@ +import { formatForAria } from '@tanstack/hotkeys' +import { createFormatter } from '@tanstack/hotkeys/adapter' +import { createKeyboardLayout } from './createKeyboardLayout' +import type { HotkeysScope } from './scope' + +export function createFormatForAria(scope: HotkeysScope): typeof formatForAria { + const layout = createKeyboardLayout(scope) + // Only a physical key reads the layout, so other values don't run again + // when it loads. + return createFormatter( + formatForAria, + () => scope.defaultOptions().platform, + () => layout.value, + ) +} diff --git a/packages/alpine-hotkeys/src/createHotkeysScope.ts b/packages/alpine-hotkeys/src/createHotkeysScope.ts index 743dbfac5..991844719 100644 --- a/packages/alpine-hotkeys/src/createHotkeysScope.ts +++ b/packages/alpine-hotkeys/src/createHotkeysScope.ts @@ -3,6 +3,7 @@ import { createAppHotkeys, createCustomHotkeys, } from './createAppHotkeys' +import { createFormatForAria } from './createFormatForAria' import { createFormatForDisplay } from './createFormatForDisplay' import { createHeldKeyCodes } from './createHeldKeyCodes' import { createHeldKeys } from './createHeldKeys' @@ -43,6 +44,7 @@ export function createHotkeysScope( createHotkeyRegistrations(scope, ...args), createHotkeyScopesState: () => createHotkeyScopesState(scope), createFormatForDisplay: () => createFormatForDisplay(scope), + createFormatForAria: () => createFormatForAria(scope), createKeyboardLayout: () => createKeyboardLayout(scope), createAppHotkeys: () => createAppHotkeys(scope), createAppHotkeyList: () => createAppHotkeyList(scope), diff --git a/packages/alpine-hotkeys/src/formatForAria.ts b/packages/alpine-hotkeys/src/formatForAria.ts new file mode 100644 index 000000000..6555b935b --- /dev/null +++ b/packages/alpine-hotkeys/src/formatForAria.ts @@ -0,0 +1,12 @@ +import { formatForAria as coreFormatForAria } from '@tanstack/hotkeys' + +/** + * Formats a hotkey for `aria-keyshortcuts`, without the scope's platform or the + * user's keyboard layout. + * + * @deprecated Use `createFormatForAria()` on a `createHotkeysScope` owner in + * components. It returns this function with the scope's platform and the user's + * keyboard layout filled in. Outside a component, keep calling this function + * and pass `platform` yourself. + */ +export const formatForAria: typeof coreFormatForAria = coreFormatForAria diff --git a/packages/alpine-hotkeys/src/index.ts b/packages/alpine-hotkeys/src/index.ts index 443e880e0..a6d2894d5 100644 --- a/packages/alpine-hotkeys/src/index.ts +++ b/packages/alpine-hotkeys/src/index.ts @@ -3,6 +3,7 @@ export * from '@tanstack/hotkeys' export * from './createHotkeysScope' // Replaces the core export, to point components to the scope's function export { formatForDisplay } from './formatForDisplay' +export { formatForAria } from './formatForAria' export * from './hotkeysPlugin' export { hotkeyDirective } from './hotkeyDirective' export { createHotkeyRecorder } from './createHotkeyRecorder' diff --git a/packages/alpine-hotkeys/src/types.ts b/packages/alpine-hotkeys/src/types.ts index c1d18b9a1..bb727b5bd 100644 --- a/packages/alpine-hotkeys/src/types.ts +++ b/packages/alpine-hotkeys/src/types.ts @@ -22,6 +22,7 @@ import type { RegisteredAppHotkeyListItem, RegisteredAppHotkeys, Target, + formatForAria, formatForDisplay, } from '@tanstack/hotkeys' import type { @@ -157,6 +158,42 @@ export interface AlpineHotkeys { * ``` */ createFormatForDisplay: () => typeof formatForDisplay + /** + * Returns `formatForAria` with the scope's `platform` as the default, or + * the detected platform without one. Use its value for + * `aria-keyshortcuts`, so screen readers announce the shortcut. It returns + * `undefined` for a multi-step sequence or no hotkey, so `x-bind` omits the + * attribute. An explicit `platform` option wins. + * + * Physical bindings such as `[KeyQ]` name the key the user presses in + * Chromium browsers, once the keyboard layout has loaded, the same way as + * `createFormatForDisplay`. A `layoutMap` passed to the returned function + * wins. + * + * Create it once, then call the returned function anywhere. + * + * @example + * ```ts + * Alpine.data('searchButton', () => { + * const hotkeys = createHotkeysScope() + * const formatForAria = hotkeys.createFormatForAria() + * + * return { + * get shortcut() { + * return formatForAria('Mod+K') + * }, + * destroy() { + * hotkeys.destroy() + * }, + * } + * }) + * ``` + * + * ```html + * + * ``` + */ + createFormatForAria: () => typeof formatForAria /** * Read the browser's keyboard layout through `.value`, or `null` until it * loads and in browsers that don't report one. The layout maps each physical diff --git a/packages/alpine-hotkeys/tests/conformance.test.ts b/packages/alpine-hotkeys/tests/conformance.test.ts index 871d3baea..96dc874fd 100644 --- a/packages/alpine-hotkeys/tests/conformance.test.ts +++ b/packages/alpine-hotkeys/tests/conformance.test.ts @@ -246,10 +246,12 @@ const harness: ConformanceHarness = { async mountFormat({ platform }) { const { hotkeys, unmount } = owner(() => ({ platform })) const formatForDisplay = hotkeys.createFormatForDisplay() + const formatForAria = hotkeys.createFormatForAria() await settle() return { format: (hotkey, formatOptions) => formatForDisplay(hotkey, formatOptions ?? {}), + formatAria: (hotkey, options) => formatForAria(hotkey, options), unmount, } }, diff --git a/packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md b/packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md index e1b0920ab..f8d4eea0a 100644 --- a/packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md +++ b/packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md @@ -63,10 +63,11 @@ export class PanelComponent { | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `injectHotkey(hotkey, callback, options?)` | Register one chord, sequence, or app hotkey for the component's or service's lifetime; options can be a function that reads signals. | | `injectHotkeys(definitions, commonOptions?)` | Register several hotkeys, or a function returning a list built from data, in one call. | -| `provideHotkeys(options)` | Set default options, a scope (`exclusive` for dialogs), `enabled`, and app hotkeys in the app config or a component's `providers`. | +| `provideHotkeys(options)` | Set default options, a scope (`exclusive` for dialogs), `enabled`, `suspendCharacterKeys` (set from a user setting that turns off single-key shortcuts), and app hotkeys in the app config or a component's `providers`. | | `injectHotkeysContext()` | Read the nearest provided defaults and enabled state. Activates that provider's scope. | | `injectDefaultHotkeysOptions()` | Read the default options merged from every provider above. | | `injectFormatForDisplay()` | Get the function that formats a hotkey as a label, with the provider's `platform` and the user's keyboard layout filled in. Only Chromium browsers report a layout, so physical keys keep their US labels in Firefox and Safari. Use it for every label in a component: `readonly formatForDisplay = injectFormatForDisplay()` as a field, then `formatForDisplay(hotkey)` in the template. | +| `injectFormatForAria()` | Get the function that formats a hotkey for `aria-keyshortcuts`, with the provider's `platform` and the user's keyboard layout filled in. Returns `undefined` for a multi-step sequence or no hotkey, so the attribute is omitted. Set `aria-keyshortcuts` on every control that has a shortcut, next to the visible label. | | `injectAppHotkeys()` | Get a signal of the declared app hotkeys with the user's custom hotkeys applied. | | `injectAppHotkeyList()` | Get a signal listing every app hotkey with its status, for a cheat sheet or settings screen. | | `injectCustomHotkeys()` | Read, change, and reset the user's custom hotkeys, and check a new one for conflicts. | @@ -78,7 +79,7 @@ export class PanelComponent { | `injectHeldKeys()` | Get a signal of every key that's held right now. | | `injectHeldKeyCodes()` | Get a signal mapping each held key to its physical `event.code`. | -The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `injectFormatForDisplay()` in an injection context. Outside an injection context, call the plain function and pass `platform`. +The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `injectFormatForDisplay()` in an injection context. Outside an injection context, call the plain function and pass `platform`. The plain `formatForAria` export is deprecated the same way, in favor of `injectFormatForAria()`. No provider is required. Call the inject functions in a constructor or field initializer. diff --git a/packages/angular-hotkeys/src/formatForAria.ts b/packages/angular-hotkeys/src/formatForAria.ts new file mode 100644 index 000000000..2aaec387a --- /dev/null +++ b/packages/angular-hotkeys/src/formatForAria.ts @@ -0,0 +1,12 @@ +import { formatForAria as coreFormatForAria } from '@tanstack/hotkeys' + +/** + * Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or + * the user's keyboard layout. + * + * @deprecated Use `injectFormatForAria()` in an injection context, such as a + * component's field initializer. It returns this function with the provider's + * platform and the user's keyboard layout filled in. Outside an injection + * context, keep calling this function and pass `platform` yourself. + */ +export const formatForAria: typeof coreFormatForAria = coreFormatForAria diff --git a/packages/angular-hotkeys/src/hotkeys-provider.ts b/packages/angular-hotkeys/src/hotkeys-provider.ts index ccd8424ce..74be18ece 100644 --- a/packages/angular-hotkeys/src/hotkeys-provider.ts +++ b/packages/angular-hotkeys/src/hotkeys-provider.ts @@ -9,7 +9,7 @@ import { signal, untracked, } from '@angular/core' -import { publishAppHotkeysStore } from '@tanstack/hotkeys' +import { getHotkeyManager, publishAppHotkeysStore } from '@tanstack/hotkeys' import { activateHotkeysProviderScope, createAppHotkeysStore, @@ -65,7 +65,7 @@ export interface ProvideHotkeysOptions { defaultOptions?: MaybeGetter /** * See `HotkeysProviderScopeProps['scope']`. Getters, here and for - * `exclusive` and `enabled`, run in the provider's injection context, so + * `exclusive`, `enabled`, and `suspendCharacterKeys`, run in the provider's injection context, so * they can `inject()` the component that provides them and read its * signals. */ @@ -74,6 +74,10 @@ export interface ProvideHotkeysOptions { exclusive?: MaybeGetter /** See `HotkeysProviderScopeProps['enabled']`. */ enabled?: MaybeGetter + /** See `HotkeysProviderScopeProps['suspendCharacterKeys']`. */ + suspendCharacterKeys?: MaybeGetter< + HotkeysProviderScopeProps['suspendCharacterKeys'] + > /** * Every app hotkey, from `defineAppHotkeys`. Listed by * `injectAppHotkeyList` whether or not they are registered. @@ -196,6 +200,12 @@ function createHotkeysContext( const key = scopeKey() if (key) onCleanup(activateHotkeysProviderScope(key)) }) + // Suspend character key shortcuts while this injector lives, as the + // user's setting asks. + const suspend = computed(() => !!read(options.suspendCharacterKeys)) + effect((onCleanup) => { + if (suspend()) onCleanup(getHotkeyManager().suspendCharacterKeys()) + }) } return { diff --git a/packages/angular-hotkeys/src/index.ts b/packages/angular-hotkeys/src/index.ts index 351543cb4..e23987285 100644 --- a/packages/angular-hotkeys/src/index.ts +++ b/packages/angular-hotkeys/src/index.ts @@ -16,6 +16,8 @@ export * from './injectHotkeyScopesState' export * from './injectHotkeyHint' export * from './injectAppHotkeys' export * from './injectFormatForDisplay' +export * from './injectFormatForAria' // Replaces the core export, to point components to `injectFormatForDisplay` export { formatForDisplay } from './formatForDisplay' +export { formatForAria } from './formatForAria' export * from './injectKeyboardLayout' diff --git a/packages/angular-hotkeys/src/injectFormatForAria.ts b/packages/angular-hotkeys/src/injectFormatForAria.ts new file mode 100644 index 000000000..fca259ec4 --- /dev/null +++ b/packages/angular-hotkeys/src/injectFormatForAria.ts @@ -0,0 +1,46 @@ +import { formatForAria } from '@tanstack/hotkeys' +import { createFormatter } from '@tanstack/hotkeys/adapter' +import { injectHotkeysContext } from './hotkeys-provider' +import { injectKeyboardLayout } from './injectKeyboardLayout' + +/** + * Returns `formatForAria` with the provider's `platform` as the default. Use + * its value for `aria-keyshortcuts`, so screen readers announce the shortcut. + * It returns `undefined` for a multi-step sequence or no hotkey, so an + * `[attr.aria-keyshortcuts]` binding omits the attribute. Call it in an + * injection context, such as a field initializer; the returned function works + * anywhere, including templates. An explicit `platform` option wins. + * + * Physical bindings such as `[KeyQ]` name the key the user presses in + * Chromium browsers, once the keyboard layout has loaded, and templates + * update when it arrives. See `injectKeyboardLayout`. A `layoutMap` passed to + * the returned function wins. + * + * Server-rendered apps should set the provider's `defaultOptions.platform` + * from the request user agent, such as + * `detectPlatform(inject(REQUEST)?.headers.get('user-agent'))`. + * + * @example + * ```ts + * @Component({ + * selector: 'app-search-button', + * template: ` + * + * `, + * }) + * export class SearchButton { + * formatForAria = injectFormatForAria() + * } + * ``` + */ +export function injectFormatForAria(): typeof formatForAria { + const context = injectHotkeysContext() + const layoutMap = injectKeyboardLayout() + // Read when called, so templates track changes to the provider's platform + // and to the layout. Only a physical key reads the layout. + return createFormatter( + formatForAria, + () => context.defaultOptions.platform, + () => layoutMap(), + ) +} diff --git a/packages/angular-hotkeys/tests/conformance.test.ts b/packages/angular-hotkeys/tests/conformance.test.ts index dc1e34e45..6619b87d9 100644 --- a/packages/angular-hotkeys/tests/conformance.test.ts +++ b/packages/angular-hotkeys/tests/conformance.test.ts @@ -18,6 +18,7 @@ import { } from '@tanstack/hotkeys-test-utils/conformance' import { vitestRunner } from '@tanstack/hotkeys-test-utils/conformance/vitest' import { provideHotkeys } from '../src/hotkeys-provider' +import { injectFormatForAria } from '../src/injectFormatForAria' import { injectFormatForDisplay } from '../src/injectFormatForDisplay' import { injectHeldKeyCodes } from '../src/injectHeldKeyCodes' import { injectHeldKeys } from '../src/injectHeldKeys' @@ -32,6 +33,7 @@ import type { ComponentFixture } from '@angular/core/testing' import type { IndividualKey, RegisterableHotkey, + formatForAria, formatForDisplay, } from '@tanstack/hotkeys' import type { @@ -100,6 +102,7 @@ function hotkeysProvider( scope: () => provider()?.scope, enabled: () => provider()?.enabled, exclusive: () => provider()?.exclusive, + suspendCharacterKeys: () => provider()?.suspendCharacterKeys, customHotkeys: () => provider()?.customHotkeys as never, defaultOptions: () => ({ platform: provider()?.platform, @@ -300,6 +303,7 @@ const harness: ConformanceHarness = { mountFormat({ platform }) { class FormatView { readonly format: typeof formatForDisplay = injectFormatForDisplay() + readonly formatAria: typeof formatForAria = injectFormatForAria() } const provider = platform ? { platform } : undefined const fixture = create(FormatView, { @@ -309,6 +313,8 @@ const harness: ConformanceHarness = { return { format: (hotkey, formatOptions) => fixture.componentInstance.format(hotkey, formatOptions), + formatAria: (hotkey, options) => + fixture.componentInstance.formatAria(hotkey, options), unmount: destroy(fixture), } }, diff --git a/packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md b/packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md index b3e269a8a..e7a8db256 100644 --- a/packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md +++ b/packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md @@ -63,6 +63,7 @@ export default class Editor extends Component { | `{{onHotkeys definitions}}` | Attach several hotkeys to one element. | | `createHotkeysScope(defaults?)` | Create `useHotkey`, `useHotkeys`, `onHotkey`, and `onHotkeys` that share default options. | | `useFormatForDisplay(scope?)` | Get the function that formats a hotkey as a label, with the scope's `platform` and the user's keyboard layout filled in. Only Chromium browsers report a layout, so physical keys keep their US labels in Firefox and Safari. Use it for every label in a component: `formatForDisplay = useFormatForDisplay()` as a class field, then `{{this.formatForDisplay hotkey}}`. | +| `useFormatForAria(scope?)` | Get the function that formats a hotkey for `aria-keyshortcuts`, with the scope's `platform` and the user's keyboard layout filled in. Returns `undefined` for a multi-step sequence or no hotkey, so the attribute is omitted. Set `aria-keyshortcuts` on every control that has a shortcut, next to the visible label. | | `provideAppHotkeys(appHotkeys, options?)` | Declare app hotkeys and load the user's custom hotkeys before the app boots, since Ember has no provider. | | `getHotkeyManager().activateScope(scope, options?)` | Turn on a scope, such as an exclusive one for a dialog; it returns the function that turns the scope off. | | `useAppHotkeys(this)` | Get the declared app hotkeys with the user's custom hotkeys applied. | @@ -76,7 +77,7 @@ export default class Editor extends Component { | `useHeldKeys(this)` | Get every key that's held right now. | | `useHeldKeyCodes(this)` | Map each held key to its physical `event.code`. | -The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `useFormatForDisplay()` in components. Outside a component, call the plain function and pass `platform`. +The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `useFormatForDisplay()` in components. Outside a component, call the plain function and pass `platform`. The plain `formatForAria` export is deprecated the same way, in favor of `useFormatForAria()`. The helpers are template helpers, not JavaScript functions. State readers take the component as their owner, and their state is read through `.value`, or `.hotkeys` for registrations. Use Ember 4.12 or newer and strict-mode `.gts` components. diff --git a/packages/ember-hotkeys/src/_formatter.ts b/packages/ember-hotkeys/src/_formatter.ts new file mode 100644 index 000000000..e242d363c --- /dev/null +++ b/packages/ember-hotkeys/src/_formatter.ts @@ -0,0 +1,41 @@ +import { createFormatter } from '@tanstack/hotkeys/adapter' +import { + layoutEnabled, + requestLayout, + trackedLayout, + untilRendered, +} from './keyboardLayout' +import { scopeDefaults } from './utils' +import type { EmberHotkeysScope } from './createHotkeysScope' + +/** + * `format`, such as `formatForDisplay`, bound to the scope's `platform` and the + * keyboard layout. The layout loads after the render in which the formatter + * first reads it, unless the scope sets `keyboardLayout: false`. + */ +export function bindFormatter< + TFormat extends Parameters[0], +>(format: TFormat, scope: EmberHotkeysScope | undefined): TFormat { + const layoutMap = untilRendered(trackedLayout) + let requested = false + /** The loaded layout, unless the scope turns it off. */ + const loadedLayout = () => { + if (!layoutEnabled(scope)) { + requested = false + return undefined + } + // Formatting the first value is what loads the layout. + if (!requested) { + requested = true + requestLayout() + } + return layoutMap() ?? undefined + } + // Only a position's value reads the layout, so other values don't render + // again when it loads. + return createFormatter( + format, + () => scope && scopeDefaults.get(scope)!().platform, + loadedLayout, + ) +} diff --git a/packages/ember-hotkeys/src/formatForAria.ts b/packages/ember-hotkeys/src/formatForAria.ts new file mode 100644 index 000000000..766010c65 --- /dev/null +++ b/packages/ember-hotkeys/src/formatForAria.ts @@ -0,0 +1,11 @@ +import { formatForAria as coreFormatForAria } from '@tanstack/hotkeys' + +/** + * Formats a hotkey for `aria-keyshortcuts`, without the scope's platform or the + * user's keyboard layout. + * + * @deprecated Use `useFormatForAria()` in components. It returns this + * function with the scope's platform and the user's keyboard layout filled in. + * Outside a component, keep calling this function and pass `platform` yourself. + */ +export const formatForAria: typeof coreFormatForAria = coreFormatForAria diff --git a/packages/ember-hotkeys/src/index.ts b/packages/ember-hotkeys/src/index.ts index 45d05563f..78bca2dba 100644 --- a/packages/ember-hotkeys/src/index.ts +++ b/packages/ember-hotkeys/src/index.ts @@ -11,8 +11,10 @@ export * from './useHotkeyScopesState' export * from './useHotkeyRecorder' export * from './useAppHotkeys' export * from './useFormatForDisplay' +export * from './useFormatForAria' // Replaces the core export, to point components to the utility export { formatForDisplay } from './formatForDisplay' +export { formatForAria } from './formatForAria' export * from './useKeyboardLayout' export * from './types' diff --git a/packages/ember-hotkeys/src/useFormatForAria.ts b/packages/ember-hotkeys/src/useFormatForAria.ts new file mode 100644 index 000000000..40d016541 --- /dev/null +++ b/packages/ember-hotkeys/src/useFormatForAria.ts @@ -0,0 +1,39 @@ +import { formatForAria } from '@tanstack/hotkeys' +import { bindFormatter } from './_formatter' +import type { EmberHotkeysScope } from './createHotkeysScope' + +/** + * Returns `formatForAria` with the scope's `platform` as the default. Use its + * value for `aria-keyshortcuts`, so screen readers announce the shortcut. It + * returns `undefined` for a multi-step sequence or no hotkey, so Glimmer omits + * the attribute. The returned function works anywhere, including templates, + * and reads the scope's defaults when called. An explicit `platform` option + * wins. + * + * Physical bindings such as `[KeyQ]` name the key the user presses in + * Chromium browsers, once the keyboard layout has loaded, the same way as + * `useFormatForDisplay`. A `layoutMap` passed to the returned function wins. + * To never ask the browser for the layout, set `keyboardLayout: false` in the + * scope's default options. + * + * Server-rendered apps should set the scope's default `platform` from the + * request user agent, such as + * `detectPlatform(fastboot.request.headers.get('user-agent'))` with the + * FastBoot service. + * + * @example + * ```gts + * class SearchButton extends Component<{ Args: { hotkeys: EmberHotkeysScope } }> { + * formatForAria = useFormatForAria(this.args.hotkeys) + * + * + * } + * ``` + */ +export function useFormatForAria( + scope?: EmberHotkeysScope, +): typeof formatForAria { + return bindFormatter(formatForAria, scope) +} diff --git a/packages/ember-hotkeys/src/useFormatForDisplay.ts b/packages/ember-hotkeys/src/useFormatForDisplay.ts index 46942f57b..71fbb4df0 100644 --- a/packages/ember-hotkeys/src/useFormatForDisplay.ts +++ b/packages/ember-hotkeys/src/useFormatForDisplay.ts @@ -1,12 +1,5 @@ -import { createFormatForDisplay } from '@tanstack/hotkeys/adapter' -import { - layoutEnabled, - requestLayout, - trackedLayout, - untilRendered, -} from './keyboardLayout' -import { scopeDefaults } from './utils' -import type { formatForDisplay } from '@tanstack/hotkeys' +import { formatForDisplay } from '@tanstack/hotkeys' +import { bindFormatter } from './_formatter' import type { EmberHotkeysScope } from './createHotkeysScope' /** @@ -42,25 +35,5 @@ import type { EmberHotkeysScope } from './createHotkeysScope' export function useFormatForDisplay( scope?: EmberHotkeysScope, ): typeof formatForDisplay { - const layoutMap = untilRendered(trackedLayout) - let requested = false - /** The loaded layout, unless the scope turns it off. */ - const loadedLayout = () => { - if (!layoutEnabled(scope)) { - requested = false - return undefined - } - // Formatting the first label is what loads the layout. - if (!requested) { - requested = true - requestLayout() - } - return layoutMap() ?? undefined - } - // Only a position's label reads the layout, so other labels don't render - // again when it loads. - return createFormatForDisplay( - () => scope && scopeDefaults.get(scope)!().platform, - loadedLayout, - ) + return bindFormatter(formatForDisplay, scope) } diff --git a/packages/ember-hotkeys/tests/integration/conformance.test.gts b/packages/ember-hotkeys/tests/integration/conformance.test.gts index 2d8d1dc59..ced040435 100644 --- a/packages/ember-hotkeys/tests/integration/conformance.test.gts +++ b/packages/ember-hotkeys/tests/integration/conformance.test.gts @@ -10,7 +10,7 @@ import { } from '@tanstack/hotkeys-test-utils/conformance' import { createHotkeysScope, onHotkey, onHotkeys, provideAppHotkeys, - useFormatForDisplay, useHeldKeyCodes, useHeldKeys, useHotkey, useHotkeyHint, + useFormatForAria, useFormatForDisplay, useHeldKeyCodes, useHeldKeys, useHotkey, useHotkeyHint, useHotkeyRecorder, useHotkeyRegistrations, useHotkeys, useKeyHold, } from '@tanstack/ember-hotkeys' import type { @@ -265,8 +265,14 @@ const harness: ConformanceHarness = { }, mountFormat({ platform }) { - const format = useFormatForDisplay(platform ? createHotkeysScope({ platform }) : undefined) - return { format: (hotkey, options) => format(hotkey, options ?? {}), unmount: () => {} } + const scope = platform ? createHotkeysScope({ platform }) : undefined + const format = useFormatForDisplay(scope) + const formatAria = useFormatForAria(scope) + return { + format: (hotkey, options) => format(hotkey, options ?? {}), + formatAria: (hotkey, options) => formatAria(hotkey, options), + unmount: () => {}, + } }, } diff --git a/packages/hotkeys-devtools/src/HotkeysContextProvider.tsx b/packages/hotkeys-devtools/src/HotkeysContextProvider.tsx index 75347d087..9ce7e06ba 100644 --- a/packages/hotkeys-devtools/src/HotkeysContextProvider.tsx +++ b/packages/hotkeys-devtools/src/HotkeysContextProvider.tsx @@ -41,7 +41,13 @@ interface HotkeysDevtoolsContextType { const HotkeysDevtoolsContext = createContext({ registrations: () => [], appHotkeys: () => [], - scopes: () => ({ active: [], exclusive: null, allowed: [], suspended: [] }), + scopes: () => ({ + active: [], + exclusive: null, + allowed: [], + suspended: [], + characterKeysSuspended: false, + }), heldKeys: () => [], heldCodes: () => ({}), sequenceProgressNow: () => Date.now(), diff --git a/packages/hotkeys-devtools/tests/scopes.test.ts b/packages/hotkeys-devtools/tests/scopes.test.ts index acbdd1b14..c073670ac 100644 --- a/packages/hotkeys-devtools/tests/scopes.test.ts +++ b/packages/hotkeys-devtools/tests/scopes.test.ts @@ -21,6 +21,7 @@ describe('devtools scopes', () => { exclusive: null, allowed: [], suspended: [], + characterKeysSuspended: false, }) expect( groups.map((g) => [g.scope, g.status, g.registrations.length]), @@ -38,6 +39,7 @@ describe('devtools scopes', () => { exclusive: 'dialog', allowed: [], suspended: ['global', 'editor'], + characterKeysSuspended: false, } expect(groupByScope(registrations, state).map((g) => g.status)).toEqual([ 'exclusive', @@ -54,6 +56,7 @@ describe('devtools scopes', () => { exclusive: 'dialog', allowed: ['global'], suspended: ['editor'], + characterKeysSuspended: false, } expect( groupByScope(registrations, state).map((g) => [g.scope, g.status]), diff --git a/packages/hotkeys/skills/hotkeys-core/SKILL.md b/packages/hotkeys/skills/hotkeys-core/SKILL.md index c7367d67d..f1cea989f 100644 --- a/packages/hotkeys/skills/hotkeys-core/SKILL.md +++ b/packages/hotkeys/skills/hotkeys-core/SKILL.md @@ -30,16 +30,18 @@ The library owns the keyboard. Register every shortcut with your framework adapt ## Use the library instead of rebuilding it -| Instead of | Use | -| --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| A `keydown` listener that checks `event.key`, `metaKey`, or `ctrlKey` | A registered hotkey such as `'Mod+S'`. Inside a widget's own key handler, `matchesKeyboardEvent(event, 'Mod+Enter')`. | -| `isMac` checks and `⌘`/`Ctrl` label maps | `Mod` in the hotkey, and the adapter's label primitive, such as `useFormatForDisplay()`, for labels of hotkeys and of held keys as `{ key }` | -| Skipping events from text fields, calling `preventDefault` | The defaults: single keys and Shift/Alt chords are skipped while typing, `Mod` chords, `Escape`, function keys, and media keys still fire, and matched keys are prevented | -| A shortcut registry, service, context, or wrapper hook | The adapter API, called where each action lives. For one list of every shortcut, load `@tanstack/hotkeys#app-hotkeys`. | -| A "shortcuts enabled" flag or topmost-dialog tracking | Scopes, with `exclusive` for dialogs | -| A hand-written shortcut list for a help dialog | `meta: { name }` and the adapter's registrations list, or app hotkeys | -| `keydown`/`keyup` state that tracks held keys | The adapter's held-key and hint APIs | -| Capturing the next key press for a settings screen | The adapter's recorder | +| Instead of | Use | +| -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| A `keydown` listener that checks `event.key`, `metaKey`, or `ctrlKey` | A registered hotkey such as `'Mod+S'`. Inside a widget's own key handler, `matchesKeyboardEvent(event, 'Mod+Enter')`. | +| `isMac` checks and `⌘`/`Ctrl` label maps | `Mod` in the hotkey, and the adapter's label primitive, such as `useFormatForDisplay()`, for labels of hotkeys and of held keys as `{ key }` | +| A hand-written `aria-keyshortcuts` value such as `Control+K Meta+K` | The adapter's ARIA formatter, such as `useFormatForAria()`, so the value follows the platform and the user's custom hotkey | +| A "single-key shortcuts" setting that sets `enabled: false` on each hotkey | `suspendCharacterKeys` on the root provider, or `getHotkeyManager().suspendCharacterKeys()`, which suspends every character key shortcut and keeps modifier shortcuts and element hotkeys working | +| Skipping events from text fields, calling `preventDefault` | The defaults: single keys and Shift/Alt chords are skipped while typing, `Mod` chords, `Escape`, function keys, and media keys still fire, and matched keys are prevented | +| A shortcut registry, service, context, or wrapper hook | The adapter API, called where each action lives. For one list of every shortcut, load `@tanstack/hotkeys#app-hotkeys`. | +| A "shortcuts enabled" flag or topmost-dialog tracking | Scopes, with `exclusive` for dialogs | +| A hand-written shortcut list for a help dialog | `meta: { name }` and the adapter's registrations list, or app hotkeys | +| `keydown`/`keyup` state that tracks held keys | The adapter's held-key and hint APIs | +| Capturing the next key press for a settings screen | The adapter's recorder | A workaround loses what the library tracks: scopes stop suspending it, recorders stop pausing it, devtools stop listing it, and layout and platform handling disappear. @@ -71,7 +73,7 @@ When nesting scopes, stacking dialogs, or keeping some hotkeys working during an - Use a global `Escape` only for actions that apply when nothing is open, such as clearing a selection. Turn it off with `enabled: !open`, or give the overlay an exclusive scope, while an overlay without focus inside or without one of these roles is open. Keep its default `preventDefault`: with `'always'`, it still prevents Escape while it's off, and an overlay that checks `defaultPrevented` stays open. - Keep `Escape` out of page-section scopes and sequences. While focus is in a `role="dialog"` or `"alertdialog"` element, any hotkey in a named scope keeps Escape, whatever its target, so a section's `Escape` takes it from a library's dialog. An open combobox or menu inside the dialog still closes first, and native dialogs and popovers get Escape before every hotkey outside them, whatever its scope. - **Libraries that prevent keys first.** For keys other than Escape that libraries such as Radix UI handle and prevent before the hotkey runs, set `ignoreDefaultPrevented: true` in the adapter's shared defaults (on each hotkey in Lit). -- **Single-character shortcuts need an off switch.** For WCAG 2.1.4, `K`, `?`, and `['G', 'H']` need a user setting passed as `enabled`, or an app hotkey users can remap. +- **Single-character shortcuts need an off switch.** For WCAG 2.1.4, `K`, `?`, and `['G', 'H']` need a user setting that turns them off with `suspendCharacterKeys`, or an app hotkey users can remap. - **react-hotkeys-hook names don't carry over.** `useHotkeys` and `HotkeysProvider` share names, not signatures: there's no dependency array, `preventDefault` is on by default, and sequences are arrays. Remove the old library, so two libraries don't handle the same keys. - **Install only the adapter.** A separately installed `@tanstack/hotkeys` at another version is a second copy, and scopes don't apply across copies. - **A changed array or element in `meta` doesn't re-render lists on its own.** Registration lists re-render when a new `meta` changes a string, number, or boolean field. Editing a `meta` object already passed doesn't. A new array, object, element, or function replaces the old one without re-rendering them, which is what lets `meta` be written inline. To show a changed icon or keyword list, also change a primitive field. diff --git a/packages/hotkeys/src/_constants.ts b/packages/hotkeys/src/_constants.ts new file mode 100644 index 000000000..dba992d6b --- /dev/null +++ b/packages/hotkeys/src/_constants.ts @@ -0,0 +1,259 @@ +// Constants that the core uses internally. Public constants live in +// `constants.ts` and `display-labels.ts`, which `index.ts` exports. Keep each +// table here, so code that needs the same facts reuses one copy. + +import type { HotkeyRecorderState } from './hotkey-recorder' +import type { ConflictBehavior } from './hotkey.types' + +// Scopes and registration defaults + +/** The scope of hotkeys that do not name one. It is always active unless an exclusive scope is active. */ +export const GLOBAL_SCOPE = 'global' + +/** + * Default options for hotkey/sequence registration. + * Omitted: platform, target (resolved at registration), requireReset (HotkeyManager only). + */ +export const defaultHotkeyOptions = { + capture: false, + preventDefault: true, + stopPropagation: true, + eventType: 'keydown' as const, + enabled: true, + ignoreInputs: 'auto' as const, + conflictBehavior: 'warn' as ConflictBehavior, + scope: GLOBAL_SCOPE as string, +} + +// Named keys + +/** Names defined for both KeyboardEvent.key and KeyboardEvent.code, beyond the basic key groups. */ +export const SHARED_NAMED_KEYS = [ + 'CapsLock', + 'ContextMenu', + 'Convert', + 'KanaMode', + 'NonConvert', + 'Help', + 'Insert', + 'NumLock', + 'Fn', + 'FnLock', + 'PrintScreen', + 'ScrollLock', + 'Pause', + 'BrowserBack', + 'BrowserFavorites', + 'BrowserForward', + 'BrowserHome', + 'BrowserRefresh', + 'BrowserSearch', + 'BrowserStop', + 'Eject', + 'LaunchMail', + 'MediaPlayPause', + 'MediaStop', + 'MediaTrackNext', + 'MediaTrackPrevious', + 'Power', + 'AudioVolumeDown', + 'AudioVolumeMute', + 'AudioVolumeUp', + 'WakeUp', + 'Hyper', + 'Super', + 'Again', + 'Copy', + 'Cut', + 'Find', + 'Open', + 'Paste', + 'Props', + 'Select', + 'Undo', + 'Hiragana', + 'Katakana', +] as const + +/** Logical counterparts whose physical positions use different names (for example Sleep and Lang1). */ +export const LOGICAL_ONLY_NAMED_KEYS = [ + 'Clear', + 'Cancel', + 'Standby', + 'LaunchApplication1', + 'LaunchApplication2', + 'LaunchMediaPlayer', + 'HangulMode', + 'HanjaMode', + 'Zenkaku', + 'Hankaku', + 'ZenkakuHankaku', +] as const + +// Physical codes + +/** + * Physical codes, other than letters, digits, and punctuation, that the + * logical matcher falls back to: the numpad operators, the numpad Enter, and + * the space bar. Matching depends on this list, so a code added here starts + * matching a logical key. + */ +export const NAMED_CODE_KEYS: Readonly> = { + NumpadAdd: '+', + NumpadSubtract: '-', + NumpadMultiply: '*', + NumpadDivide: '/', + NumpadDecimal: '.', + NumpadEnter: 'Enter', + Space: 'Space', +} + +/** + * Fallback labels for keys with no US equivalent, from the legends the UI + * Events code spec gives: `\` on UK ISO keyboards, and `\` (ろ) and `¥` on + * Japanese keyboards. `formatForDisplay` and `formatForAria` use them; + * matching never does. + */ +export const INTL_KEY_LABELS: Readonly> = { + IntlBackslash: '\\', + IntlRo: '\\', + IntlYen: '¥', +} + +/** + * Numpad codes whose key value differs from the code name, beyond the digits + * and `NAMED_CODE_KEYS`. `formatForAria` names them, and character-key + * suspension treats the ones that type a character as character keys. They + * stay out of `NAMED_CODE_KEYS`, so a logical `(` hotkey doesn't start + * matching `[NumpadParenLeft]`. + */ +export const NUMPAD_KEY_VALUES: Readonly> = { + NumpadBackspace: 'Backspace', + NumpadClear: 'Clear', + NumpadComma: ',', + NumpadEqual: '=', + NumpadHash: '#', + NumpadParenLeft: '(', + NumpadParenRight: ')', + NumpadStar: '*', +} + +/** + * Codes that are not also key values, such as `NumpadMemoryAdd` or `Lang1`. + * Every other supported code, such as `Enter` or `F1`, names its key. + */ +export const CODE_ONLY_NAMES = + /^(?:Numpad\w*|Lang\d|LaunchApp\d|MediaSelect|Sleep|Turbo|Abort|Resume|Suspend)$/ + +// What keys type + +/** What US Shift types on each punctuation key, and the key itself. */ +export const US_SHIFTED = '~_+{}|:"<>?' +export const US_UNSHIFTED = "`-=[]\\;',./" + +/** + * Function keys (`F1` to `F24`) and media keys: the audio, browser, launch, + * and playback keys. They type nothing, and a text field does nothing with them. + */ +export const NON_TYPING_KEY = + /^(F([1-9]|1\d|2[0-4])$|Audio|Browser|Launch|Media)/ + +// Keys that focused controls use themselves + +// Plain array literals, not spreads, so bundlers can drop lists a build doesn't use +export const VERTICAL_KEYS = ['ArrowUp', 'ArrowDown'] +export const HORIZONTAL_KEYS = ['ArrowLeft', 'ArrowRight'] +export const ENTER_KEYS = ['Enter'] +export const SPACE_KEYS = ['Space'] +export const ACTIVATION_KEYS = ['Enter', 'Space'] +// Marks widgets that move focus to the item starting with a typed character +export const TYPEAHEAD = 'typeahead' +export const MENU_KEYS = [ + 'ArrowUp', + 'ArrowDown', + 'ArrowLeft', + 'ArrowRight', + 'Home', + 'End', + 'Enter', + 'Space', + TYPEAHEAD, +] +export const COMBOBOX_KEYS = [ + 'ArrowUp', + 'ArrowDown', + 'Home', + 'End', + 'Enter', + 'Space', + TYPEAHEAD, +] +export const GRID_KEYS = [ + 'ArrowUp', + 'ArrowDown', + 'ArrowLeft', + 'ArrowRight', + 'Home', + 'End', + 'PageUp', + 'PageDown', + 'Enter', + 'Space', +] +export const RADIO_KEYS = [ + 'ArrowUp', + 'ArrowDown', + 'ArrowLeft', + 'ArrowRight', + 'Space', +] +export const NAVIGATION_KEYS = [ + 'ArrowUp', + 'ArrowDown', + 'ArrowLeft', + 'ArrowRight', + 'Home', + 'End', + 'PageUp', + 'PageDown', +] +export const SPIN_KEYS = [ + 'ArrowUp', + 'ArrowDown', + 'Home', + 'End', + 'PageUp', + 'PageDown', +] +// Read-only text inputs still move the caret and select text +export const CARET_KEYS = ['ArrowLeft', 'ArrowRight', 'Home', 'End'] + +/** + * Input types that aren't text fields, with the keys each one keeps. Browsers + * report unknown types as `'text'`. + */ +export const INPUT_KEYS: Record | undefined> = { + button: ACTIVATION_KEYS, + submit: ACTIVATION_KEYS, + reset: ACTIVATION_KEYS, + image: ACTIVATION_KEYS, + color: ACTIVATION_KEYS, + file: ACTIVATION_KEYS, + checkbox: SPACE_KEYS, + radio: RADIO_KEYS, + range: NAVIGATION_KEYS, +} + +// Server detection + +// Server runtimes that define `navigator` describe the server, not the user. +export const SERVER_AGENT = /^(?:Node\.js\/|Deno\/|Bun\/|Cloudflare-Workers)/ + +// Recorder + +/** The recorder's state while it isn't recording and has recorded nothing. */ +export const INITIAL_RECORDER_STATE: HotkeyRecorderState = { + isRecording: false, + steps: [], + recordedHotkey: null, +} diff --git a/packages/hotkeys/src/_event-target.ts b/packages/hotkeys/src/_event-target.ts index 0a47eeb25..96a65cbce 100644 --- a/packages/hotkeys/src/_event-target.ts +++ b/packages/hotkeys/src/_event-target.ts @@ -1,3 +1,19 @@ +import { + ACTIVATION_KEYS, + CARET_KEYS, + COMBOBOX_KEYS, + ENTER_KEYS, + GRID_KEYS, + HORIZONTAL_KEYS, + INPUT_KEYS, + MENU_KEYS, + NAVIGATION_KEYS, + RADIO_KEYS, + SPACE_KEYS, + SPIN_KEYS, + TYPEAHEAD, + VERTICAL_KEYS, +} from './_constants' import { codeToLogicalKey } from './_keyboard-event' import { normalizeKeyName } from './constants' import type { Target } from './hotkey.types' @@ -65,77 +81,6 @@ export function targetHasFocus(target: Target): boolean { // What blocks a key -// Plain array literals, not spreads, so bundlers can drop lists a build doesn't use -const VERTICAL = ['ArrowUp', 'ArrowDown'] -const HORIZONTAL = ['ArrowLeft', 'ArrowRight'] -const ENTER = ['Enter'] -const SPACE = ['Space'] -const ACTIVATION = ['Enter', 'Space'] -// Marks widgets that move focus to the item starting with a typed character -const TYPEAHEAD = 'typeahead' -const MENU = [ - 'ArrowUp', - 'ArrowDown', - 'ArrowLeft', - 'ArrowRight', - 'Home', - 'End', - 'Enter', - 'Space', - TYPEAHEAD, -] -const COMBOBOX = [ - 'ArrowUp', - 'ArrowDown', - 'Home', - 'End', - 'Enter', - 'Space', - TYPEAHEAD, -] -const GRID = [ - 'ArrowUp', - 'ArrowDown', - 'ArrowLeft', - 'ArrowRight', - 'Home', - 'End', - 'PageUp', - 'PageDown', - 'Enter', - 'Space', -] -const RADIOS = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Space'] -const NAVIGATION = [ - 'ArrowUp', - 'ArrowDown', - 'ArrowLeft', - 'ArrowRight', - 'Home', - 'End', - 'PageUp', - 'PageDown', -] -const SPIN = ['ArrowUp', 'ArrowDown', 'Home', 'End', 'PageUp', 'PageDown'] -// Read-only text inputs still move the caret and select text -const CARET = ['ArrowLeft', 'ArrowRight', 'Home', 'End'] - -/** - * Input types that aren't text fields, with the keys each one keeps. Browsers - * report unknown types as `'text'`. - */ -const INPUT_KEYS: Record | undefined> = { - button: ACTIVATION, - submit: ACTIVATION, - reset: ACTIVATION, - image: ACTIVATION, - color: ACTIVATION, - file: ACTIVATION, - checkbox: SPACE, - radio: RADIOS, - range: NAVIGATION, -} - function getRole(element: Element): string | undefined { return element.getAttribute('role')?.trim().split(/\s+/)[0] } @@ -203,20 +148,20 @@ function getOwnedKeys(element: Element): ReadonlyArray { case 'menuitem': case 'menuitemcheckbox': case 'menuitemradio': - return ACTIVATION + return ACTIVATION_KEYS case 'link': - return ENTER + return ENTER_KEYS case 'checkbox': case 'switch': case 'radio': - return SPACE + return SPACE_KEYS case 'menu': case 'menubar': case 'tree': - return MENU + return MENU_KEYS case 'listbox': return [ - ...(orientation === 'horizontal' ? HORIZONTAL : VERTICAL), + ...(orientation === 'horizontal' ? HORIZONTAL_KEYS : VERTICAL_KEYS), 'Home', 'End', 'Enter', @@ -224,10 +169,10 @@ function getOwnedKeys(element: Element): ReadonlyArray { TYPEAHEAD, ] case 'combobox': - return COMBOBOX + return COMBOBOX_KEYS case 'tablist': return [ - ...(orientation === 'vertical' ? VERTICAL : HORIZONTAL), + ...(orientation === 'vertical' ? VERTICAL_KEYS : HORIZONTAL_KEYS), 'Home', 'End', 'Enter', @@ -235,34 +180,34 @@ function getOwnedKeys(element: Element): ReadonlyArray { ] case 'toolbar': return [ - ...(orientation === 'vertical' ? VERTICAL : HORIZONTAL), + ...(orientation === 'vertical' ? VERTICAL_KEYS : HORIZONTAL_KEYS), 'Home', 'End', ] case 'grid': case 'treegrid': - return GRID + return GRID_KEYS case 'radiogroup': - return RADIOS + return RADIO_KEYS case 'slider': - return NAVIGATION + return NAVIGATION_KEYS case 'spinbutton': - return SPIN + return SPIN_KEYS } switch (element.localName) { case 'button': case 'summary': - return ACTIVATION + return ACTIVATION_KEYS case 'input': // Only read-only text inputs aren't listed - return INPUT_KEYS[(element as HTMLInputElement).type] ?? CARET + return INPUT_KEYS[(element as HTMLInputElement).type] ?? CARET_KEYS case 'textarea': // Only read-only textareas - return NAVIGATION + return NAVIGATION_KEYS case 'a': case 'area': - return element.hasAttribute('href') ? ENTER : [] + return element.hasAttribute('href') ? ENTER_KEYS : [] } return [] } diff --git a/packages/hotkeys/src/_keyboard-event.ts b/packages/hotkeys/src/_keyboard-event.ts index bea261abe..3e916c115 100644 --- a/packages/hotkeys/src/_keyboard-event.ts +++ b/packages/hotkeys/src/_keyboard-event.ts @@ -1,4 +1,5 @@ import { isModifierCode, modifierAlias } from './_chord' +import { NAMED_CODE_KEYS } from './_constants' import { ownValue } from './_keys' import { PUNCTUATION_CODE_MAP, normalizeKeyName } from './constants' import type { NormalizedKeyboardEvent } from './key.types' @@ -123,16 +124,7 @@ export function codeToLogicalKey(code: string): string | undefined { const punctuation = ownValue(PUNCTUATION_CODE_MAP, code) if (punctuation !== undefined) return punctuation - const named: Record = { - NumpadAdd: '+', - NumpadSubtract: '-', - NumpadMultiply: '*', - NumpadDivide: '/', - NumpadDecimal: '.', - NumpadEnter: 'Enter', - Space: 'Space', - } - return ownValue(named, code) + return ownValue(NAMED_CODE_KEYS, code) } /** diff --git a/packages/hotkeys/src/_match.ts b/packages/hotkeys/src/_match.ts index d62dee836..88b5c75a6 100644 --- a/packages/hotkeys/src/_match.ts +++ b/packages/hotkeys/src/_match.ts @@ -1,3 +1,4 @@ +import { US_SHIFTED, US_UNSHIFTED } from './_constants' import { altGraphTypedCharacter, codeToLogicalKey, @@ -17,10 +18,6 @@ import type { ParsedHotkeyChord } from './hotkey.types' import type { KeyIdentity, NormalizedKeyboardEvent } from './key.types' import type { HotkeyPlatform } from './platform' -/** What US Shift types on each punctuation key, and the key itself. */ -export const US_SHIFTED = '~_+{}|:"<>?' -export const US_UNSHIFTED = "`-=[]\\;',./" - /** * How a key event matched a chord. The score ranks matches of one key press: * - 3: the exact code, or the exact key with Shift as the binding names it diff --git a/packages/hotkeys/src/_named-keys.ts b/packages/hotkeys/src/_named-keys.ts deleted file mode 100644 index 16f333a62..000000000 --- a/packages/hotkeys/src/_named-keys.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** Names defined for both KeyboardEvent.key and KeyboardEvent.code, beyond the basic key groups. */ -export const SHARED_NAMED_KEYS = [ - 'CapsLock', - 'ContextMenu', - 'Convert', - 'KanaMode', - 'NonConvert', - 'Help', - 'Insert', - 'NumLock', - 'Fn', - 'FnLock', - 'PrintScreen', - 'ScrollLock', - 'Pause', - 'BrowserBack', - 'BrowserFavorites', - 'BrowserForward', - 'BrowserHome', - 'BrowserRefresh', - 'BrowserSearch', - 'BrowserStop', - 'Eject', - 'LaunchMail', - 'MediaPlayPause', - 'MediaStop', - 'MediaTrackNext', - 'MediaTrackPrevious', - 'Power', - 'AudioVolumeDown', - 'AudioVolumeMute', - 'AudioVolumeUp', - 'WakeUp', - 'Hyper', - 'Super', - 'Again', - 'Copy', - 'Cut', - 'Find', - 'Open', - 'Paste', - 'Props', - 'Select', - 'Undo', - 'Hiragana', - 'Katakana', -] as const - -/** Logical counterparts whose physical positions use different names (for example Sleep and Lang1). */ -export const LOGICAL_ONLY_NAMED_KEYS = [ - 'Clear', - 'Cancel', - 'Standby', - 'LaunchApplication1', - 'LaunchApplication2', - 'LaunchMediaPlayer', - 'HangulMode', - 'HanjaMode', - 'Zenkaku', - 'Hankaku', - 'ZenkakuHankaku', -] as const diff --git a/packages/hotkeys/src/_recorder-chord.ts b/packages/hotkeys/src/_recorder-chord.ts index 9139bb819..86ee079c7 100644 --- a/packages/hotkeys/src/_recorder-chord.ts +++ b/packages/hotkeys/src/_recorder-chord.ts @@ -1,4 +1,5 @@ import { isCodeName, isKeyNameShape, isModifierCode } from './_chord' +import { US_SHIFTED, US_UNSHIFTED } from './_constants' import { altGraphTypedCharacter, codeToLogicalKey, @@ -7,7 +8,7 @@ import { normalizeKeyboardEvent, } from './_keyboard-event' import { isAsciiLetter, isLatinLetter, isPrintableKey } from './_keys' -import { US_SHIFTED, US_UNSHIFTED, matchKeyboardEvent } from './_match' +import { matchKeyboardEvent } from './_match' import { isSingleLetterKey } from './constants' import { normalizeHotkey, parseKeyboardEvent } from './parse' import type { RecorderKeyMode, RecorderRejection } from './hotkey-recorder' diff --git a/packages/hotkeys/src/_registration.ts b/packages/hotkeys/src/_registration.ts index 2c2e785f3..1ada0fe14 100644 --- a/packages/hotkeys/src/_registration.ts +++ b/packages/hotkeys/src/_registration.ts @@ -1,24 +1,9 @@ +import { NON_TYPING_KEY, NUMPAD_KEY_VALUES } from './_constants' import { canWarn } from './_dev' +import { codeToLogicalKey, isTypedText } from './_keyboard-event' +import { ownValue } from './_keys' import type { ConflictBehavior, ParsedHotkeyChord } from './hotkey.types' -/** The scope of hotkeys that do not name one. It is always active unless an exclusive scope is active. */ -export const GLOBAL_SCOPE = 'global' - -/** - * Default options for hotkey/sequence registration. - * Omitted: platform, target (resolved at registration), requireReset (HotkeyManager only). - */ -export const defaultHotkeyOptions = { - capture: false, - preventDefault: true, - stopPropagation: true, - eventType: 'keydown' as const, - enabled: true, - ignoreInputs: 'auto' as const, - conflictBehavior: 'warn' as ConflictBehavior, - scope: GLOBAL_SCOPE as string, -} - /** * Merges option layers left to right. A key set to `undefined` keeps the * earlier layer's value, so an unset option keeps its default. Getters are @@ -50,12 +35,6 @@ export function withDefaults( return { ...options, ...definedOptions(defaults, options) } } -/** - * Function keys (`F1` to `F24`) and media keys: the audio, browser, launch, - * and playback keys. They type nothing, and a text field does nothing with them. - */ -const NON_TYPING_KEY = /^(F([1-9]|1\d|2[0-4])$|Audio|Browser|Launch|Media)/ - /** * Resolves `ignoreInputs: 'auto'` from the hotkey (the first step of a sequence). * Ctrl/Meta shortcuts, Escape, function keys, and media keys fire in inputs, @@ -71,6 +50,34 @@ export function getDefaultIgnoreInputs( return true // Single keys, Shift+key, Alt+key } +/** Whether a key, or the key at a physical position, types a character. */ +function typesCharacter(chord: ParsedHotkeyChord): boolean { + // The extra ISO and JIS keys type characters, such as `\` and `¥`. + if (chord.code?.startsWith('Intl')) return true + const key = + chord.code === undefined + ? chord.key + : (codeToLogicalKey(chord.code) ?? + ownValue(NUMPAD_KEY_VALUES, chord.code)) + return key === 'Space' || (key !== undefined && isTypedText(key)) +} + +/** + * Whether a hotkey is a character key shortcut in the WCAG 2.1.4 sense: every + * step is a key that types a character (a letter, digit, punctuation mark, or + * symbol, or the space bar), alone or with Shift. Control, Alt, and Meta make + * a chord a modifier shortcut, and keys such as Escape, Enter, arrows, and F1 + * type nothing. + */ +export function isCharacterKeyShortcut( + steps: ReadonlyArray, +): boolean { + return steps.every( + (chord) => + !chord.ctrl && !chord.alt && !chord.meta && typesCharacter(chord), + ) +} + /** * Handles a registration that duplicates an existing one, based on conflict * behavior. Both registrations stay unless `'error'` throws. diff --git a/packages/hotkeys/src/_server.ts b/packages/hotkeys/src/_server.ts index a009f3046..facca2a27 100644 --- a/packages/hotkeys/src/_server.ts +++ b/packages/hotkeys/src/_server.ts @@ -1,8 +1,6 @@ +import { SERVER_AGENT } from './_constants' import { canWarn } from './_dev' -// Server runtimes that define `navigator` describe the server, not the user. -const SERVER_AGENT = /^(?:Node\.js\/|Deno\/|Bun\/|Cloudflare-Workers)/ - /** Whether this runs on a server: no `navigator`, or a server runtime's. */ export function isServerRuntime(): boolean { return ( diff --git a/packages/hotkeys/src/adapter.ts b/packages/hotkeys/src/adapter.ts index 9d7d32023..a27431d8b 100644 --- a/packages/hotkeys/src/adapter.ts +++ b/packages/hotkeys/src/adapter.ts @@ -19,8 +19,10 @@ import { // Stateless once loaded, apart from a collator created on first use, so a // copy per entry is fine. import { chordHasKey } from './_chord' +// Constants only, so a copy per entry is fine. +import { defaultHotkeyOptions } from './_constants' import { canWarn } from './_dev' -import { defaultHotkeyOptions, definedOptions } from './_registration' +import { definedOptions } from './_registration' // Stateless apart from a once-only dev warning, so a copy per entry is fine. import { warnServerPlatform } from './_server' import type { @@ -29,7 +31,7 @@ import type { CustomHotkeyActions, RegisteredAppHotkeys, } from './app-hotkeys' -import type { DisplayHotkey, FormatDisplayOptions } from './format' +import type { DisplayHotkey } from './format' import type { HeldModifierOptions } from './hint' import type { ActivateHotkeyScopeOptions, @@ -430,6 +432,18 @@ export interface HotkeysProviderScopeProps { * providers nested in it, without unmounting. Defaults to true. */ enabled?: boolean + /** + * While mounted, suspend document-level character key shortcuts across the + * app, including hotkeys such as `K`, `?`, `Shift+K`, `Space`, or + * `['G', 'H']` that use only keys that type a character. Wire this option to + * a user setting so people who use speech input or press keys by accident + * can turn single-key shortcuts off for WCAG 2.1.4 (Character Key + * Shortcuts). Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys + * such as `Escape` or `F1`, and hotkeys targeted at an element keep working. + * This option applies even when the provider sets `enabled` to `false`. See + * `HotkeyManager.suspendCharacterKeys`. Defaults to `false`. + */ + suspendCharacterKeys?: boolean } /** @@ -631,23 +645,56 @@ export function isHotkeyHintVisible( ) } +/** The options a formatter takes from its adapter: a platform and a layout. */ +interface FormatterOptions { + platform?: HotkeyPlatform + layoutMap?: { get: (code: string) => string | undefined } +} + /** - * A `formatForDisplay` that uses a provider's platform and keyboard layout - * when the call doesn't pass them. Only a label that names a physical key - * reads `getLayoutMap`, so other labels don't depend on the layout. + * Returns `format`, such as `formatForDisplay` or `formatForAria`, with a + * provider's platform and keyboard layout used when the call doesn't pass + * them. Only a hotkey that names a physical key reads `getLayoutMap`, so + * other hotkeys don't depend on the layout. + * + * @example + * ```ts + * const format = createFormatter(formatForAria, () => provider.platform, () => layoutMap) + * ``` */ -export function createFormatForDisplay( +export function createFormatter< + // eslint-disable-next-line @typescript-eslint/no-explicit-any -- each formatter's own hotkey and return types + TFormat extends (hotkey: any, options?: FormatterOptions) => unknown, +>( + format: TFormat, getPlatform: () => HotkeyPlatform | undefined, getLayoutMap: () => KeyboardLayoutMap | null | undefined, -): typeof formatForDisplay { - return ((hotkey: DisplayHotkey, options?: FormatDisplayOptions) => - formatForDisplay(hotkey, { +): TFormat { + return (( + hotkey: DisplayHotkey | null | undefined, + options?: FormatterOptions, + ) => + format(hotkey, { ...options, platform: options?.platform ?? getPlatform(), layoutMap: options?.layoutMap ?? - (namesPhysicalKey(hotkey) ? (getLayoutMap() ?? undefined) : undefined), - })) as typeof formatForDisplay + (hotkey && namesPhysicalKey(hotkey) + ? (getLayoutMap() ?? undefined) + : undefined), + })) as TFormat +} + +/** + * A `formatForDisplay` that uses a provider's platform and keyboard layout + * when the call doesn't pass them. Same as + * `createFormatter(formatForDisplay, getPlatform, getLayoutMap)`. + */ +export function createFormatForDisplay( + getPlatform: () => HotkeyPlatform | undefined, + getLayoutMap: () => KeyboardLayoutMap | null | undefined, +): typeof formatForDisplay { + return createFormatter(formatForDisplay, getPlatform, getLayoutMap) } /** diff --git a/packages/hotkeys/src/app-hotkeys.ts b/packages/hotkeys/src/app-hotkeys.ts index c0dc3b1b3..42b587cd5 100644 --- a/packages/hotkeys/src/app-hotkeys.ts +++ b/packages/hotkeys/src/app-hotkeys.ts @@ -1,8 +1,8 @@ import { setAppHotkeysStoreFactory } from './_app-hotkeys-factory' import { hotkeySteps } from './_chord' +import { GLOBAL_SCOPE } from './_constants' import { canWarn } from './_dev' import { ownValue } from './_keys' -import { GLOBAL_SCOPE } from './_registration' import { stepsOverlap } from './_steps' import { createStore } from './_store' import { getHotkeyManager } from './hotkey-manager' @@ -366,7 +366,8 @@ function hotkeysOverlap( /** * Status of an app hotkey in the running app. * - `'active'`: at least one enabled registration - * - `'suspended'`: has an enabled registration, but none in an active scope + * - `'suspended'`: has an enabled registration, but none can fire: its scope is + * inactive, or it is a character key shortcut while character keys are suspended * - `'disabled'`: registered, but every registration has `enabled: false` * - `'inactive'`: has a hotkey, but nothing has registered it * - `'unbound'`: no hotkey assigned diff --git a/packages/hotkeys/src/constants.ts b/packages/hotkeys/src/constants.ts index fc698c46b..34230f83f 100644 --- a/packages/hotkeys/src/constants.ts +++ b/packages/hotkeys/src/constants.ts @@ -152,3 +152,6 @@ export function normalizeKeyName(key: string): string { return key === ' ' ? 'Space' : key } + +/** Default timeout between sequence steps (in milliseconds). */ +export const DEFAULT_SEQUENCE_TIMEOUT = 1000 diff --git a/packages/hotkeys/src/format.ts b/packages/hotkeys/src/format.ts index 0160348e9..481d1e72b 100644 --- a/packages/hotkeys/src/format.ts +++ b/packages/hotkeys/src/format.ts @@ -1,9 +1,15 @@ import { assertLogicalKey, + chordHasKey, modifierAlias, physicalCodeOf, splitChordParts, } from './_chord' +import { + CODE_ONLY_NAMES, + INTL_KEY_LABELS, + NUMPAD_KEY_VALUES, +} from './_constants' import { codeToLogicalKey } from './_keyboard-event' import { ownValue } from './_keys' import { warnServerPlatform } from './_server' @@ -16,7 +22,7 @@ import { PUNCTUATION_KEY_DISPLAY_LABELS, WINDOWS_MODIFIER_LABELS, } from './display-labels' -import { normalizeHotkey } from './parse' +import { normalizeHotkey, parseHotkey } from './parse' import { detectPlatform } from './platform' import type { ParsedHotkeyChord, RegisterableHotkeyChord } from './hotkey.types' import type { CanonicalModifier } from './key.types' @@ -215,14 +221,16 @@ function formatChordParts( } /** - * Fallback labels for keys with no US equivalent, from the legends the UI - * Events code spec gives: `\` on UK ISO keyboards, and `\` (ろ) and `¥` on - * Japanese keyboards. Display only; matching never uses them. + * The key a layout map gives for a physical code, or undefined for a missing + * or empty entry. Layout entries are what the key types, so their case and + * whitespace names are normalized like event keys. */ -const INTL_KEY_LABELS: Readonly> = { - IntlBackslash: '\\', - IntlRo: '\\', - IntlYen: '¥', +function layoutKey( + code: string, + layoutMap: FormatDisplayOptions['layoutMap'], +): string | undefined { + const mapped = layoutMap?.get(code) + return mapped ? normalizeKeyName(mapped) : undefined } function formatKey( @@ -248,10 +256,9 @@ function formatKey( // Shorten conventional position labels for display only; stored identity is unchanged. const numpad = code?.startsWith('Numpad') ?? false let displayKey = code ?? segment - const mappedKey = code ? options.layoutMap?.get(code) : undefined + const mappedKey = code ? layoutKey(code, options.layoutMap) : undefined if (mappedKey) { - // Layout entries are logical labels; normalize their case and whitespace names. - displayKey = normalizeKeyName(mappedKey) + displayKey = mappedKey } else if (code) { // The extra ISO and JIS keys have no US key: use their keycap legends. const intl = ownValue(INTL_KEY_LABELS, code) @@ -297,3 +304,104 @@ export interface FormatDisplayOptions { /** Separator between sequence steps. Default: a space. */ sequenceSeparator?: string } + +/** Options for formatting a hotkey for `aria-keyshortcuts`. */ +export interface FormatAriaOptions { + /** + * The target platform, for resolving `Mod`. Without it, `formatForAria` + * detects the platform in the browser and uses `'linux'` on a server. + */ + platform?: HotkeyPlatform + /** + * An already-resolved code-to-key map, such as KeyboardLayoutMap or Map. + * Used only for physical bindings, to name the key the user presses. + * Missing or empty entries use the key at that position on a US keyboard. + */ + layoutMap?: { get: (code: string) => string | undefined } +} + +/** + * A key as `aria-keyshortcuts` names it, or undefined when it has no name + * there. The spec spells the plus key `Plus` and the space bar `Space`, + * because `+` and spaces separate its tokens. + */ +function ariaKeyName(key: string): string | undefined { + const name = normalizeKeyName(key) + if (name === '+') return 'Plus' + return name && !/\s/.test(name) ? name : undefined +} + +/** The key a physical code presses, for `aria-keyshortcuts`. */ +function ariaCodeName( + code: string, + layoutMap: FormatAriaOptions['layoutMap'], +): string | undefined { + const key = + layoutKey(code, layoutMap) ?? + ownValue(INTL_KEY_LABELS, code) ?? + codeToLogicalKey(code) ?? + ownValue(NUMPAD_KEY_VALUES, code) ?? + (CODE_ONLY_NAMES.test(code) ? undefined : code) + return key === undefined ? undefined : ariaKeyName(key) +} + +/** + * Formats a hotkey for an `aria-keyshortcuts` attribute so screen readers can + * announce the shortcut. `Mod+K` becomes `Meta+K` on macOS and `Control+K` + * elsewhere. + * + * Modifiers use the ARIA names (`Control`, `Alt`, `Shift`, `Meta`) and come + * before the key. Keys use `KeyboardEvent.key` values, such as `K`, `/`, + * `Escape`, or `ArrowUp`, with `Space` for the space bar and `Plus` for the + * plus key. A physical binding names the key at that position, so `[KeyQ]` + * becomes `Q`, or the key from `layoutMap` such as `A` on a French AZERTY + * keyboard. Logical punctuation stays as written, so `'?'` stays `?` even + * where it takes Shift to type. + * + * Returns `undefined` when the hotkey has no ARIA form, so the attribute is + * omitted. This applies to empty or `null` hotkeys, multi-step sequences, + * standalone modifiers, and physical codes with no key value such as + * `[NumpadMemoryAdd]`. A one-step sequence formats like its chord. + * + * For a control with two shortcuts, join both formatted values with a space. + * In a server-rendered app, use your adapter's formatter or pass `platform`. + * Without a `platform` option, `formatForAria` uses `'linux'` on the server, + * like `formatForDisplay`. + * + * @param hotkey - A hotkey string, raw object, parsed chord, or nothing + * @param options - The platform and keyboard layout + * @returns The attribute value, or `undefined` when there is none + * + * @example + * ```ts + * formatForAria('Mod+K', { platform: 'mac' }) // 'Meta+K' + * formatForAria('Mod+Shift+P', { platform: 'windows' }) // 'Control+Shift+P' + * formatForAria('Shift+Space') // 'Shift+Space' + * formatForAria(['G', 'H']) // undefined + * ``` + */ +export function formatForAria( + hotkey: DisplayHotkey | null | undefined, + options: FormatAriaOptions = {}, +): string | undefined { + if (!hotkey) return undefined + let chord: DisplayHotkeyChord + if (Array.isArray(hotkey)) { + // A sequence has no ARIA form: a shortcut is keys pressed together. + if (hotkey.length !== 1) return undefined + chord = (hotkey as ReadonlyArray)[0]! + } else { + chord = hotkey as DisplayHotkeyChord + } + const parsed = parseHotkey(chord, options.platform ?? detectDisplayPlatform()) + if (!chordHasKey(parsed)) return undefined + const key = + parsed.code !== undefined + ? ariaCodeName(parsed.code, options.layoutMap) + : ariaKeyName(parsed.key) + if (key === undefined) return undefined + return [ + ...MODIFIER_ORDER.filter((modifier) => parsed.modifiers.includes(modifier)), + key, + ].join('+') +} diff --git a/packages/hotkeys/src/hotkey-manager.ts b/packages/hotkeys/src/hotkey-manager.ts index c81d27cb0..8fdabb7bf 100644 --- a/packages/hotkeys/src/hotkey-manager.ts +++ b/packages/hotkeys/src/hotkey-manager.ts @@ -1,4 +1,5 @@ import { chordHasKey, isKeyNameShape, parsedStepsEqual } from './_chord' +import { GLOBAL_SCOPE, defaultHotkeyOptions } from './_constants' import { canWarn } from './_dev' import { getTargetDocument, @@ -13,18 +14,17 @@ import { managerRef } from './_manager-ref' import { matchKeyboardEvent } from './_match' import { isRecordingEvent, onRecordingStart } from './_recording-guard' import { - GLOBAL_SCOPE, - defaultHotkeyOptions, definedOptions, getDefaultIgnoreInputs, handleConflict, + isCharacterKeyShortcut, optionsEqual, } from './_registration' import { createStore } from './_store' import { TargetListeners } from './_target-listeners' -import { normalizeKeyName } from './constants' +import { DEFAULT_SEQUENCE_TIMEOUT, normalizeKeyName } from './constants' import { formatHotkey } from './format' -import { DEFAULT_SEQUENCE_TIMEOUT, areHotkeysEqual } from './match' +import { areHotkeysEqual } from './match' import { isHotkeySequence, parseHotkey, simplifyHotkey } from './parse' import { detectPlatform } from './platform' import type { KeyboardEventMatch } from './_match' @@ -234,7 +234,8 @@ export type HotkeyRegistration = * Whether a registration is on. Focus isn't checked: a registration on an * element also needs focus inside that element to fire. * - `'active'`: enabled, and its scope is active - * - `'suspended'`: enabled, but its scope is inactive or suspended by an exclusive scope + * - `'suspended'`: enabled, but its scope is inactive or suspended by an exclusive scope, + * or it is a character key shortcut while `suspendCharacterKeys` is in effect * - `'disabled'`: registered with `enabled: false` */ export type HotkeyRegistrationStatus = 'active' | 'suspended' | 'disabled' @@ -282,13 +283,23 @@ export interface HotkeyRegistrationsResult { readonly hotkeys: Array } -/** Whether a registration can fire now. Without a manager, scopes don't apply. */ +/** + * Whether a registration can fire now. Without a manager, scopes and + * character-key suspension don't apply. + */ function getRegistrationStatus( - options: HotkeyOptions, + registration: HotkeyRegistration, manager: HotkeyManager | null, ): HotkeyRegistrationStatus { + const { options } = registration if (options.enabled === false) return 'disabled' - return manager?.isScopeActive(options.scope) === false + return manager && + (!manager.isScopeActive(options.scope) || + // A hotkey on an element fires only while it has focus, which WCAG + // 2.1.4 already allows, so suspension leaves it alone. + (manager.scopes.state.characterKeysSuspended && + isDocumentLevel(registration.target) && + isCharacterKeyShortcut(resolvedSteps(registration)))) ? 'suspended' : 'active' } @@ -299,7 +310,7 @@ export function toHotkeyRegistrationView( ): HotkeyRegistrationView { const base = { id: reg.id, - status: getRegistrationStatus(reg.options, managerRef.current), + status: getRegistrationStatus(reg, managerRef.current), target: reg.target, triggerCount: reg.triggerCount, hasFired: reg.hasFired, @@ -515,6 +526,11 @@ export interface HotkeyScopesState { * exclusive, possibly including `'global'`. */ suspended: ReadonlyArray + /** + * Whether character key shortcuts, such as `K` or `Shift+/`, are suspended + * by `suspendCharacterKeys`. Hotkeys on an element are not suspended. + */ + characterKeysSuspended: boolean } /** Options for `HotkeyManager.activateScope`. */ @@ -606,9 +622,11 @@ export class HotkeyManager { exclusive: null, allowed: [], suspended: [], + characterKeysSuspended: false, }) #platform: HotkeyPlatform #scopeActivations = new Set() + #characterKeySuspensions = new Set() #scopeActivationCount = 0 /** Active scopes, lowest precedence first, derived from activations. */ #scopeOrder: Array = [] @@ -752,6 +770,36 @@ export class HotkeyManager { return scope === GLOBAL_SCOPE || this.#scopeOrder.includes(scope) } + /** + * Suspends document-level character key shortcuts until you call the + * returned function, so apps can let users turn off single-key shortcuts for + * WCAG 2.1.4 (Character Key Shortcuts). A character key shortcut is a hotkey + * whose every step types a character, alone or with `Shift`, such as `K`, + * `?`, `Shift+K`, `Space`, or `['G', 'H']`. Hotkeys with `Control`, `Alt`, + * or `Meta`, non-character keys such as `Escape` or `F1`, and hotkeys + * targeted at an element keep working. Enabled hotkeys that are suspended + * report the status `'suspended'`. + * + * Suspensions are counted, so character keys stay suspended until every + * returned resume function runs. Framework providers call this while mounted + * with `suspendCharacterKeys`. + * + * @example + * ```ts + * const resume = manager.suspendCharacterKeys() + * // `K` and `['G', 'H']` don't fire; `Mod+K` and `Escape` do. + * resume() + * ``` + */ + suspendCharacterKeys(): () => void { + const suspension = {} + this.#characterKeySuspensions.add(suspension) + this.#updateScopes() + return () => { + if (this.#characterKeySuspensions.delete(suspension)) this.#updateScopes() + } + } + /** Higher for scopes with higher precedence; `'global'` is 0. */ #scopeRank(scope: string = GLOBAL_SCOPE): number { return this.#scopeOrder.indexOf(scope) + 1 @@ -839,6 +887,7 @@ export class HotkeyManager { exclusive: exclusive?.scope ?? null, allowed, suspended: live ? activated.filter((scope) => !live.has(scope)) : [], + characterKeysSuspended: this.#characterKeySuspensions.size > 0, })) // Registration subscribers, such as cheat sheets, show suspended hotkeys. this.#notify() @@ -846,7 +895,7 @@ export class HotkeyManager { /** Whether a registration can fire now: enabled, in an active scope. */ #isLive(registration: HotkeyRegistration): boolean { - return getRegistrationStatus(registration.options, this) === 'active' + return getRegistrationStatus(registration, this) === 'active' } /** @@ -1121,8 +1170,8 @@ export class HotkeyManager { // Enabled, or moved into an active scope. A keyup chord enabled by // its own keydown, to end a mode, still gets that press's release. if ( - getRegistrationStatus(reg.options, manager) !== 'active' && - getRegistrationStatus(options, manager) === 'active' && + getRegistrationStatus(reg, manager) !== 'active' && + getRegistrationStatus({ ...reg, options }, manager) === 'active' && !(reg.kind === 'chord' && options.eventType === 'keyup') ) { manager.#markLive(id) diff --git a/packages/hotkeys/src/hotkey-recorder.ts b/packages/hotkeys/src/hotkey-recorder.ts index 9cd232734..39db37399 100644 --- a/packages/hotkeys/src/hotkey-recorder.ts +++ b/packages/hotkeys/src/hotkey-recorder.ts @@ -1,4 +1,5 @@ import { splitChordParts } from './_chord' +import { INITIAL_RECORDER_STATE } from './_constants' import { isTypingEvent } from './_event-target' import { resolveMaybeGetter } from './_getter' import { isModifierPress, normalizeKeyboardEvent } from './_keyboard-event' @@ -243,12 +244,6 @@ type ResolvedRecorderOptions = HotkeyRecorderBaseOptions & { idleTimeoutMs?: number } -const initialState: HotkeyRecorderState = { - isRecording: false, - steps: [], - recordedHotkey: null, -} - /** * Framework-agnostic class for recording keyboard shortcuts. * @@ -286,8 +281,9 @@ const initialState: HotkeyRecorderState = { * ``` */ export class HotkeyRecorder { - readonly store: Store = - createStore(initialState) + readonly store: Store = createStore( + INITIAL_RECORDER_STATE, + ) #keydownHandler: ((event: KeyboardEvent) => void) | null = null #optionsSource: MaybeGetter @@ -363,7 +359,10 @@ export class HotkeyRecorder { // Ending a recording cleared its idle timer and events beginRecording(this) - this.store.setState(() => ({ ...initialState, isRecording: true })) + this.store.setState(() => ({ + ...INITIAL_RECORDER_STATE, + isRecording: true, + })) const handler = (event: KeyboardEvent) => { // Ending the recording removes this listener, but happy-dom still runs a @@ -565,7 +564,7 @@ export class HotkeyRecorder { window.removeEventListener('blur', this.#blurHandler) this.#keydownHandler = null } - this.store.setState(() => ({ ...initialState, recordedHotkey })) + this.store.setState(() => ({ ...INITIAL_RECORDER_STATE, recordedHotkey })) } /** diff --git a/packages/hotkeys/src/key.types.ts b/packages/hotkeys/src/key.types.ts index 3dc7bd1f8..3eba3f75e 100644 --- a/packages/hotkeys/src/key.types.ts +++ b/packages/hotkeys/src/key.types.ts @@ -1,4 +1,4 @@ -import type { LOGICAL_ONLY_NAMED_KEYS, SHARED_NAMED_KEYS } from './_named-keys' +import type { LOGICAL_ONLY_NAMED_KEYS, SHARED_NAMED_KEYS } from './_constants' import type { UsKeys } from './key-sets/us' import type { Register } from './register' diff --git a/packages/hotkeys/src/match.ts b/packages/hotkeys/src/match.ts index 94cc829a7..052a10838 100644 --- a/packages/hotkeys/src/match.ts +++ b/packages/hotkeys/src/match.ts @@ -1,6 +1,7 @@ import { chordHasKey, hotkeySteps, parsedChordsEqual } from './_chord' import { isSequenceStep, keepsSequenceProgress } from './_keyboard-event' import { matchKeyboardEvent } from './_match' +import { DEFAULT_SEQUENCE_TIMEOUT } from './constants' import { formatHotkey } from './format' import { parseHotkey } from './parse' import { detectPlatform } from './platform' @@ -218,9 +219,6 @@ export function areHotkeysEqual( ) } -/** Default timeout between sequence steps (in milliseconds). */ -export const DEFAULT_SEQUENCE_TIMEOUT = 1000 - /** * Creates a simple sequence matcher for one-off use. * diff --git a/packages/hotkeys/tests/adapter.test.ts b/packages/hotkeys/tests/adapter.test.ts index b7b957d56..3aad5c981 100644 --- a/packages/hotkeys/tests/adapter.test.ts +++ b/packages/hotkeys/tests/adapter.test.ts @@ -182,6 +182,7 @@ describe('adapter entry', () => { ].map((match) => match[1]) expect(relative.sort()).toEqual([ './_chord', + './_constants', './_dev', './_getter', './_registration', diff --git a/packages/hotkeys/tests/app-hotkeys.test.ts b/packages/hotkeys/tests/app-hotkeys.test.ts index b01b0032a..8dd8fe020 100644 --- a/packages/hotkeys/tests/app-hotkeys.test.ts +++ b/packages/hotkeys/tests/app-hotkeys.test.ts @@ -9,7 +9,8 @@ import { resolveAppHotkey, toHotkeyRegistrationView, } from '../src' -import { namesPhysicalKey } from '../src/adapter' +import { createFormatter, namesPhysicalKey } from '../src/adapter' +import { formatForAria as coreFormatForAria } from '../src/format' import type { AppHotkey, CustomHotkeys, @@ -270,6 +271,29 @@ describe('adapter helpers', () => { expect(namesPhysicalKey('Mod+]')).toBe(false) }) + it('binds a formatter to the platform and layout it is given', () => { + let layoutReads = 0 + const formatForAria = createFormatter( + coreFormatForAria, + () => 'mac', + () => { + layoutReads++ + return new Map([['KeyQ', 'a']]) + }, + ) + expect(formatForAria('Mod+K')).toBe('Meta+K') + expect(formatForAria(null)).toBe(undefined) + // Only a physical key reads the layout. + expect(layoutReads).toBe(0) + expect(formatForAria('Mod+[KeyQ]')).toBe('Meta+A') + expect(layoutReads).toBe(1) + // Options passed to the call win. + expect(formatForAria('Mod+K', { platform: 'windows' })).toBe('Control+K') + expect( + formatForAria('[KeyQ]', { layoutMap: new Map([['KeyQ', 'q']]) }), + ).toBe('Q') + }) + it('resolves an app hotkey from the store by id', () => { const store = new AppHotkeysStore(appHotkeys, { customHotkeys: { 'doc.save': 'Mod+Shift+S' }, diff --git a/packages/hotkeys/tests/character-keys.test.ts b/packages/hotkeys/tests/character-keys.test.ts new file mode 100644 index 000000000..978b1f93a --- /dev/null +++ b/packages/hotkeys/tests/character-keys.test.ts @@ -0,0 +1,194 @@ +import { keydown, keyup } from '@tanstack/hotkeys-test-utils' +import { afterEach, describe, expect, it, vi } from 'vitest' +import { isCharacterKeyShortcut } from '../src/_registration' +import { HotkeyManager, toHotkeyRegistrationView } from '../src/hotkey-manager' +import { parseHotkey } from '../src/parse' +import type { RegisterableHotkey } from '../src/hotkey.types' + +const options = { platform: 'windows' as const } + +function press(key: string, code: string, init: KeyboardEventInit = {}) { + keydown({ key, code, target: document.body, ...init }) + keyup({ key, code, target: document.body }) +} + +function isCharacter(hotkey: string | Array) { + const steps = parseHotkey(hotkey as RegisterableHotkey, 'windows') + return isCharacterKeyShortcut(Array.isArray(steps) ? steps : [steps]) +} + +describe('isCharacterKeyShortcut', () => { + it('counts keys that type a character, with or without Shift', () => { + for (const hotkey of ['K', '?', '/', '1', 'Shift+K', 'Shift+/', 'Space']) { + expect(isCharacter(hotkey), hotkey).toBe(true) + } + }) + + it('counts physical keys at character positions', () => { + for (const hotkey of [ + '[NumpadEqual]', + '[NumpadStar]', + '[NumpadParenLeft]', + + '[KeyK]', + '[Digit1]', + '[Slash]', + '[IntlBackslash]', + '[Numpad5]', + '[Space]', + ]) { + expect(isCharacter(hotkey), hotkey).toBe(true) + } + }) + + it('does not count Control, Alt, or Meta chords', () => { + for (const hotkey of [ + 'Mod+K', + 'Control+K', + 'Alt+K', + 'Meta+K', + 'Alt+[KeyK]', + ]) { + expect(isCharacter(hotkey), hotkey).toBe(false) + } + }) + + it('does not count keys that type nothing', () => { + for (const hotkey of [ + 'Escape', + 'Enter', + 'Tab', + 'ArrowUp', + 'F1', + 'Shift+F10', + '[Enter]', + '[NumpadEnter]', + 'MediaPlayPause', + ]) { + expect(isCharacter(hotkey), hotkey).toBe(false) + } + }) + + it('counts a sequence only when every step is a character key', () => { + expect(isCharacter(['G', 'H'])).toBe(true) + expect(isCharacter(['Mod+K', 'C'])).toBe(false) + expect(isCharacter(['G', 'Escape'])).toBe(false) + }) +}) + +describe('suspendCharacterKeys', () => { + afterEach(() => { + HotkeyManager.resetInstance() + vi.restoreAllMocks() + }) + + it('stops character-key hotkeys and keeps the others', () => { + const manager = HotkeyManager.getInstance() + const k = vi.fn() + const save = vi.fn() + const escape = vi.fn() + manager.register('K', k, options) + manager.register('Mod+S', save, options) + manager.register('Escape', escape, options) + + const release = manager.suspendCharacterKeys() + press('k', 'KeyK') + press('s', 'KeyS', { ctrlKey: true }) + press('Escape', 'Escape') + expect([ + k.mock.calls.length, + save.mock.calls.length, + escape.mock.calls.length, + ]).toEqual([0, 1, 1]) + + release() + press('k', 'KeyK') + expect(k).toHaveBeenCalledTimes(1) + }) + + it('reports suspended character-key hotkeys as suspended', () => { + const manager = HotkeyManager.getInstance() + const handle = manager.register('K', () => {}, options) + const status = () => + toHotkeyRegistrationView(manager.registrations.state.get(handle.id)!) + .status + expect(status()).toBe('active') + expect(manager.hasActiveRegistration('K')).toBe(true) + + const release = manager.suspendCharacterKeys() + expect(status()).toBe('suspended') + expect(manager.hasActiveRegistration('K')).toBe(false) + expect(manager.scopes.state.characterKeysSuspended).toBe(true) + + release() + expect(status()).toBe('active') + expect(manager.scopes.state.characterKeysSuspended).toBe(false) + }) + + it('keeps disabled hotkeys disabled', () => { + const manager = HotkeyManager.getInstance() + const handle = manager.register('K', () => {}, { + ...options, + enabled: false, + }) + manager.suspendCharacterKeys() + expect( + toHotkeyRegistrationView(manager.registrations.state.get(handle.id)!) + .status, + ).toBe('disabled') + }) + + it('stays suspended until every suspension is released', () => { + const manager = HotkeyManager.getInstance() + const k = vi.fn() + manager.register('K', k, options) + const first = manager.suspendCharacterKeys() + const second = manager.suspendCharacterKeys() + first() + // Releasing twice does nothing. + first() + press('k', 'KeyK') + expect(k).not.toHaveBeenCalled() + second() + press('k', 'KeyK') + expect(k).toHaveBeenCalledTimes(1) + }) + + it('stops character-key sequences', () => { + const manager = HotkeyManager.getInstance() + const home = vi.fn() + manager.register(['G', 'H'], home, options) + manager.suspendCharacterKeys() + press('g', 'KeyG') + press('h', 'KeyH') + expect(home).not.toHaveBeenCalled() + }) + + it('keeps hotkeys on an element, which fire only while it has focus', () => { + const manager = HotkeyManager.getInstance() + const element = document.createElement('div') + element.tabIndex = 0 + document.body.append(element) + const k = vi.fn() + manager.register('K', k, { ...options, target: element }) + manager.suspendCharacterKeys() + element.focus() + keydown({ key: 'k', code: 'KeyK', target: element }) + keyup({ key: 'k', code: 'KeyK', target: element }) + expect(k).toHaveBeenCalledTimes(1) + element.remove() + }) + + it('notifies registration subscribers when suspension changes', () => { + const manager = HotkeyManager.getInstance() + manager.register('K', () => {}, options) + const listener = vi.fn() + const { unsubscribe } = manager.registrations.subscribe(listener) + const release = manager.suspendCharacterKeys() + expect(listener).toHaveBeenCalled() + listener.mockClear() + release() + expect(listener).toHaveBeenCalled() + unsubscribe() + }) +}) diff --git a/packages/hotkeys/tests/format-aria.test.ts b/packages/hotkeys/tests/format-aria.test.ts new file mode 100644 index 000000000..213583432 --- /dev/null +++ b/packages/hotkeys/tests/format-aria.test.ts @@ -0,0 +1,138 @@ +import { describe, expect, it } from 'vitest' +import { formatForAria } from '../src/format' +import { parseHotkey } from '../src/parse' +import { detectPlatform } from '../src/platform' +import type { RegisterableHotkey } from '../src/hotkey.types' + +/** Strings that parse correctly but are not in the `HotkeyChord` template union. */ +function hk(s: string): RegisterableHotkey { + return s as RegisterableHotkey +} + +describe('formatForAria', () => { + it('resolves Mod for the platform', () => { + expect(formatForAria('Mod+K', { platform: 'mac' })).toBe('Meta+K') + expect(formatForAria('Mod+K', { platform: 'windows' })).toBe('Control+K') + expect(formatForAria('Mod+K', { platform: 'linux' })).toBe('Control+K') + }) + + it('writes modifiers with their ARIA names, before the key', () => { + expect(formatForAria(hk('Cmd+Option+Shift+P'), { platform: 'mac' })).toBe( + 'Alt+Shift+Meta+P', + ) + expect(formatForAria(hk('ctrl+alt+.'), { platform: 'windows' })).toBe( + 'Control+Alt+.', + ) + expect( + formatForAria({ key: 's', mod: true, shift: true }, { platform: 'mac' }), + ).toBe('Shift+Meta+S') + }) + + it('keeps key values as written', () => { + expect(formatForAria('Escape', { platform: 'mac' })).toBe('Escape') + expect(formatForAria('Shift+ArrowUp', { platform: 'mac' })).toBe( + 'Shift+ArrowUp', + ) + expect(formatForAria('F1', { platform: 'mac' })).toBe('F1') + expect(formatForAria('/', { platform: 'mac' })).toBe('/') + expect(formatForAria(hk('a'), { platform: 'mac' })).toBe('A') + }) + + it('names the space bar Space and the plus key Plus', () => { + expect(formatForAria('Shift+Space', { platform: 'mac' })).toBe( + 'Shift+Space', + ) + expect(formatForAria({ key: ' ' }, { platform: 'mac' })).toBe('Space') + expect(formatForAria('Mod++', { platform: 'windows' })).toBe('Control+Plus') + expect(formatForAria('[NumpadAdd]', { platform: 'windows' })).toBe('Plus') + }) + + it('formats a parsed chord', () => { + expect( + formatForAria(parseHotkey('Mod+Shift+S', 'mac'), { platform: 'mac' }), + ).toBe('Shift+Meta+S') + }) + + it('names the key a physical binding presses', () => { + expect(formatForAria('Mod+[KeyS]', { platform: 'mac' })).toBe('Meta+S') + expect(formatForAria('Shift+[Digit5]', { platform: 'mac' })).toBe('Shift+5') + expect(formatForAria('[Slash]', { platform: 'mac' })).toBe('/') + expect(formatForAria('[Enter]', { platform: 'mac' })).toBe('Enter') + expect(formatForAria('[ArrowLeft]', { platform: 'mac' })).toBe('ArrowLeft') + expect(formatForAria('[F5]', { platform: 'mac' })).toBe('F5') + expect(formatForAria('[Space]', { platform: 'mac' })).toBe('Space') + expect(formatForAria('[IntlYen]', { platform: 'mac' })).toBe('¥') + expect(formatForAria('[Numpad7]', { platform: 'mac' })).toBe('7') + expect(formatForAria('[NumpadEnter]', { platform: 'mac' })).toBe('Enter') + expect(formatForAria('[NumpadParenLeft]', { platform: 'mac' })).toBe('(') + }) + + it("names a physical binding's key from the layout map", () => { + const azerty = new Map([ + ['KeyQ', 'a'], + ['Digit1', '&'], + ['Equal', '+'], + ]) + expect( + formatForAria('Mod+[KeyQ]', { platform: 'mac', layoutMap: azerty }), + ).toBe('Meta+A') + expect( + formatForAria('[Digit1]', { platform: 'mac', layoutMap: azerty }), + ).toBe('&') + expect( + formatForAria('[Equal]', { platform: 'mac', layoutMap: azerty }), + ).toBe('Plus') + // A missing or empty entry uses the conventional key. + expect( + formatForAria('[KeyW]', { + platform: 'mac', + layoutMap: new Map([['KeyW', '']]), + }), + ).toBe('W') + }) + + it('ignores the layout map for logical keys', () => { + expect( + formatForAria('Q', { + platform: 'mac', + layoutMap: new Map([['KeyQ', 'a']]), + }), + ).toBe('Q') + }) + + it('returns undefined for a code with no key value', () => { + expect(formatForAria('[NumpadMemoryAdd]', { platform: 'mac' })).toBe( + undefined, + ) + expect(formatForAria('[Lang1]', { platform: 'mac' })).toBe(undefined) + expect(formatForAria('Mod+[Turbo]', { platform: 'mac' })).toBe(undefined) + }) + + it('returns undefined for a sequence', () => { + expect(formatForAria(['G', 'H'], { platform: 'mac' })).toBe(undefined) + expect(formatForAria([], { platform: 'mac' })).toBe(undefined) + }) + + it('formats a one-step sequence like its chord', () => { + expect(formatForAria(['Mod+K'], { platform: 'mac' })).toBe('Meta+K') + }) + + it('returns undefined for a modifier alone', () => { + expect(formatForAria('Shift', { platform: 'mac' })).toBe(undefined) + expect(formatForAria(hk('Control+Shift'), { platform: 'mac' })).toBe( + undefined, + ) + }) + + it('returns undefined for no hotkey', () => { + expect(formatForAria(null)).toBe(undefined) + expect(formatForAria(undefined)).toBe(undefined) + expect(formatForAria('' as RegisterableHotkey)).toBe(undefined) + }) + + it('uses the detected platform without a platform option', () => { + expect(formatForAria('Mod+K')).toBe( + formatForAria('Mod+K', { platform: detectPlatform() }), + ) + }) +}) diff --git a/packages/hotkeys/tests/invariants/fixtures.ts b/packages/hotkeys/tests/invariants/fixtures.ts index 069def04b..62f637cef 100644 --- a/packages/hotkeys/tests/invariants/fixtures.ts +++ b/packages/hotkeys/tests/invariants/fixtures.ts @@ -1,5 +1,5 @@ import { keyEvent } from '@tanstack/hotkeys-test-utils' -import { SHARED_NAMED_KEYS } from '../../src/_named-keys' +import { SHARED_NAMED_KEYS } from '../../src/_constants' import { findLayout, layoutPress, layoutsFor } from '../fixtures/layout-events' import { TYPED_KEYS } from '../typed-keys' import type { HotkeyPlatform } from '../../src' diff --git a/packages/hotkeys/tests/key-coverage.test.ts b/packages/hotkeys/tests/key-coverage.test.ts index a59b58e65..fa54bf5df 100644 --- a/packages/hotkeys/tests/key-coverage.test.ts +++ b/packages/hotkeys/tests/key-coverage.test.ts @@ -7,7 +7,7 @@ import { parseHotkey, validateHotkey, } from '../src' -import { LOGICAL_ONLY_NAMED_KEYS, SHARED_NAMED_KEYS } from '../src/_named-keys' +import { LOGICAL_ONLY_NAMED_KEYS, SHARED_NAMED_KEYS } from '../src/_constants' import { hotkeyChordFromKeydown } from '../src/_recorder-chord' import { FUNCTION_KEY_NAMES } from './typed-keys' import type { diff --git a/packages/hotkeys/tests/registration-and-target.test.ts b/packages/hotkeys/tests/registration-and-target.test.ts index 3989bfb3a..95a12db9f 100644 --- a/packages/hotkeys/tests/registration-and-target.test.ts +++ b/packages/hotkeys/tests/registration-and-target.test.ts @@ -1,10 +1,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest' +import { defaultHotkeyOptions } from '../src/_constants' import { isInputElement } from '../src/_event-target' -import { - defaultHotkeyOptions, - getDefaultIgnoreInputs, - handleConflict, -} from '../src/_registration' +import { getDefaultIgnoreInputs, handleConflict } from '../src/_registration' describe('registration and event-target helpers', () => { describe('isInputElement', () => { diff --git a/packages/hotkeys/tests/scopes.test.ts b/packages/hotkeys/tests/scopes.test.ts index dba0368ac..308ad5850 100644 --- a/packages/hotkeys/tests/scopes.test.ts +++ b/packages/hotkeys/tests/scopes.test.ts @@ -216,6 +216,7 @@ describe('hotkey scopes', () => { exclusive: 'dialog', allowed: [], suspended: ['global', 'editor'], + characterKeysSuspended: false, }) press() press(document.body, 'k', 'KeyK') diff --git a/packages/hotkeys/tests/typed-behavior.test.ts b/packages/hotkeys/tests/typed-behavior.test.ts index 513a729ed..13fe64c0d 100644 --- a/packages/hotkeys/tests/typed-behavior.test.ts +++ b/packages/hotkeys/tests/typed-behavior.test.ts @@ -12,8 +12,8 @@ import { parseHotkey, validateHotkey, } from '../src' +import { LOGICAL_ONLY_NAMED_KEYS, SHARED_NAMED_KEYS } from '../src/_constants' import { normalizeKeyboardEvent } from '../src/_keyboard-event' -import { LOGICAL_ONLY_NAMED_KEYS, SHARED_NAMED_KEYS } from '../src/_named-keys' import { hotkeyChordFromKeydown } from '../src/_recorder-chord' import { EDITING_KEY_NAMES, diff --git a/packages/hotkeys/tests/typed-keys.ts b/packages/hotkeys/tests/typed-keys.ts index 823427bda..094ed99b5 100644 --- a/packages/hotkeys/tests/typed-keys.ts +++ b/packages/hotkeys/tests/typed-keys.ts @@ -1,4 +1,4 @@ -import { LOGICAL_ONLY_NAMED_KEYS, SHARED_NAMED_KEYS } from '../src/_named-keys' +import { LOGICAL_ONLY_NAMED_KEYS, SHARED_NAMED_KEYS } from '../src/_constants' import type { EditingKey, FunctionKey, diff --git a/packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md b/packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md index b1304186b..f216e7d54 100644 --- a/packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md +++ b/packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md @@ -65,6 +65,7 @@ export class MyEditor extends LitElement { | `provideAppHotkeys(appHotkeys, options?)` | Declare app hotkeys and load the user's custom hotkeys once at startup, since Lit has no provider. | | `getHotkeyManager().activateScope(scope, options?)` | Turn on a scope, such as an exclusive one for a dialog; it returns the function that turns the scope off. | | `new FormatForDisplayController(host, options?)` | Read `.format`, the function that formats a hotkey as a label, with the controller's `platform` option and the user's keyboard layout filled in. Only Chromium browsers report a layout, so physical keys keep their US labels in Firefox and Safari. Use it for every label in an element: `private formatForDisplay = new FormatForDisplayController(this)` as a field, then `this.formatForDisplay.format(hotkey)`. With Lit SSR, pass `() => ({ platform: this.platform })` and set that property from `detectPlatform(userAgent)`. | +| `new FormatForAriaController(host, options?)` | Read `.format`, the function that formats a hotkey for `aria-keyshortcuts`, with the controller's `platform` and the user's keyboard layout filled in. Returns `undefined` for a multi-step sequence or no hotkey. Bind the result with `ifDefined` so Lit omits the attribute. | | `new AppHotkeysController(host)` | Read `appHotkeys`, the cheat sheet `list`, and `customHotkeys`, and change custom hotkeys with `setCustomHotkey`, `resetCustomHotkey`, and `findConflicts`. | | `new HotkeyRecorderController(host, options)` | Record a chord or sequence the user presses, for a settings screen. | | `new HotkeyRegistrationsController(host)` | Read `.hotkeys`, every registered hotkey with its options, `meta`, and `status` (whether it's enabled and in an active scope). | @@ -74,7 +75,7 @@ export class MyEditor extends LitElement { | `new HeldKeysController(host)` | Read `.value`, every key that's held right now. | | `new HeldKeyCodesController(host)` | Read `.value`, which maps each held key to its physical `event.code`. | -The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `FormatForDisplayController` in elements. Outside an element, call the plain function and pass `platform`. +The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `FormatForDisplayController` in elements. Outside an element, call the plain function and pass `platform`. The plain `formatForAria` export is deprecated the same way, in favor of `FormatForAriaController`. ## Pitfalls diff --git a/packages/lit-hotkeys/src/controllers/_formatter-layout.ts b/packages/lit-hotkeys/src/controllers/_formatter-layout.ts new file mode 100644 index 000000000..dc2e46359 --- /dev/null +++ b/packages/lit-hotkeys/src/controllers/_formatter-layout.ts @@ -0,0 +1,38 @@ +import { KeyboardLayoutController } from './keyboard-layout' +import type { KeyboardLayoutMap } from '@tanstack/hotkeys' +import type { ReactiveControllerHost } from 'lit' + +/** + * The keyboard layout for a formatter controller's host. `sync` adds a + * layout controller to the host, or removes it when `enabled` returns false. + */ +export class FormatterLayout { + private _layout: KeyboardLayoutController | undefined + + constructor( + private _host: ReactiveControllerHost, + private _enabled: () => boolean, + ) {} + + /** The loaded layout, or null when there is none or it is turned off. */ + public get value(): KeyboardLayoutMap | null { + return (this._enabled() && this._layout?.value) || null + } + + /** Follows the `enabled` option: starts or stops reading the layout. */ + public sync(): void { + if (!this._enabled()) { + this.dispose() + return + } + // The layout controller joins the host, which connects and disconnects + // it. It loads the layout only while the host is connected. + this._layout ??= new KeyboardLayoutController(this._host) + } + + /** Releases the layout controller and removes it from the host. */ + public dispose(): void { + this._layout?.dispose() + this._layout = undefined + } +} diff --git a/packages/lit-hotkeys/src/controllers/format-for-aria.ts b/packages/lit-hotkeys/src/controllers/format-for-aria.ts new file mode 100644 index 000000000..604461991 --- /dev/null +++ b/packages/lit-hotkeys/src/controllers/format-for-aria.ts @@ -0,0 +1,105 @@ +import { formatForAria } from '@tanstack/hotkeys' +import { createFormatter, resolveMaybeGetter } from '@tanstack/hotkeys/adapter' +import { FormatterLayout } from './_formatter-layout' +import type { HotkeyPlatform, MaybeGetter } from '@tanstack/hotkeys' +import type { ReactiveController, ReactiveControllerHost } from 'lit' + +/** Options for `FormatForAriaController`. */ +export interface FormatForAriaControllerOptions { + /** + * The user's platform, for every value from `format`. Detected when unset. + * On a server, set it from the request with `detectPlatform(userAgent)`. + */ + platform?: HotkeyPlatform + /** + * Whether physical bindings follow the user's keyboard layout, so `[KeyQ]` + * is `A` on a French AZERTY keyboard. The layout loads from the browser + * when the first host connects. Only Chromium browsers report one. Set + * `false` to never ask the browser for it. Default: `true`. + */ + keyboardLayout?: boolean +} + +/** + * A Lit ReactiveController whose `format` is `formatForAria` with the + * controller's `platform` option, or the detected platform without one. A + * `platform` passed to `format` wins. Use its value for `aria-keyshortcuts` + * with Lit's `ifDefined`, so Lit omits the attribute for a multi-step sequence + * or no hotkey. + * + * Physical bindings such as `[KeyQ]` name the key the user presses in + * Chromium browsers, once the keyboard layout has loaded. The host updates + * when the layout loads or changes. A `layoutMap` passed to `format` wins. + * + * Lit has no provider, so the options are the only defaults. Pass a getter to + * read them from host properties. + * + * @example + * ```ts + * class SearchButton extends LitElement { + * private formatForAria = new FormatForAriaController(this) + * + * render() { + * return html` + * + * ` + * } + * } + * ``` + */ +export class FormatForAriaController implements ReactiveController { + /** Reads the layout for the host, unless `keyboardLayout` is false. */ + private _layout: FormatterLayout + + /** + * Formats a hotkey for `aria-keyshortcuts`, with the controller's platform + * and the user's keyboard layout filled in. It takes the same options as + * `formatForAria` and needs no `this`, so it can be passed around. + */ + public format: typeof formatForAria = createFormatter( + formatForAria, + () => this._read().platform, + () => this._layout.value, + ) + + /** + * @param _host - The Lit component that owns this controller. The controller adds itself to it. + * @param _options - Options or a getter. `platform` is read for each value. `keyboardLayout` is read on connection and before host updates. + */ + constructor( + private _host: ReactiveControllerHost, + private _options: MaybeGetter = {}, + ) { + this._layout = new FormatterLayout( + _host, + () => this._read().keyboardLayout !== false, + ) + this._host.addController(this) + } + + /** Starts reading the layout, unless `keyboardLayout` is false. */ + public hostConnected(): void { + this._layout.sync() + } + + /** Follows a `keyboardLayout` option that a host property changed. */ + public hostUpdate(): void { + this._layout.sync() + } + + /** + * Releases the controller now and removes it from its host, with the + * layout controller it added. Use this method to remove a controller early, + * because Lit's `removeController` alone leaves it active. + */ + public dispose(): void { + this._layout.dispose() + this._host.removeController(this) + } + + private _read(): FormatForAriaControllerOptions { + return resolveMaybeGetter(this._options) + } +} diff --git a/packages/lit-hotkeys/src/controllers/format-for-display.ts b/packages/lit-hotkeys/src/controllers/format-for-display.ts index ec18dcccc..59b223f48 100644 --- a/packages/lit-hotkeys/src/controllers/format-for-display.ts +++ b/packages/lit-hotkeys/src/controllers/format-for-display.ts @@ -2,7 +2,7 @@ import { createFormatForDisplay, resolveMaybeGetter, } from '@tanstack/hotkeys/adapter' -import { KeyboardLayoutController } from './keyboard-layout' +import { FormatterLayout } from './_formatter-layout' import type { HotkeyPlatform, MaybeGetter, @@ -59,7 +59,7 @@ export interface FormatForDisplayControllerOptions { */ export class FormatForDisplayController implements ReactiveController { /** Reads the layout for the host, unless `keyboardLayout` is false. */ - private _layout: KeyboardLayoutController | undefined + private _layout: FormatterLayout /** * Formats a hotkey as a label, with the controller's platform and the @@ -68,8 +68,7 @@ export class FormatForDisplayController implements ReactiveController { */ public format: typeof formatForDisplay = createFormatForDisplay( () => this._read().platform, - () => - (this._read().keyboardLayout !== false && this._layout?.value) || null, + () => this._layout.value, ) /** @@ -80,17 +79,21 @@ export class FormatForDisplayController implements ReactiveController { private _host: ReactiveControllerHost, private _options: MaybeGetter = {}, ) { + this._layout = new FormatterLayout( + _host, + () => this._read().keyboardLayout !== false, + ) this._host.addController(this) } /** Starts reading the layout, unless `keyboardLayout` is false. */ public hostConnected(): void { - this._sync() + this._layout.sync() } /** Follows a `keyboardLayout` option that a host property changed. */ public hostUpdate(): void { - this._sync() + this._layout.sync() } /** @@ -99,23 +102,11 @@ export class FormatForDisplayController implements ReactiveController { * `removeController` alone leaves it active. */ public dispose(): void { - this._layout?.dispose() - this._layout = undefined + this._layout.dispose() this._host.removeController(this) } private _read(): FormatForDisplayControllerOptions { return resolveMaybeGetter(this._options) } - - private _sync(): void { - if (this._read().keyboardLayout === false) { - this._layout?.dispose() - this._layout = undefined - return - } - // The layout controller joins the host, which connects and disconnects - // it. It loads the layout only while the host is connected. - this._layout ??= new KeyboardLayoutController(this._host) - } } diff --git a/packages/lit-hotkeys/src/controllers/index.ts b/packages/lit-hotkeys/src/controllers/index.ts index 9bb15f5bf..322d26be8 100644 --- a/packages/lit-hotkeys/src/controllers/index.ts +++ b/packages/lit-hotkeys/src/controllers/index.ts @@ -1,4 +1,5 @@ export * from './app-hotkeys' +export * from './format-for-aria' export * from './format-for-display' export * from './held-key-codes' export * from './held-keys' diff --git a/packages/lit-hotkeys/src/format-for-aria.ts b/packages/lit-hotkeys/src/format-for-aria.ts new file mode 100644 index 000000000..24252ffb6 --- /dev/null +++ b/packages/lit-hotkeys/src/format-for-aria.ts @@ -0,0 +1,12 @@ +import { formatForAria as coreFormatForAria } from '@tanstack/hotkeys' + +/** + * Formats a hotkey for `aria-keyshortcuts`, without a controller's platform or + * the user's keyboard layout. + * + * @deprecated Use `FormatForAriaController` in elements. Its `format` is + * this function with the controller's platform and the user's keyboard layout + * filled in. Outside an element, keep calling this function and pass `platform` + * yourself. + */ +export const formatForAria: typeof coreFormatForAria = coreFormatForAria diff --git a/packages/lit-hotkeys/src/index.ts b/packages/lit-hotkeys/src/index.ts index 094d4d27e..4cdc359fc 100644 --- a/packages/lit-hotkeys/src/index.ts +++ b/packages/lit-hotkeys/src/index.ts @@ -6,3 +6,4 @@ export * from './decorators' export * from './controllers' // Replaces the core export, to point elements to the controller export { formatForDisplay } from './format-for-display' +export { formatForAria } from './format-for-aria' diff --git a/packages/lit-hotkeys/tests/conformance.test.ts b/packages/lit-hotkeys/tests/conformance.test.ts index 90e8bc2a9..a54c89755 100644 --- a/packages/lit-hotkeys/tests/conformance.test.ts +++ b/packages/lit-hotkeys/tests/conformance.test.ts @@ -5,6 +5,7 @@ import { } from '@tanstack/hotkeys-test-utils/conformance' import { vitestRunner } from '@tanstack/hotkeys-test-utils/conformance/vitest' import { LitElement, html } from 'lit' +import { FormatForAriaController } from '../src/controllers/format-for-aria' import { FormatForDisplayController } from '../src/controllers/format-for-display' import { HeldKeyCodesController } from '../src/controllers/held-key-codes' import { HeldKeysController } from '../src/controllers/held-keys' @@ -251,10 +252,12 @@ const harness: ConformanceHarness = { const host = new ConformanceHost() // Lit has no provider: the platform is the controller's own option. const formatForDisplay = new FormatForDisplayController(host, { platform }) + const formatForAria = new FormatForAriaController(host, { platform }) const view = await attach(host) return { format: (hotkey, formatOptions) => formatForDisplay.format(hotkey, formatOptions ?? {}), + formatAria: (hotkey, options) => formatForAria.format(hotkey, options), unmount: view.unmount, } }, diff --git a/packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md b/packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md index 85f2a07bf..20ca92fbe 100644 --- a/packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md +++ b/packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md @@ -53,10 +53,11 @@ export function Panel({ onSave }: { onSave: () => void }) @{ | ----------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `useHotkey(hotkey, callback, options?)` | Register one chord, sequence, or app hotkey while the component is mounted. | | `useHotkeys(definitions, commonOptions?)` | Register several hotkeys, or a list built from data, in one call. | -| `` | Set default options, a scope (`exclusive` for dialogs), `enabled`, and app hotkeys for the components inside it. | +| `` | Set default options, a scope (`exclusive` for dialogs), `enabled`, `suspendCharacterKeys` (set from a user setting that turns off single-key shortcuts), and app hotkeys for the components inside it. | | `useHotkeysContext()` | Read the nearest provider's merged defaults and enabled state, or `null` outside a provider. | | `useDefaultHotkeysOptions()` | Read the default options merged from every provider above. | | `useFormatForDisplay()` | Get the function that formats a hotkey as a label, with the provider's `platform` and the user's keyboard layout filled in. Only Chromium browsers report a layout, so physical keys keep their US labels in Firefox and Safari. Use it for every label in a component: `const formatForDisplay = useFormatForDisplay()` at the top, then `formatForDisplay(hotkey)`. | +| `useFormatForAria()` | Get the function that formats a hotkey for `aria-keyshortcuts`, with the provider's `platform` and the user's keyboard layout filled in. Returns `undefined` for a multi-step sequence or no hotkey, so the attribute is omitted. Set `aria-keyshortcuts` on every control that has a shortcut, next to the visible label. | | `useAppHotkeys()` | Get the declared app hotkeys with the user's custom hotkeys applied, to pass to the register API. | | `useAppHotkeyList()` | List every app hotkey with its status, including ones whose components aren't mounted, for a cheat sheet or settings screen. | | `useCustomHotkeys()` | Read, change, and reset the user's custom hotkeys, and check a new one for conflicts. | @@ -68,7 +69,7 @@ export function Panel({ onSave }: { onSave: () => void }) @{ | `useHeldKeys()` | Get every key that's held right now. | | `useHeldKeyCodes()` | Map each held key to its physical `event.code`. | -The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `useFormatForDisplay()` in components. Outside a component, call the plain function and pass `platform`. +The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `useFormatForDisplay()` in components. Outside a component, call the plain function and pass `platform`. The plain `formatForAria` export is deprecated the same way, in favor of `useFormatForAria()`. No provider is required. Use Octane 0.12 or newer, with hooks in compiler-enabled `.tsrx` components. diff --git a/packages/octane-hotkeys/src/HotkeysProvider.ts b/packages/octane-hotkeys/src/HotkeysProvider.ts index f73e507a4..2cfefa974 100644 --- a/packages/octane-hotkeys/src/HotkeysProvider.ts +++ b/packages/octane-hotkeys/src/HotkeysProvider.ts @@ -1,4 +1,4 @@ -import { publishAppHotkeysStore } from '@tanstack/hotkeys' +import { getHotkeyManager, publishAppHotkeysStore } from '@tanstack/hotkeys' import { activateHotkeysProviderScope, createAppHotkeysStore, @@ -103,6 +103,7 @@ export function HotkeysProvider({ scope, exclusive, enabled = true, + suspendCharacterKeys = false, }: HotkeysProviderProps) { const parent = useContext(HotkeysContext) const callbackRef = useRef( @@ -161,6 +162,15 @@ export function HotkeysProvider({ [scopeKey], subSlot(undefined, 'provider-scope'), ) + // Suspend character key shortcuts while mounted, as the user's setting asks. + useLayoutEffect( + () => + suspendCharacterKeys + ? getHotkeyManager().suspendCharacterKeys() + : undefined, + [suspendCharacterKeys], + subSlot(undefined, 'provider-character-keys'), + ) return createElement(HotkeysContext, { value: { defaultOptions: mergeHotkeysProviderDefaults( diff --git a/packages/octane-hotkeys/src/_useFormatter.ts b/packages/octane-hotkeys/src/_useFormatter.ts new file mode 100644 index 000000000..d2750a90d --- /dev/null +++ b/packages/octane-hotkeys/src/_useFormatter.ts @@ -0,0 +1,45 @@ +import { detectPlatform } from '@tanstack/hotkeys' +import { + createFormatter, + getServerPlatformSnapshot, +} from '@tanstack/hotkeys/adapter' +import { useCallback, useSyncExternalStore } from 'octane' +import { useDefaultHotkeysOptions } from './HotkeysProvider' +import { subSlot } from './internal' +import { useKeyboardLayout } from './useKeyboardLayout' +import type { KeyboardLayoutMap } from '@tanstack/hotkeys' + +const subscribe = () => () => {} + +/** + * `format`, such as `formatForDisplay`, bound to the provider's platform, or the + * detected one, and the keyboard layout. `tag` keeps each formatter's slots + * apart when a component uses both. Without a provider platform, server + * rendering and hydration use 'linux', then the client re-renders with the + * detected platform. + */ +export function useFormatter< + TFormat extends Parameters[0], +>(format: TFormat, tag: string, slot?: symbol): TFormat { + const provided = useDefaultHotkeysOptions().platform + // The provider's platform also goes in the server snapshot, so a server + // render with a platform does not warn. + const platform = useSyncExternalStore( + subscribe, + () => provided ?? detectPlatform(), + () => provided ?? getServerPlatformSnapshot(), + subSlot(slot, `${tag}platform`), + ) + const layoutMap = ( + useKeyboardLayout as (slot: symbol) => KeyboardLayoutMap | null + )(subSlot(slot, `${tag}layout`)) + return useCallback( + createFormatter( + format, + () => platform, + () => layoutMap, + ), + [platform, layoutMap], + subSlot(slot, `${tag}format`), + ) +} diff --git a/packages/octane-hotkeys/src/formatForAria.ts b/packages/octane-hotkeys/src/formatForAria.ts new file mode 100644 index 000000000..08537a157 --- /dev/null +++ b/packages/octane-hotkeys/src/formatForAria.ts @@ -0,0 +1,12 @@ +import { formatForAria as coreFormatForAria } from '@tanstack/hotkeys' + +/** + * Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or + * the user's keyboard layout. + * + * @deprecated Use `useFormatForAria()` in components. It returns this + * function with the provider's platform and the user's keyboard layout filled + * in. Outside a component, keep calling this function and pass `platform` + * yourself. + */ +export const formatForAria: typeof coreFormatForAria = coreFormatForAria diff --git a/packages/octane-hotkeys/src/index.ts b/packages/octane-hotkeys/src/index.ts index f8ce4a716..294a7bded 100644 --- a/packages/octane-hotkeys/src/index.ts +++ b/packages/octane-hotkeys/src/index.ts @@ -17,8 +17,10 @@ export * from './useHeldKeyCodes' export * from './useKeyHold' export * from './useHotkeyHint' export * from './useFormatForDisplay' +export * from './useFormatForAria' // Replaces the core export, to point components to the hook export { formatForDisplay } from './formatForDisplay' +export { formatForAria } from './formatForAria' export * from './useKeyboardLayout' export * from './useHotkeyRegistrations' export * from './useHotkeyScopesState' diff --git a/packages/octane-hotkeys/src/useFormatForAria.ts b/packages/octane-hotkeys/src/useFormatForAria.ts new file mode 100644 index 000000000..0b7147c9d --- /dev/null +++ b/packages/octane-hotkeys/src/useFormatForAria.ts @@ -0,0 +1,34 @@ +import { formatForAria } from '@tanstack/hotkeys' +import { useFormatter } from './_useFormatter' + +/** + * Returns `formatForAria` with the platform from `HotkeysProvider`, or the + * detected platform without one. A `platform` passed to the returned function + * wins. Use its value for `aria-keyshortcuts`, so screen readers announce the + * shortcut. It returns `undefined` for a multi-step sequence or no hotkey, so + * Octane omits the attribute. Without a provider platform, server rendering and + * hydration use 'linux', then the client re-renders with the detected + * platform. + * + * Physical bindings such as `[KeyQ]` name the key the user presses in + * Chromium browsers, once the keyboard layout has loaded. See + * `useKeyboardLayout`. A `layoutMap` passed to the returned function wins. + * + * Call the hook once at the top of the component; the returned function can + * be called anywhere. Server-rendered apps should set the provider's + * `defaultOptions.platform` from the request with `detectPlatform(userAgent)`, + * so the server HTML matches the user's platform. + * + * @example + * ```tsx + * function SearchButton() @{ + * const formatForAria = useFormatForAria() + * + * + * } + * ``` + */ +export function useFormatForAria(): typeof formatForAria +export function useFormatForAria(slot?: symbol): typeof formatForAria { + return useFormatter(formatForAria, 'aria-', slot) +} diff --git a/packages/octane-hotkeys/src/useFormatForDisplay.ts b/packages/octane-hotkeys/src/useFormatForDisplay.ts index be0559f6d..16665f972 100644 --- a/packages/octane-hotkeys/src/useFormatForDisplay.ts +++ b/packages/octane-hotkeys/src/useFormatForDisplay.ts @@ -1,15 +1,5 @@ -import { detectPlatform } from '@tanstack/hotkeys' -import { - createFormatForDisplay, - getServerPlatformSnapshot, -} from '@tanstack/hotkeys/adapter' -import { useCallback, useSyncExternalStore } from 'octane' -import { useDefaultHotkeysOptions } from './HotkeysProvider' -import { subSlot } from './internal' -import { useKeyboardLayout } from './useKeyboardLayout' -import type { KeyboardLayoutMap, formatForDisplay } from '@tanstack/hotkeys' - -const subscribe = () => () => {} +import { formatForDisplay } from '@tanstack/hotkeys' +import { useFormatter } from './_useFormatter' /** * Returns `formatForDisplay` with the platform from `HotkeysProvider`, or the @@ -41,24 +31,6 @@ const subscribe = () => () => {} */ export function useFormatForDisplay(): typeof formatForDisplay export function useFormatForDisplay(slot?: symbol): typeof formatForDisplay { - const provided = useDefaultHotkeysOptions().platform - // The provider's platform also goes in the server snapshot, so a server - // render with a platform does not warn. - const platform = useSyncExternalStore( - subscribe, - () => provided ?? detectPlatform(), - () => provided ?? getServerPlatformSnapshot(), - subSlot(slot, 'platform'), - ) - const layoutMap = ( - useKeyboardLayout as (slot: symbol) => KeyboardLayoutMap | null - )(subSlot(slot, 'layout')) - return useCallback( - createFormatForDisplay( - () => platform, - () => layoutMap, - ), - [platform, layoutMap], - subSlot(slot, 'format'), - ) + // Display tags stay unprefixed, as they were before the ARIA formatter. + return useFormatter(formatForDisplay, '', slot) } diff --git a/packages/octane-hotkeys/tests/conformance.test.ts b/packages/octane-hotkeys/tests/conformance.test.ts index af275b4ad..183bd2330 100644 --- a/packages/octane-hotkeys/tests/conformance.test.ts +++ b/packages/octane-hotkeys/tests/conformance.test.ts @@ -17,6 +17,7 @@ import type { import type { HotkeyRegistrationView, OctaneHotkeyRecorder, + formatForAria, formatForDisplay, } from '@tanstack/octane-hotkeys' @@ -129,12 +130,17 @@ const harness: ConformanceHarness = { mountFormat({ platform }) { let format!: typeof formatForDisplay + let formatAria!: typeof formatForAria const view = render(FormatView, { provider: platform ? { platform } : undefined, - ready: (value: typeof formatForDisplay) => (format = value), + ready: (value: typeof formatForDisplay, aria: typeof formatForAria) => { + format = value + formatAria = aria + }, }) return { format: (hotkey, options) => format(hotkey, options ?? {}), + formatAria: (hotkey, options) => formatAria(hotkey, options), unmount: view.unmount, } }, diff --git a/packages/octane-hotkeys/tests/conformance.tsrx b/packages/octane-hotkeys/tests/conformance.tsrx index c4a831ec1..4cd36e0c6 100644 --- a/packages/octane-hotkeys/tests/conformance.tsrx +++ b/packages/octane-hotkeys/tests/conformance.tsrx @@ -1,13 +1,13 @@ import { useRef } from 'octane'; import { - HotkeysProvider, useFormatForDisplay, useHeldKeyCodes, useHeldKeys, + HotkeysProvider, useFormatForAria, useFormatForDisplay, useHeldKeyCodes, useHeldKeys, useHotkey, useHotkeyHint, useHotkeyRecorder, useHotkeyRegistrations, useHotkeys, useKeyHold, } from '@tanstack/octane-hotkeys'; import type { HeldModifierOptions, HotkeyRecorderOptions, HotkeyRegistrationView, IndividualKey, OctaneHotkeyRecorder, RegisterableHotkey, UseHotkeyDefinition, - formatForDisplay, + formatForAria, formatForDisplay, } from '@tanstack/octane-hotkeys'; import type { ConformanceHotkey, ConformanceProvider, HotkeysSpec, @@ -50,6 +50,7 @@ function Provider({ provider, children }: { provider: ConformanceProvider; child scope={provider.scope} enabled={provider.enabled} exclusive={provider.exclusive} + suspendCharacterKeys={provider.suspendCharacterKeys} appHotkeys={provider.appHotkeys} customHotkeys={provider.customHotkeys as never} defaultOptions={{ platform: provider.platform, hotkey: provider.hotkey }} @@ -100,11 +101,15 @@ export function RecorderView({ provider, options: recorderOptions, ready }: { pr } } -function Format({ ready }: { ready: (format: typeof formatForDisplay) => void }) @{ - ready(useFormatForDisplay()); +type FormatReady = (format: typeof formatForDisplay, formatAria: typeof formatForAria) => void; + +function Format({ ready }: { ready: FormatReady }) @{ + const format = useFormatForDisplay(); + const formatAria = useFormatForAria(); + ready(format, formatAria); } -export function FormatView({ provider, ready }: { provider?: ConformanceProvider; ready: (format: typeof formatForDisplay) => void }) @{ +export function FormatView({ provider, ready }: { provider?: ConformanceProvider; ready: FormatReady }) @{ @if (provider) { } @else { diff --git a/packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md b/packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md index 202239613..53c02de4d 100644 --- a/packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md +++ b/packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md @@ -50,10 +50,11 @@ export function SaveButton({ onSave }: { onSave: () => void }) { | ----------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `useHotkey(hotkey, callback, options?)` | Register one chord, sequence, or app hotkey while the component is mounted. | | `useHotkeys(definitions, commonOptions?)` | Register several hotkeys, or a list built from data, in one call. | -| `` | Set default options, a scope (`exclusive` for dialogs), `enabled`, and app hotkeys for the components inside it. | +| `` | Set default options, a scope (`exclusive` for dialogs), `enabled`, `suspendCharacterKeys` (set from a user setting that turns off single-key shortcuts), and app hotkeys for the components inside it. | | `useHotkeysContext()` | Read the nearest provider's merged defaults and enabled state, or `null` outside a provider. | | `useDefaultHotkeysOptions()` | Read the default options merged from every provider above. | | `useFormatForDisplay()` | Get the function that formats a hotkey as a label, with the provider's `platform` and the user's keyboard layout filled in. Only Chromium browsers report a layout, so physical keys keep their US labels in Firefox and Safari. Use it for every label in a component: `const formatForDisplay = useFormatForDisplay()` at the top, then `formatForDisplay(hotkey)`. | +| `useFormatForAria()` | Get the function that formats a hotkey for `aria-keyshortcuts`, with the provider's `platform` and the user's keyboard layout filled in. Returns `undefined` for a multi-step sequence or no hotkey, so the attribute is omitted. Set `aria-keyshortcuts` on every control that has a shortcut, next to the visible label. | | `useAppHotkeys()` | Get the declared app hotkeys with the user's custom hotkeys applied, to pass to the register API. | | `useAppHotkeyList()` | List every app hotkey with its status, including ones whose components aren't mounted, for a cheat sheet or settings screen. | | `useCustomHotkeys()` | Read, change, and reset the user's custom hotkeys, and check a new one for conflicts. | @@ -65,7 +66,7 @@ export function SaveButton({ onSave }: { onSave: () => void }) { | `useHeldKeys()` | Get every key that's held right now. | | `useHeldKeyCodes()` | Map each held key to its physical `event.code`. | -The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `useFormatForDisplay()` in components. Outside a component, call the plain function and pass `platform`. +The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `useFormatForDisplay()` in components. Outside a component, call the plain function and pass `platform`. The plain `formatForAria` export is deprecated the same way, in favor of `useFormatForAria()`. No provider is required. diff --git a/packages/preact-hotkeys/src/HotkeysProvider.tsx b/packages/preact-hotkeys/src/HotkeysProvider.tsx index b7267a5b8..5ec9fbf5d 100644 --- a/packages/preact-hotkeys/src/HotkeysProvider.tsx +++ b/packages/preact-hotkeys/src/HotkeysProvider.tsx @@ -1,4 +1,4 @@ -import { publishAppHotkeysStore } from '@tanstack/hotkeys' +import { getHotkeyManager, publishAppHotkeysStore } from '@tanstack/hotkeys' import { activateHotkeysProviderScope, createAppHotkeysStore, @@ -120,6 +120,7 @@ export function HotkeysProvider({ scope, exclusive = false, enabled = true, + suspendCharacterKeys = false, }: HotkeysProviderProps) { const parent = useContext(HotkeysContext) ?? NO_PARENT // App hotkeys compare hotkeys, such as for conflicts, on this platform. @@ -151,6 +152,13 @@ export function HotkeysProvider({ return scopeKey ? activateHotkeysProviderScope(scopeKey) : undefined }, [scopeKey]) + // Suspend character key shortcuts while mounted, as the user's setting asks. + useLayoutEffect(() => { + return suspendCharacterKeys + ? getHotkeyManager().suspendCharacterKeys() + : undefined + }, [suspendCharacterKeys]) + // Keep the latest callback, platform, and saved custom hotkeys. Saved data // with the same value, such as an inline JSON.parse, keeps the user's // changes. diff --git a/packages/preact-hotkeys/src/formatForAria.ts b/packages/preact-hotkeys/src/formatForAria.ts new file mode 100644 index 000000000..08537a157 --- /dev/null +++ b/packages/preact-hotkeys/src/formatForAria.ts @@ -0,0 +1,12 @@ +import { formatForAria as coreFormatForAria } from '@tanstack/hotkeys' + +/** + * Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or + * the user's keyboard layout. + * + * @deprecated Use `useFormatForAria()` in components. It returns this + * function with the provider's platform and the user's keyboard layout filled + * in. Outside a component, keep calling this function and pass `platform` + * yourself. + */ +export const formatForAria: typeof coreFormatForAria = coreFormatForAria diff --git a/packages/preact-hotkeys/src/index.ts b/packages/preact-hotkeys/src/index.ts index 4f9560d16..9d7f31c99 100644 --- a/packages/preact-hotkeys/src/index.ts +++ b/packages/preact-hotkeys/src/index.ts @@ -12,8 +12,10 @@ export * from './useHotkeyRegistrations' export * from './useHotkeyScopesState' export * from './useHotkeyHint' export * from './useFormatForDisplay' +export * from './useFormatForAria' // Replaces the core export, to point components to the hook export { formatForDisplay } from './formatForDisplay' +export { formatForAria } from './formatForAria' export * from './useKeyboardLayout' export * from './useAppHotkeys' export * from './useHeldKeys' diff --git a/packages/preact-hotkeys/src/useFormatForAria.ts b/packages/preact-hotkeys/src/useFormatForAria.ts new file mode 100644 index 000000000..e0900afd9 --- /dev/null +++ b/packages/preact-hotkeys/src/useFormatForAria.ts @@ -0,0 +1,52 @@ +import { formatForAria } from '@tanstack/hotkeys' +import { createFormatter } from '@tanstack/hotkeys/adapter' +import { useMemo } from 'preact/hooks' +import { useDefaultHotkeysOptions } from './HotkeysProvider' +import { useKeyboardLayout } from './useKeyboardLayout' + +/** + * Returns `formatForAria` with the platform from `HotkeysProvider`, or the + * detected platform without one. A `platform` passed to the returned function + * wins. Use its value for `aria-keyshortcuts`, so screen readers announce the + * shortcut. It returns `undefined` for a multi-step sequence or no hotkey, so + * Preact omits the attribute. + * + * Physical bindings such as `[KeyQ]` name the key the user presses in + * Chromium browsers, once the keyboard layout has loaded. See + * `useKeyboardLayout`. A `layoutMap` passed to the returned function wins. + * + * Call the hook once at the top of the component; the returned function can + * be called anywhere. Server-rendered apps should set the provider's + * `defaultOptions.platform` from the request with `detectPlatform(userAgent)`, + * so the server HTML matches the user's platform. + * + * @example + * ```tsx + * function SearchButton() { + * const appHotkeys = useAppHotkeys() + * const formatForAria = useFormatForAria() + * const formatForDisplay = useFormatForDisplay() + * const { hotkey } = appHotkeys['search.open'] + * + * return ( + * + * ) + * } + * ``` + */ +export function useFormatForAria(): typeof formatForAria { + // Without a provider platform, formatForAria detects it. + const platform = useDefaultHotkeysOptions().platform + const layoutMap = useKeyboardLayout() + return useMemo( + () => + createFormatter( + formatForAria, + () => platform, + () => layoutMap, + ), + [platform, layoutMap], + ) +} diff --git a/packages/preact-hotkeys/tests/conformance.test.tsx b/packages/preact-hotkeys/tests/conformance.test.tsx index 6415f2710..e9bc42a1d 100644 --- a/packages/preact-hotkeys/tests/conformance.test.tsx +++ b/packages/preact-hotkeys/tests/conformance.test.tsx @@ -4,6 +4,7 @@ import { act, cleanup, render } from '@testing-library/preact' import { useRef } from 'preact/hooks' import { HotkeysProvider, + useFormatForAria, useFormatForDisplay, useHeldKeyCodes, useHeldKeys, @@ -17,6 +18,7 @@ import { import type { HotkeyRegistrationView, IndividualKey, + formatForAria, formatForDisplay, } from '@tanstack/hotkeys' import type { @@ -225,8 +227,10 @@ const harness: ConformanceHarness = { mountFormat({ platform }) { let format!: typeof formatForDisplay + let formatAria!: typeof formatForAria function FormatView() { format = useFormatForDisplay() + formatAria = useFormatForAria() return null } const view = render( @@ -236,6 +240,7 @@ const harness: ConformanceHarness = { ) return { format: (hotkey, formatOptions) => format(hotkey, formatOptions ?? {}), + formatAria: (hotkey, options) => formatAria(hotkey, options), unmount: () => act(() => view.unmount()), } }, diff --git a/packages/react-hotkeys/skills/react-hotkeys/SKILL.md b/packages/react-hotkeys/skills/react-hotkeys/SKILL.md index 921427bc3..94741ae67 100644 --- a/packages/react-hotkeys/skills/react-hotkeys/SKILL.md +++ b/packages/react-hotkeys/skills/react-hotkeys/SKILL.md @@ -53,10 +53,11 @@ export function SaveButton({ onSave }: { onSave: () => void }) { | ----------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `useHotkey(hotkey, callback, options?)` | Register one chord, sequence, or app hotkey while the component is mounted. | | `useHotkeys(definitions, commonOptions?)` | Register several hotkeys, or a list built from data, in one call. | -| `` | Set default options, a scope (`exclusive` for dialogs), `enabled`, and app hotkeys for the components inside it. | +| `` | Set default options, a scope (`exclusive` for dialogs), `enabled`, `suspendCharacterKeys` (set from a user setting that turns off single-key shortcuts), and app hotkeys for the components inside it. | | `useHotkeysContext()` | Read the nearest provider's merged defaults and enabled state, or `null` outside a provider. | | `useDefaultHotkeysOptions()` | Read the default options merged from every provider above. | | `useFormatForDisplay()` | Get the function that formats a hotkey as a label, with the provider's `platform` and the user's keyboard layout filled in. Only Chromium browsers report a layout, so physical keys keep their US labels in Firefox and Safari. Use it for every label in a component: `const formatForDisplay = useFormatForDisplay()` at the top, then `formatForDisplay(hotkey)`. | +| `useFormatForAria()` | Get the function that formats a hotkey for `aria-keyshortcuts`, with the provider's `platform` and the user's keyboard layout filled in. Returns `undefined` for a multi-step sequence or no hotkey, so the attribute is omitted. Set `aria-keyshortcuts` on every control that has a shortcut, next to the visible label. | | `useAppHotkeys()` | Get the declared app hotkeys with the user's custom hotkeys applied, to pass to the register API. | | `useAppHotkeyList()` | List every app hotkey with its status, including ones whose components aren't mounted, for a cheat sheet or settings screen. | | `useCustomHotkeys()` | Read, change, and reset the user's custom hotkeys, and check a new one for conflicts. | @@ -68,7 +69,7 @@ export function SaveButton({ onSave }: { onSave: () => void }) { | `useHeldKeys()` | Get every key that's held right now. | | `useHeldKeyCodes()` | Map each held key to its physical `event.code`. | -The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `useFormatForDisplay()` in components. Outside a component, call the plain function and pass `platform`. +The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `useFormatForDisplay()` in components. Outside a component, call the plain function and pass `platform`. The plain `formatForAria` export is deprecated the same way, in favor of `useFormatForAria()`. No provider is required. In React Server Components frameworks, call the hooks from client components. The package marks `HotkeysProvider` as a client component, so a server layout can render it without a `'use client'` wrapper. To pass `appHotkeys` from a server component, render `AppHotkeysProvider`, which takes the same props. `HotkeysProvider` throws there, because `defineAppHotkeys` ran only on the server. Functions such as `onCustomHotkeysChange` still need a client component. diff --git a/packages/react-hotkeys/src/HotkeysProvider.tsx b/packages/react-hotkeys/src/HotkeysProvider.tsx index 664bcc842..3b22006db 100644 --- a/packages/react-hotkeys/src/HotkeysProvider.tsx +++ b/packages/react-hotkeys/src/HotkeysProvider.tsx @@ -1,6 +1,6 @@ 'use client' -import { publishAppHotkeysStore } from '@tanstack/hotkeys' +import { getHotkeyManager, publishAppHotkeysStore } from '@tanstack/hotkeys' import { activateHotkeysProviderScope, createAppHotkeysStore, @@ -128,6 +128,7 @@ export function HotkeysProvider({ scope, exclusive = false, enabled = true, + suspendCharacterKeys = false, }: HotkeysProviderProps): ReactElement { // eslint-disable-next-line @eslint-react/no-use-context -- React 19+ only; we support React >=18 const parent = useContext(HotkeysContext) ?? NO_PARENT @@ -159,6 +160,13 @@ export function HotkeysProvider({ return scopeKey ? activateHotkeysProviderScope(scopeKey) : undefined }, [scopeKey]) + // Suspend character key shortcuts while mounted, as the user's setting asks. + useIsomorphicLayoutEffect(() => { + return suspendCharacterKeys + ? getHotkeyManager().suspendCharacterKeys() + : undefined + }, [suspendCharacterKeys]) + // Keep the latest callback, platform, and saved custom hotkeys. Saved data // with the same value, such as an inline JSON.parse, keeps the user's // changes. diff --git a/packages/react-hotkeys/src/formatForAria.ts b/packages/react-hotkeys/src/formatForAria.ts new file mode 100644 index 000000000..08537a157 --- /dev/null +++ b/packages/react-hotkeys/src/formatForAria.ts @@ -0,0 +1,12 @@ +import { formatForAria as coreFormatForAria } from '@tanstack/hotkeys' + +/** + * Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or + * the user's keyboard layout. + * + * @deprecated Use `useFormatForAria()` in components. It returns this + * function with the provider's platform and the user's keyboard layout filled + * in. Outside a component, keep calling this function and pass `platform` + * yourself. + */ +export const formatForAria: typeof coreFormatForAria = coreFormatForAria diff --git a/packages/react-hotkeys/src/index.ts b/packages/react-hotkeys/src/index.ts index 60837d5b0..be3f0990b 100644 --- a/packages/react-hotkeys/src/index.ts +++ b/packages/react-hotkeys/src/index.ts @@ -13,8 +13,10 @@ export * from './useHotkeyRegistrations' export * from './useHotkeyScopesState' export * from './useHotkeyHint' export * from './useFormatForDisplay' +export * from './useFormatForAria' // Replaces the core export, to point components to the hook export { formatForDisplay } from './formatForDisplay' +export { formatForAria } from './formatForAria' export * from './useKeyboardLayout' export * from './useAppHotkeys' export * from './useHeldKeys' diff --git a/packages/react-hotkeys/src/useFormatForAria.ts b/packages/react-hotkeys/src/useFormatForAria.ts new file mode 100644 index 000000000..122978e71 --- /dev/null +++ b/packages/react-hotkeys/src/useFormatForAria.ts @@ -0,0 +1,53 @@ +'use client' + +import { formatForAria } from '@tanstack/hotkeys' +import { createFormatter } from '@tanstack/hotkeys/adapter' +import { useMemo } from 'react' +import { usePlatform } from './_usePlatform' +import { useKeyboardLayout } from './useKeyboardLayout' + +/** + * Returns `formatForAria` with the platform from `HotkeysProvider`, or the + * detected platform without one. A `platform` passed to the returned function + * wins. Use its value for `aria-keyshortcuts`, so screen readers announce the + * shortcut. It returns `undefined` for a multi-step sequence or no hotkey, so + * React omits the attribute. + * + * Physical bindings such as `[KeyQ]` name the key the user presses in + * Chromium browsers, once the keyboard layout has loaded. See + * `useKeyboardLayout`. A `layoutMap` passed to the returned function wins. + * + * Call the hook once at the top of the component; the returned function can + * be called anywhere. Server-rendered apps should set the provider's + * `defaultOptions.platform` from the request with `detectPlatform(userAgent)`, + * so the server HTML matches the user's platform. + * + * @example + * ```tsx + * function SearchButton() { + * const appHotkeys = useAppHotkeys() + * const formatForAria = useFormatForAria() + * const formatForDisplay = useFormatForDisplay() + * const { hotkey } = appHotkeys['search.open'] + * + * return ( + * + * ) + * } + * ``` + */ +export function useFormatForAria(): typeof formatForAria { + const platform = usePlatform() + const layoutMap = useKeyboardLayout() + return useMemo( + () => + createFormatter( + formatForAria, + () => platform, + () => layoutMap, + ), + [platform, layoutMap], + ) +} diff --git a/packages/react-hotkeys/tests/conformance.test.tsx b/packages/react-hotkeys/tests/conformance.test.tsx index 38811fadc..6ad514856 100644 --- a/packages/react-hotkeys/tests/conformance.test.tsx +++ b/packages/react-hotkeys/tests/conformance.test.tsx @@ -4,6 +4,7 @@ import { act, cleanup, render } from '@testing-library/react' import React, { useRef } from 'react' import { HotkeysProvider, + useFormatForAria, useFormatForDisplay, useHeldKeyCodes, useHeldKeys, @@ -17,6 +18,7 @@ import { import type { HotkeyRegistrationView, IndividualKey, + formatForAria, formatForDisplay, } from '@tanstack/hotkeys' import type { @@ -225,8 +227,10 @@ const harness: ConformanceHarness = { mountFormat({ platform }) { let format!: typeof formatForDisplay + let formatAria!: typeof formatForAria function FormatView() { format = useFormatForDisplay() + formatAria = useFormatForAria() return null } const view = render( @@ -236,6 +240,7 @@ const harness: ConformanceHarness = { ) return { format: (hotkey, formatOptions) => format(hotkey, formatOptions ?? {}), + formatAria: (hotkey, options) => formatAria(hotkey, options), unmount: () => view.unmount(), } }, diff --git a/packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md b/packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md index 3eca5f055..9067fed36 100644 --- a/packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md +++ b/packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md @@ -60,10 +60,11 @@ export function Editor() { | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `createHotkey(hotkey, callback, options?)` | Register one chord, sequence, or app hotkey for the owning component's lifetime; the hotkey and options can be accessors. | | `createHotkeys(definitions, commonOptions?)` | Register several hotkeys, or an accessor of a list built from data, in one call. | -| `` | Set default options, a scope (`exclusive` for dialogs), `enabled`, and app hotkeys for the components inside it. | +| `` | Set default options, a scope (`exclusive` for dialogs), `enabled`, `suspendCharacterKeys` (set from a user setting that turns off single-key shortcuts), and app hotkeys for the components inside it. | | `useHotkeysContext()` | Read the nearest provider's merged defaults and enabled state, or `null` outside a provider. | | `useDefaultHotkeysOptions()` | Read the default options merged from every provider above. | | `createFormatForDisplay()` | Get the function that formats a hotkey as a label, with the provider's `platform` and the user's keyboard layout filled in. Only Chromium browsers report a layout, so physical keys keep their US labels in Firefox and Safari. Use it for every label in a component: `const formatForDisplay = createFormatForDisplay()` in the component, then `formatForDisplay(hotkey)`. | +| `createFormatForAria()` | Get the function that formats a hotkey for `aria-keyshortcuts`, with the provider's `platform` and the user's keyboard layout filled in. Returns `undefined` for a multi-step sequence or no hotkey, so the attribute is omitted. Set `aria-keyshortcuts` on every control that has a shortcut, next to the visible label. | | `useAppHotkeys()` | Get an accessor of the declared app hotkeys with the user's custom hotkeys applied. | | `createAppHotkeyList()` | Get an accessor listing every app hotkey with its status, for a cheat sheet or settings screen. | | `useCustomHotkeys()` | Read, change, and reset the user's custom hotkeys, and check a new one for conflicts. | @@ -75,7 +76,7 @@ export function Editor() { | `createHeldKeys()` | Get an accessor of every key that's held right now. | | `createHeldKeyCodes()` | Get an accessor mapping each held key to its physical `event.code`. | -The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `createFormatForDisplay()` in components. Outside a component, call the plain function and pass `platform`. +The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `createFormatForDisplay()` in components. Outside a component, call the plain function and pass `platform`. The plain `formatForAria` export is deprecated the same way, in favor of `createFormatForAria()`. The state these return is accessors, including the recorder's fields. No provider is required. diff --git a/packages/solid-hotkeys/src/HotkeysProvider.tsx b/packages/solid-hotkeys/src/HotkeysProvider.tsx index 5d55b5aef..500376557 100644 --- a/packages/solid-hotkeys/src/HotkeysProvider.tsx +++ b/packages/solid-hotkeys/src/HotkeysProvider.tsx @@ -1,4 +1,4 @@ -import { publishAppHotkeysStore } from '@tanstack/hotkeys' +import { getHotkeyManager, publishAppHotkeysStore } from '@tanstack/hotkeys' import { activateHotkeysProviderScope, createAppHotkeysStore, @@ -176,6 +176,13 @@ export const HotkeysProvider: ParentComponent = ( key ? activateHotkeysProviderScope(key) : undefined, ) + // Suspend character key shortcuts while mounted, as the user's setting asks. + createEffect( + () => !!props.suspendCharacterKeys, + (suspend) => + suspend ? getHotkeyManager().suspendCharacterKeys() : undefined, + ) + const contextValue: HotkeysContextValue = { get appHotkeysStore() { return store() ?? parent?.appHotkeysStore ?? null diff --git a/packages/solid-hotkeys/src/createFormatForAria.ts b/packages/solid-hotkeys/src/createFormatForAria.ts new file mode 100644 index 000000000..ca3d6714a --- /dev/null +++ b/packages/solid-hotkeys/src/createFormatForAria.ts @@ -0,0 +1,44 @@ +import { formatForAria } from '@tanstack/hotkeys' +import { createFormatter } from '@tanstack/hotkeys/adapter' +import { createKeyboardLayout } from './createKeyboardLayout' +import { useDefaultHotkeysOptionsSource } from './defaultOptions' + +/** + * Returns `formatForAria` with the provider's `platform` as the default. Use + * its value for `aria-keyshortcuts`, so screen readers announce the shortcut. + * It returns `undefined` for a multi-step sequence or no hotkey, so Solid + * omits the attribute. Call in a component; the returned function works anywhere, + * and JSX updates when the provider's platform changes. An explicit + * `platform` option wins. + * + * Physical bindings such as `[KeyQ]` name the key the user presses in + * Chromium browsers, once the keyboard layout has loaded. See + * `createKeyboardLayout`. An explicit `layoutMap` option wins. + * + * Server-rendered apps should set the provider's `defaultOptions.platform` + * from the request user agent with `detectPlatform(userAgent)`. + * + * @example + * ```tsx + * function SearchButton() { + * const appHotkeys = useAppHotkeys() + * const formatForAria = createFormatForAria() + * return ( + * + * ) + * } + * ``` + */ +export function createFormatForAria(): typeof formatForAria { + const defaultOptions = useDefaultHotkeysOptionsSource() + const layoutMap = createKeyboardLayout() + // Only a physical key reads the layout, so other values don't render again + // when it loads. + return createFormatter( + formatForAria, + () => defaultOptions().platform, + layoutMap, + ) +} diff --git a/packages/solid-hotkeys/src/formatForAria.ts b/packages/solid-hotkeys/src/formatForAria.ts new file mode 100644 index 000000000..e02894702 --- /dev/null +++ b/packages/solid-hotkeys/src/formatForAria.ts @@ -0,0 +1,12 @@ +import { formatForAria as coreFormatForAria } from '@tanstack/hotkeys' + +/** + * Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or + * the user's keyboard layout. + * + * @deprecated Use `createFormatForAria()` in components. It returns this + * function with the provider's platform and the user's keyboard layout filled + * in. Outside a component, keep calling this function and pass `platform` + * yourself. + */ +export const formatForAria: typeof coreFormatForAria = coreFormatForAria diff --git a/packages/solid-hotkeys/src/index.ts b/packages/solid-hotkeys/src/index.ts index 7f39d0c81..60ca4627e 100644 --- a/packages/solid-hotkeys/src/index.ts +++ b/packages/solid-hotkeys/src/index.ts @@ -12,8 +12,10 @@ export * from './createHotkeyRegistrations' export * from './createHotkeyScopesState' export * from './createHotkeyHint' export * from './createFormatForDisplay' +export * from './createFormatForAria' // Replaces the core export, to point components to the primitive export { formatForDisplay } from './formatForDisplay' +export { formatForAria } from './formatForAria' export * from './createKeyboardLayout' export * from './appHotkeys' export * from './createHeldKeys' diff --git a/packages/solid-hotkeys/tests/conformance.test.tsx b/packages/solid-hotkeys/tests/conformance.test.tsx index 8ceed9efc..5cecde0f3 100644 --- a/packages/solid-hotkeys/tests/conformance.test.tsx +++ b/packages/solid-hotkeys/tests/conformance.test.tsx @@ -7,6 +7,7 @@ import { vitestRunner } from '@tanstack/hotkeys-test-utils/conformance/vitest' import { For, createMemo, createSignal, flush } from 'solid-js' import { HotkeysProvider, + createFormatForAria, createFormatForDisplay, createHeldKeyCodes, createHeldKeys, @@ -22,6 +23,7 @@ import type { HotkeyRegistrationView, IndividualKey, RegisterableHotkey, + formatForAria, formatForDisplay, } from '@tanstack/hotkeys' import type { @@ -44,6 +46,7 @@ function withProvider( scope={provider()?.scope} enabled={provider()?.enabled} exclusive={provider()?.exclusive} + suspendCharacterKeys={provider()?.suspendCharacterKeys} appHotkeys={provider()?.appHotkeys} customHotkeys={provider()?.customHotkeys as never} defaultOptions={{ @@ -213,17 +216,20 @@ const harness: ConformanceHarness = { mountFormat({ platform }) { let format!: typeof formatForDisplay + let formatAria!: typeof formatForAria const view = render(() => withProvider( () => (platform ? { platform } : undefined), () => { format = createFormatForDisplay() + formatAria = createFormatForAria() return null }, ), ) return { format: (hotkey, formatOptions) => format(hotkey, formatOptions ?? {}), + formatAria: (hotkey, options) => formatAria(hotkey, options), unmount: () => view.unmount(), } }, diff --git a/packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md b/packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md index 194cf9c6d..84dd3a977 100644 --- a/packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md +++ b/packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md @@ -61,11 +61,12 @@ Before starting, load the `@tanstack/hotkeys#hotkeys-core` skill (`npx @tanstack | `createHotkeys(definitions, commonOptions?)` | Register several hotkeys on the document, or a getter of a list built from data. | | `createHotkeyAttachment(hotkey, callback, options?)` | Create an attachment for `{@attach}` that listens on one element. | | `createHotkeysAttachment(definitions, commonOptions?)` | Create an attachment that registers several hotkeys on one element. | -| `` | Set default options, a scope (`exclusive` for dialogs), `enabled`, and app hotkeys for the components inside it. | +| `` | Set default options, a scope (`exclusive` for dialogs), `enabled`, `suspendCharacterKeys` (set from a user setting that turns off single-key shortcuts), and app hotkeys for the components inside it. | | `setHotkeysContext(options)` | Set the same options from a component's script instead of rendering `HotkeysProvider`; they apply to that component too. | | `getHotkeysContext()` | Read the nearest context's merged defaults and enabled state, or `null` outside one. | | `getDefaultHotkeysOptions()` | Read the default options merged from every context above. | | `getFormatForDisplay()` | Get the function that formats a hotkey as a label, with the provider's `platform` and the user's keyboard layout filled in. Only Chromium browsers report a layout, so physical keys keep their US labels in Firefox and Safari. Use it for every label in a component: `const formatForDisplay = getFormatForDisplay()` during component initialization, then `formatForDisplay(hotkey)`. | +| `getFormatForAria()` | Get the function that formats a hotkey for `aria-keyshortcuts`, with the provider's `platform` and the user's keyboard layout filled in. Returns `undefined` for a multi-step sequence or no hotkey, so the attribute is omitted. Set `aria-keyshortcuts` on every control that has a shortcut, next to the visible label. | | `getAppHotkeys()` | Read `.current`, the declared app hotkeys with the user's custom hotkeys applied. | | `getAppHotkeyList()` | Read `.current`, every app hotkey with its status, for a cheat sheet or settings screen. | | `getCustomHotkeys()` | Read the user's custom hotkeys from `.current`, change or reset them, and check a new one for conflicts. | @@ -77,7 +78,7 @@ Before starting, load the `@tanstack/hotkeys#hotkeys-core` skill (`npx @tanstack | `getHeldKeys()` | Read `.keys`, every key that's held right now. | | `getHeldKeyCodesMap()` | Read `.codes`, which maps each held key to its physical `event.code`. | -The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `getFormatForDisplay()` in components. Outside a component, call the plain function and pass `platform`. +The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `getFormatForDisplay()` in components. Outside a component, call the plain function and pass `platform`. The plain `formatForAria` export is deprecated the same way, in favor of `getFormatForAria()`. No provider is required. Call these at the top level of a component's ` diff --git a/packages/svelte-hotkeys/src/formatForAria.ts b/packages/svelte-hotkeys/src/formatForAria.ts new file mode 100644 index 000000000..1305802b4 --- /dev/null +++ b/packages/svelte-hotkeys/src/formatForAria.ts @@ -0,0 +1,12 @@ +import { formatForAria as coreFormatForAria } from '@tanstack/hotkeys' + +/** + * Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or + * the user's keyboard layout. + * + * @deprecated Use `getFormatForAria()` in components. It returns this + * function with the provider's platform and the user's keyboard layout filled + * in. Outside a component, keep calling this function and pass `platform` + * yourself. + */ +export const formatForAria: typeof coreFormatForAria = coreFormatForAria diff --git a/packages/svelte-hotkeys/src/getFormatForAria.ts b/packages/svelte-hotkeys/src/getFormatForAria.ts new file mode 100644 index 000000000..2f38bad49 --- /dev/null +++ b/packages/svelte-hotkeys/src/getFormatForAria.ts @@ -0,0 +1,43 @@ +import { formatForAria } from '@tanstack/hotkeys' +import { createFormatter } from '@tanstack/hotkeys/adapter' +import { getHotkeysContext } from './HotkeysCtx.js' +import { getKeyboardLayout } from './getKeyboardLayout.svelte.js' + +/** + * Returns `formatForAria` with the provider's `platform` as the default. Use + * its value for `aria-keyshortcuts`, so screen readers announce the shortcut. + * It returns `undefined` for a multi-step sequence or no hotkey, so Svelte + * omits the attribute. Call during component initialization, like `getContext`; + * the returned function works anywhere and reads the provider's current + * defaults. An explicit `platform` option wins. + * + * Physical bindings such as `[KeyQ]` name the key the user presses in + * Chromium browsers, once the keyboard layout has loaded. See + * `getKeyboardLayout`. A `layoutMap` passed to the returned function wins. + * + * Server-rendered apps should set the provider's `defaultOptions.platform` + * from the request user agent with `detectPlatform(userAgent)`. + * + * @example + * ```svelte + * + * + * + * ``` + */ +export function getFormatForAria(): typeof formatForAria { + const context = getHotkeysContext() + const keyboard = getKeyboardLayout() + // Only a physical key reads the layout, so other values don't render again + // when it loads. + return createFormatter( + formatForAria, + () => context?.defaultOptions.platform, + () => keyboard.layout, + ) +} diff --git a/packages/svelte-hotkeys/src/index.ts b/packages/svelte-hotkeys/src/index.ts index 607afe286..e0657725b 100644 --- a/packages/svelte-hotkeys/src/index.ts +++ b/packages/svelte-hotkeys/src/index.ts @@ -24,6 +24,8 @@ export type { } from './HotkeysCtx.js' export * from './getHotkeyHint.svelte.js' export * from './getFormatForDisplay.js' +export * from './getFormatForAria.js' // Replaces the core export, to point components to `getFormatForDisplay` export { formatForDisplay } from './formatForDisplay.js' +export { formatForAria } from './formatForAria.js' export * from './getKeyboardLayout.svelte.js' diff --git a/packages/svelte-hotkeys/src/internal.svelte.ts b/packages/svelte-hotkeys/src/internal.svelte.ts index 269c2516c..00ccec4b4 100644 --- a/packages/svelte-hotkeys/src/internal.svelte.ts +++ b/packages/svelte-hotkeys/src/internal.svelte.ts @@ -1,4 +1,4 @@ -import { publishAppHotkeysStore } from '@tanstack/hotkeys' +import { getHotkeyManager, publishAppHotkeysStore } from '@tanstack/hotkeys' import { activateHotkeysProviderScope } from '@tanstack/hotkeys/adapter' import { createSubscriber } from 'svelte/reactivity' import type { @@ -97,3 +97,16 @@ export function activateScopeWhileMounted(getKey: () => string | null): void { const key = $derived(getKey()) $effect(() => (key ? activateHotkeysProviderScope(key) : undefined)) } + +/** + * Suspends character key shortcuts while the component is mounted and + * `getSuspend` returns true. + */ +export function suspendCharacterKeysWhileMounted( + getSuspend: () => boolean | undefined, +): void { + const suspend = $derived(!!getSuspend()) + $effect(() => + suspend ? getHotkeyManager().suspendCharacterKeys() : undefined, + ) +} diff --git a/packages/svelte-hotkeys/tests/conformance.test.ts b/packages/svelte-hotkeys/tests/conformance.test.ts index 8dcf9f926..32f0832a1 100644 --- a/packages/svelte-hotkeys/tests/conformance.test.ts +++ b/packages/svelte-hotkeys/tests/conformance.test.ts @@ -12,6 +12,7 @@ import { cell } from './conformance/cell.svelte' import type { HotkeyRegistrationView, IndividualKey, + formatForAria, formatForDisplay, } from '@tanstack/hotkeys' import type { ConformanceHarness } from '@tanstack/hotkeys-test-utils/conformance' @@ -150,13 +151,20 @@ const harness: ConformanceHarness = { mountFormat({ platform }) { let format!: typeof formatForDisplay + let formatAria!: typeof formatForAria const view = render(Wrap, { provider: platform ? { platform } : undefined, view: Format, - props: { ready: (value: typeof formatForDisplay) => (format = value) }, + props: { + ready: (value: typeof formatForDisplay, aria: typeof formatForAria) => { + format = value + formatAria = aria + }, + }, }) return { format: (hotkey, formatOptions) => format(hotkey, formatOptions), + formatAria: (hotkey, options) => formatAria(hotkey, options), unmount: view.unmount, } }, diff --git a/packages/svelte-hotkeys/tests/conformance/Format.svelte b/packages/svelte-hotkeys/tests/conformance/Format.svelte index d687c41e3..69a19ef1c 100644 --- a/packages/svelte-hotkeys/tests/conformance/Format.svelte +++ b/packages/svelte-hotkeys/tests/conformance/Format.svelte @@ -1,7 +1,15 @@ diff --git a/packages/svelte-hotkeys/tests/conformance/Provider.svelte b/packages/svelte-hotkeys/tests/conformance/Provider.svelte index f42e698e2..203bb0b85 100644 --- a/packages/svelte-hotkeys/tests/conformance/Provider.svelte +++ b/packages/svelte-hotkeys/tests/conformance/Provider.svelte @@ -14,6 +14,7 @@ scope={provider.scope} enabled={provider.enabled} exclusive={provider.exclusive} + suspendCharacterKeys={provider.suspendCharacterKeys} appHotkeys={provider.appHotkeys} customHotkeys={provider.customHotkeys as never} defaultOptions={{ platform: provider.platform, hotkey: provider.hotkey }} diff --git a/packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md b/packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md index e112c68e0..2bc51a567 100644 --- a/packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md +++ b/packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md @@ -57,11 +57,12 @@ const formatForDisplay = useFormatForDisplay() | ----------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `useHotkey(hotkey, callback, options?)` | Register one chord, sequence, or app hotkey while the component is mounted; the hotkey and options can be refs or getters. | | `useHotkeys(definitions, commonOptions?)` | Register several hotkeys, or a ref or getter of a list built from data, in one call. | -| `` | Set default options, a scope (`exclusive` for dialogs), `enabled`, and app hotkeys for its children, and emit `custom-hotkeys-change`. | +| `` | Set default options, a scope (`exclusive` for dialogs), `enabled`, `suspendCharacterKeys` (set from a user setting that turns off single-key shortcuts), and app hotkeys for its children, and emit `custom-hotkeys-change`. | | `provideHotkeysContext(options)` | Provide the same options from a component's setup instead of rendering `HotkeysProvider`; they apply to its children. | | `useHotkeysContext()` | Read the nearest provider's merged defaults and enabled state, or `null` outside a provider. | | `useDefaultHotkeysOptions()` | Read the default options merged from every provider above. | | `useFormatForDisplay()` | Get the function that formats a hotkey as a label, with the provider's `platform` and the user's keyboard layout filled in. Only Chromium browsers report a layout, so physical keys keep their US labels in Firefox and Safari. Use it for every label in a component: `const formatForDisplay = useFormatForDisplay()` in `setup`, then `formatForDisplay(hotkey)`. | +| `useFormatForAria()` | Get the function that formats a hotkey for `aria-keyshortcuts`, with the provider's `platform` and the user's keyboard layout filled in. Returns `undefined` for a multi-step sequence or no hotkey, so the attribute is omitted. Set `aria-keyshortcuts` on every control that has a shortcut, next to the visible label. | | `useAppHotkeys()` | Get a computed ref of the declared app hotkeys with the user's custom hotkeys applied. | | `useAppHotkeyList()` | Get a computed ref listing every app hotkey with its status, for a cheat sheet or settings screen. | | `useCustomHotkeys()` | Read, change, and reset the user's custom hotkeys, and check a new one for conflicts. | @@ -73,7 +74,7 @@ const formatForDisplay = useFormatForDisplay() | `useHeldKeys()` | Get a ref of every key that's held right now. | | `useHeldKeyCodes()` | Get a ref mapping each held key to its physical `event.code`. | -The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `useFormatForDisplay()` in components. Outside a component, call the plain function and pass `platform`. +The package also re-exports `@tanstack/hotkeys`, such as `matchesKeyboardEvent` and `defineAppHotkeys`. Its plain `formatForDisplay` export is deprecated: use `useFormatForDisplay()` in components. Outside a component, call the plain function and pass `platform`. The plain `formatForAria` export is deprecated the same way, in favor of `useFormatForAria()`. No provider is required. Call the composables synchronously in setup. diff --git a/packages/vue-hotkeys/src/HotkeysProvider.tsx b/packages/vue-hotkeys/src/HotkeysProvider.tsx index 958f8d004..b42187d17 100644 --- a/packages/vue-hotkeys/src/HotkeysProvider.tsx +++ b/packages/vue-hotkeys/src/HotkeysProvider.tsx @@ -32,6 +32,8 @@ const providerProps = { }, /** See `HotkeysProviderScopeProps['enabled']`. */ enabled: { type: Boolean, default: true }, + /** See `HotkeysProviderScopeProps['suspendCharacterKeys']`. */ + suspendCharacterKeys: { type: Boolean, default: false }, } const providerEmits = { @@ -50,6 +52,7 @@ const component = defineComponent({ scope: () => props.scope, exclusive: () => props.exclusive, enabled: () => props.enabled, + suspendCharacterKeys: () => props.suspendCharacterKeys, onCustomHotkeysChange: (custom) => emit('customHotkeysChange', custom), }) return () => slots.default?.() diff --git a/packages/vue-hotkeys/src/HotkeysProviderContext.ts b/packages/vue-hotkeys/src/HotkeysProviderContext.ts index fcab12b10..fd48963fd 100644 --- a/packages/vue-hotkeys/src/HotkeysProviderContext.ts +++ b/packages/vue-hotkeys/src/HotkeysProviderContext.ts @@ -1,4 +1,4 @@ -import { publishAppHotkeysStore } from '@tanstack/hotkeys' +import { getHotkeyManager, publishAppHotkeysStore } from '@tanstack/hotkeys' import { activateHotkeysProviderScope, createAppHotkeysStore, @@ -70,6 +70,10 @@ export interface ProvideHotkeysContextOptions { exclusive?: MaybeRefOrGetter /** See `HotkeysProviderScopeProps['enabled']`. */ enabled?: MaybeRefOrGetter + /** See `HotkeysProviderScopeProps['suspendCharacterKeys']`. */ + suspendCharacterKeys?: MaybeRefOrGetter< + HotkeysProviderScopeProps['suspendCharacterKeys'] + > /** * Every app hotkey, from `defineAppHotkeys`. It can start as `undefined` and * arrive later, such as from a lazy import. Later changes update the @@ -192,6 +196,15 @@ export function provideHotkeysContext( }, { immediate: true }, ) + // Suspend character key shortcuts while mounted, as the user's setting + // asks. + watch( + () => !!toValue(options.suspendCharacterKeys), + (suspend, _, onCleanup) => { + if (suspend) onCleanup(getHotkeyManager().suspendCharacterKeys()) + }, + { immediate: true }, + ) }) const contextValue: VueHotkeysContextValue = { diff --git a/packages/vue-hotkeys/src/formatForAria.ts b/packages/vue-hotkeys/src/formatForAria.ts new file mode 100644 index 000000000..08537a157 --- /dev/null +++ b/packages/vue-hotkeys/src/formatForAria.ts @@ -0,0 +1,12 @@ +import { formatForAria as coreFormatForAria } from '@tanstack/hotkeys' + +/** + * Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or + * the user's keyboard layout. + * + * @deprecated Use `useFormatForAria()` in components. It returns this + * function with the provider's platform and the user's keyboard layout filled + * in. Outside a component, keep calling this function and pass `platform` + * yourself. + */ +export const formatForAria: typeof coreFormatForAria = coreFormatForAria diff --git a/packages/vue-hotkeys/src/index.ts b/packages/vue-hotkeys/src/index.ts index 6b7a69bfc..cbfdf0417 100644 --- a/packages/vue-hotkeys/src/index.ts +++ b/packages/vue-hotkeys/src/index.ts @@ -16,7 +16,9 @@ export * from './useHotkeyRegistrations' export * from './useHotkeyScopesState' export * from './useHotkeyHint' export * from './useFormatForDisplay' +export * from './useFormatForAria' // Replaces the core export, to point components to the composable export { formatForDisplay } from './formatForDisplay' +export { formatForAria } from './formatForAria' export * from './useKeyboardLayout' export * from './useAppHotkeys' diff --git a/packages/vue-hotkeys/src/useFormatForAria.ts b/packages/vue-hotkeys/src/useFormatForAria.ts new file mode 100644 index 000000000..a91a93770 --- /dev/null +++ b/packages/vue-hotkeys/src/useFormatForAria.ts @@ -0,0 +1,45 @@ +import { formatForAria } from '@tanstack/hotkeys' +import { createFormatter } from '@tanstack/hotkeys/adapter' +import { useDefaultHotkeysOptionsSource } from './defaultOptions' +import { useKeyboardLayout } from './useKeyboardLayout' + +/** + * Returns `formatForAria` with the provider's `platform` as the default. Use + * its value for `aria-keyshortcuts`, so screen readers announce the shortcut. + * It returns `undefined` for a multi-step sequence or no hotkey, so Vue omits + * the attribute. Call in `setup`; the returned function works anywhere, and + * templates update when the provider's platform changes. An explicit + * `platform` option wins. + * + * Physical bindings such as `[KeyQ]` name the key the user presses in + * Chromium browsers, once the keyboard layout has loaded. See + * `useKeyboardLayout`. A `layoutMap` passed to the returned function wins. + * + * Server-rendered apps should set the provider's `defaultOptions.platform` + * from the request user agent with `detectPlatform(userAgent)`. + * + * @example + * ```vue + * + * + * + * ``` + */ +export function useFormatForAria(): typeof formatForAria { + const defaultOptions = useDefaultHotkeysOptionsSource() + const layoutMap = useKeyboardLayout() + // Only a physical key reads the layout, so other values don't render again + // when it loads. + return createFormatter( + formatForAria, + () => defaultOptions().platform, + () => layoutMap.value, + ) +} diff --git a/packages/vue-hotkeys/tests/conformance.test.ts b/packages/vue-hotkeys/tests/conformance.test.ts index 89234dbbf..f195118b4 100644 --- a/packages/vue-hotkeys/tests/conformance.test.ts +++ b/packages/vue-hotkeys/tests/conformance.test.ts @@ -5,6 +5,7 @@ import { import { vitestRunner } from '@tanstack/hotkeys-test-utils/conformance/vitest' import { createApp, defineComponent, h, nextTick, ref, shallowRef } from 'vue' import { HotkeysProvider } from '../src/HotkeysProvider' +import { useFormatForAria } from '../src/useFormatForAria' import { useFormatForDisplay } from '../src/useFormatForDisplay' import { useHeldKeyCodes } from '../src/useHeldKeyCodes' import { useHeldKeys } from '../src/useHeldKeys' @@ -18,6 +19,7 @@ import type { HotkeyRegistrationView, IndividualKey, RegisterableHotkey, + formatForAria, formatForDisplay, } from '@tanstack/hotkeys' import type { @@ -220,9 +222,11 @@ const harness: ConformanceHarness = { async mountFormat({ platform }) { let format!: typeof formatForDisplay + let formatAria!: typeof formatForAria const Format = defineComponent({ setup() { format = useFormatForDisplay() + formatAria = useFormatForAria() return () => null }, }) @@ -232,6 +236,7 @@ const harness: ConformanceHarness = { ) return { format: (hotkey, formatOptions) => format(hotkey, formatOptions ?? {}), + formatAria: (hotkey, options) => formatAria(hotkey, options), unmount: view.unmount, } }, diff --git a/test-utils/src/conformance/cases/provider.ts b/test-utils/src/conformance/cases/provider.ts index 0e8bf63ad..6c017f0b4 100644 --- a/test-utils/src/conformance/cases/provider.ts +++ b/test-utils/src/conformance/cases/provider.ts @@ -52,6 +52,55 @@ defineGroup({ expect(callback.calls).toHaveLength(1) }, }, + { + title: + 'suspends character key shortcuts while suspendCharacterKeys is set', + async run({ harness, expect, press }) { + const letter = spy() + const save = spy() + const hotkeys = [ + { hotkey: 'K' as const, callback: letter }, + { hotkey: 'Mod+S' as const, callback: save }, + ] + const view = await harness.mountHotkeys({ + form: 'single', + hotkeys, + provider: { suspendCharacterKeys: true }, + }) + expect(registered().map(({ status }) => status)).toEqual([ + 'suspended', + 'active', + ]) + await press({ key: 'k', code: 'KeyK' }) + await press(mod('s')) + expect([letter.calls.length, save.calls.length]).toEqual([0, 1]) + await view.update({ provider: { suspendCharacterKeys: false } }) + await press({ key: 'k', code: 'KeyK' }) + expect(letter.calls).toHaveLength(1) + await view.update({ provider: { suspendCharacterKeys: true } }) + expect(getHotkeyManager().scopes.state.characterKeysSuspended).toBe( + true, + ) + await view.unmount() + // Unmounting the provider releases its suspension. + expect(getHotkeyManager().scopes.state.characterKeysSuspended).toBe( + false, + ) + }, + }, + { + title: 'suspends character keys even while the provider is disabled', + async run({ harness, expect }) { + await harness.mountHotkeys({ + form: 'single', + hotkeys: [{ hotkey: 'K', callback: spy() }], + provider: { suspendCharacterKeys: true, enabled: false }, + }) + expect(getHotkeyManager().scopes.state.characterKeysSuspended).toBe( + true, + ) + }, + }, { title: 'suspends its hotkeys when the provider is disabled at runtime', async run({ harness, expect, press }) { diff --git a/test-utils/src/conformance/cases/recorder-hint-format.ts b/test-utils/src/conformance/cases/recorder-hint-format.ts index e74516fe4..aaba576ab 100644 --- a/test-utils/src/conformance/cases/recorder-hint-format.ts +++ b/test-utils/src/conformance/cases/recorder-hint-format.ts @@ -1,4 +1,8 @@ -import { detectPlatform, formatForDisplay } from '@tanstack/hotkeys' +import { + detectPlatform, + formatForAria, + formatForDisplay, +} from '@tanstack/hotkeys' import { mod, modDown, modUp } from '../keys' import { defineGroup, spy } from '../suite' import type { Hotkey } from '@tanstack/hotkeys' @@ -317,3 +321,48 @@ defineGroup({ }, ], }) + +defineGroup({ + name: 'format for aria', + requires: ['format'], + cases: [ + { + title: 'formats on the provider platform', + requires: ['provider-defaults'], + async run({ harness, expect }) { + const mac = await harness.mountFormat!({ platform: 'mac' }) + expect(mac.formatAria('Mod+S')).toBe('Meta+S') + await mac.unmount() + const windows = await harness.mountFormat!({ platform: 'windows' }) + expect(windows.formatAria('Mod+S')).toBe('Control+S') + }, + }, + { + title: 'lets a platform passed to format win over the provider', + requires: ['provider-defaults'], + async run({ harness, expect }) { + const view = await harness.mountFormat!({ platform: 'mac' }) + expect(view.formatAria('Mod+S', { platform: 'windows' })).toBe( + 'Control+S', + ) + }, + }, + { + title: 'uses the detected platform without a provider', + async run({ harness, expect }) { + const view = await harness.mountFormat!({}) + expect(view.formatAria('Mod+Shift+S')).toBe( + formatForAria('Mod+Shift+S', { platform: detectPlatform() }), + ) + }, + }, + { + title: 'returns undefined for a sequence or no hotkey', + async run({ harness, expect }) { + const view = await harness.mountFormat!({}) + expect(view.formatAria(['G', 'H'])).toBe(undefined) + expect(view.formatAria(null)).toBe(undefined) + }, + }, + ], +}) diff --git a/test-utils/src/conformance/types.ts b/test-utils/src/conformance/types.ts index 5c5e5a4c1..a1c752d91 100644 --- a/test-utils/src/conformance/types.ts +++ b/test-utils/src/conformance/types.ts @@ -3,6 +3,7 @@ import type { AppHotkeys, CustomHotkeys, DisplayHotkey, + FormatAriaOptions, FormatDisplayOptions, HeldModifierOptions, Hotkey, @@ -105,6 +106,7 @@ export interface ConformanceProvider { scope?: string enabled?: boolean exclusive?: boolean | { allow: Array } + suspendCharacterKeys?: boolean appHotkeys?: AppHotkeys customHotkeys?: CustomHotkeys | null platform?: HotkeyPlatform @@ -190,6 +192,11 @@ export interface FormatSpec { export interface FormatHandle { /** The label, or labels for a sequence, from the adapter's format function. */ format: (hotkey: DisplayHotkey, options?: FormatDisplayOptions) => unknown + /** The `aria-keyshortcuts` value from the adapter's ARIA formatter. */ + formatAria: ( + hotkey: DisplayHotkey | null | undefined, + options?: FormatAriaOptions, + ) => string | undefined unmount: () => MaybePromise } From 0d102d07131e7e7c9a00b869ab2264aff73c3d07 Mon Sep 17 00:00:00 2001 From: Kevin Van Cott Date: Fri, 27 Nov 2026 18:27:39 -0600 Subject: [PATCH 02/13] test(adapters): Check the deprecated formatForAria exports, and log the skills sync --- _artifacts/skill_spec.md | 6 ++++++ .../alpine-hotkeys/tests/format-for-display.test.ts | 8 ++++++-- packages/angular-hotkeys/tests/platform.test.ts | 4 +++- .../ember-hotkeys/tests/integration/platform.test.gts | 10 +++++++--- packages/lit-hotkeys/tests/format-for-display.test.ts | 4 +++- .../octane-hotkeys/tests/useFormatForDisplay.test.ts | 4 +++- .../preact-hotkeys/tests/useFormatForDisplay.test.tsx | 4 +++- .../react-hotkeys/tests/useFormatForDisplay.test.tsx | 4 +++- packages/solid-hotkeys/tests/platform.test.tsx | 4 +++- packages/svelte-hotkeys/tests/platform.test.ts | 4 +++- packages/vue-hotkeys/tests/platform.test.ts | 4 +++- 11 files changed, 43 insertions(+), 13 deletions(-) diff --git a/_artifacts/skill_spec.md b/_artifacts/skill_spec.md index 9e3b6d7b4..515e640b1 100644 --- a/_artifacts/skill_spec.md +++ b/_artifacts/skill_spec.md @@ -203,3 +203,9 @@ The skills teach agents to use those APIs directly. The core skills hold the fra - **Source:** branch `feat/keyboard-layout-labels`. Each adapter's label primitive is now the documented way to format every label in component code, not only in server-rendered apps, because it fills in both the provider's platform and the user's keyboard layout. Each adapter exports a deprecated `formatForDisplay`, the core function, that points to the primitive. Lit gains `FormatForDisplayController` and Alpine gains a scope's `createFormatForDisplay()` and a scope `platform` option. Examples name the primitive's result `formatForDisplay`. - **Changes:** every framework skill's opening snippet and app hotkeys reference use the label primitive, its API table row says to use it for every label and that layout labels work only in Chromium browsers, the re-export sentence says the plain export is deprecated and is still the function to call outside a component, and the server rendering pitfall no longer recommends the plain function. `hotkeys-core` points label maps to the adapter's label primitive. The Angular skill's scope pitfall now says a label also activates a lazily created provider. `domain_map.yaml` and `skill_tree.yaml` are unchanged. - **Checks:** each adapter tests that its deprecated export is the core function; Lit and Alpine have a label primitive test file. `intent validate` passes. Not run: fresh-consumer sessions. + +### Source sync — 2026-11-27 — accessible shortcuts + +- **Source:** branch `feat/format-for-aria` from `d7e198df`. Core adds `formatForAria`, which formats a hotkey as an `aria-keyshortcuts` value, and each adapter has an ARIA formatter beside its label primitive, such as `useFormatForAria`, plus a deprecated plain `formatForAria` export like `formatForDisplay`. `HotkeyManager.suspendCharacterKeys()` and a `suspendCharacterKeys` provider option suspend character key shortcuts for WCAG 2.1.4, and suspended hotkeys report `'suspended'`. Each framework has a new Accessibility guide. +- **Changes:** every framework skill gains an API table row for its ARIA formatter and says its plain `formatForAria` export is deprecated. The seven adapters with a provider list `suspendCharacterKeys` in the provider row. `hotkeys-core` replaces the advice to pass `enabled` for WCAG 2.1.4 with `suspendCharacterKeys`, and gains rows for a hand-written `aria-keyshortcuts` value and a hand-written single-key off switch. `domain_map.yaml` and `skill_tree.yaml` are unchanged: no failure mode or scope decision moved. +- **Checks:** `packages/hotkeys/tests/format-aria.test.ts` and `character-keys.test.ts` cover the formatter and the suspension; the shared conformance suite covers each adapter's ARIA formatter and provider option; each adapter tests that its deprecated export is the core function. `intent validate` passes. Not run: fresh-consumer sessions. diff --git a/packages/alpine-hotkeys/tests/format-for-display.test.ts b/packages/alpine-hotkeys/tests/format-for-display.test.ts index 1a01e1ccd..bdc5eeded 100644 --- a/packages/alpine-hotkeys/tests/format-for-display.test.ts +++ b/packages/alpine-hotkeys/tests/format-for-display.test.ts @@ -1,4 +1,7 @@ -import { formatForDisplay as coreFormatForDisplay } from '@tanstack/hotkeys' +import { + formatForAria as coreFormatForAria, + formatForDisplay as coreFormatForDisplay, +} from '@tanstack/hotkeys' import Alpine from 'alpinejs' import { afterEach, describe, expect, it, vi } from 'vitest' import * as adapter from '../src' @@ -315,8 +318,9 @@ describe("the scope's platform", () => { }) }) -describe('the deprecated formatForDisplay export', () => { +describe('the deprecated formatForDisplay and formatForAria exports', () => { it('is the core function', () => { expect(adapter.formatForDisplay).toBe(coreFormatForDisplay) + expect(adapter.formatForAria).toBe(coreFormatForAria) }) }) diff --git a/packages/angular-hotkeys/tests/platform.test.ts b/packages/angular-hotkeys/tests/platform.test.ts index 1ff282aa4..29f32a9e9 100644 --- a/packages/angular-hotkeys/tests/platform.test.ts +++ b/packages/angular-hotkeys/tests/platform.test.ts @@ -8,6 +8,7 @@ import { TestBed } from '@angular/core/testing' import { HotkeyManager, detectPlatform, + formatForAria as coreFormatForAria, formatForDisplay as coreFormatForDisplay, } from '@tanstack/hotkeys' import { afterEach, describe, expect, it, vi } from 'vitest' @@ -139,8 +140,9 @@ describe('provider platform', () => { }) }) -describe('the deprecated formatForDisplay export', () => { +describe('the deprecated formatForDisplay and formatForAria exports', () => { it('is the core function', () => { expect(adapter.formatForDisplay).toBe(coreFormatForDisplay) + expect(adapter.formatForAria).toBe(coreFormatForAria) }) }) diff --git a/packages/ember-hotkeys/tests/integration/platform.test.gts b/packages/ember-hotkeys/tests/integration/platform.test.gts index 0d6d45662..ab150403a 100644 --- a/packages/ember-hotkeys/tests/integration/platform.test.gts +++ b/packages/ember-hotkeys/tests/integration/platform.test.gts @@ -4,9 +4,12 @@ import { hash } from '@ember/helper' import { clearRender, render, settled } from '@ember/test-helpers' import { setupRenderingTest } from 'ember-qunit' import { module, test } from 'qunit' -import { formatForDisplay as coreFormatForDisplay } from '@tanstack/hotkeys' import { - createHotkeysScope, formatForDisplay, useFormatForDisplay, useHotkeyRecorder, + formatForAria as coreFormatForAria, + formatForDisplay as coreFormatForDisplay, +} from '@tanstack/hotkeys' +import { + createHotkeysScope, formatForAria, formatForDisplay, useFormatForDisplay, useHotkeyRecorder, HotkeyManager, KeyStateTracker, } from '@tanstack/ember-hotkeys' @@ -100,8 +103,9 @@ module('Scope platform', (hooks) => { }) }) -module('The deprecated formatForDisplay export', () => { +module('The deprecated formatForDisplay and formatForAria exports', () => { test('is the core function', (assert) => { assert.strictEqual(formatForDisplay, coreFormatForDisplay) + assert.strictEqual(formatForAria, coreFormatForAria) }) }) diff --git a/packages/lit-hotkeys/tests/format-for-display.test.ts b/packages/lit-hotkeys/tests/format-for-display.test.ts index c38b14e6b..25957e017 100644 --- a/packages/lit-hotkeys/tests/format-for-display.test.ts +++ b/packages/lit-hotkeys/tests/format-for-display.test.ts @@ -1,6 +1,7 @@ // @vitest-environment happy-dom import { + formatForAria as coreFormatForAria, formatForDisplay as coreFormatForDisplay, detectPlatform, getKeyboardLayoutStore, @@ -280,8 +281,9 @@ describe('FormatForDisplayController', () => { }) }) -describe('the deprecated formatForDisplay export', () => { +describe('the deprecated formatForDisplay and formatForAria exports', () => { it('is the core function', () => { expect(adapter.formatForDisplay).toBe(coreFormatForDisplay) + expect(adapter.formatForAria).toBe(coreFormatForAria) }) }) diff --git a/packages/octane-hotkeys/tests/useFormatForDisplay.test.ts b/packages/octane-hotkeys/tests/useFormatForDisplay.test.ts index 79398c59b..7fcd9a669 100644 --- a/packages/octane-hotkeys/tests/useFormatForDisplay.test.ts +++ b/packages/octane-hotkeys/tests/useFormatForDisplay.test.ts @@ -1,5 +1,6 @@ import { HotkeyManager, + formatForAria as coreFormatForAria, formatForDisplay as coreFormatForDisplay, } from '@tanstack/hotkeys' import { createRoot, flushSync, hydrateRoot } from 'octane' @@ -118,8 +119,9 @@ describe('provider platform', () => { }) }) -describe('the deprecated formatForDisplay export', () => { +describe('the deprecated formatForDisplay and formatForAria exports', () => { it('is the core function', () => { expect(adapter.formatForDisplay).toBe(coreFormatForDisplay) + expect(adapter.formatForAria).toBe(coreFormatForAria) }) }) diff --git a/packages/preact-hotkeys/tests/useFormatForDisplay.test.tsx b/packages/preact-hotkeys/tests/useFormatForDisplay.test.tsx index 291a33ece..e1e886a20 100644 --- a/packages/preact-hotkeys/tests/useFormatForDisplay.test.tsx +++ b/packages/preact-hotkeys/tests/useFormatForDisplay.test.tsx @@ -2,6 +2,7 @@ import { HotkeyManager, + formatForAria as coreFormatForAria, formatForDisplay as coreFormatForDisplay, } from '@tanstack/hotkeys' import { act, cleanup, render } from '@testing-library/preact' @@ -159,8 +160,9 @@ describe('provider platform', () => { }) }) -describe('the deprecated formatForDisplay export', () => { +describe('the deprecated formatForDisplay and formatForAria exports', () => { it('is the core function', () => { expect(adapter.formatForDisplay).toBe(coreFormatForDisplay) + expect(adapter.formatForAria).toBe(coreFormatForAria) }) }) diff --git a/packages/react-hotkeys/tests/useFormatForDisplay.test.tsx b/packages/react-hotkeys/tests/useFormatForDisplay.test.tsx index 4fb5cc930..5f55cd8bb 100644 --- a/packages/react-hotkeys/tests/useFormatForDisplay.test.tsx +++ b/packages/react-hotkeys/tests/useFormatForDisplay.test.tsx @@ -2,6 +2,7 @@ import { HotkeyManager, + formatForAria as coreFormatForAria, formatForDisplay as coreFormatForDisplay, } from '@tanstack/hotkeys' import { act, render, renderHook } from '@testing-library/react' @@ -157,8 +158,9 @@ describe('provider platform', () => { }) }) -describe('the deprecated formatForDisplay export', () => { +describe('the deprecated formatForDisplay and formatForAria exports', () => { it('is the core function', () => { expect(adapter.formatForDisplay).toBe(coreFormatForDisplay) + expect(adapter.formatForAria).toBe(coreFormatForAria) }) }) diff --git a/packages/solid-hotkeys/tests/platform.test.tsx b/packages/solid-hotkeys/tests/platform.test.tsx index f519d8d76..8bd7ff959 100644 --- a/packages/solid-hotkeys/tests/platform.test.tsx +++ b/packages/solid-hotkeys/tests/platform.test.tsx @@ -1,6 +1,7 @@ import { render } from '@solidjs/testing-library' import { HotkeyManager, + formatForAria as coreFormatForAria, formatForDisplay as coreFormatForDisplay, } from '@tanstack/hotkeys' import { createSignal, flush } from 'solid-js' @@ -110,8 +111,9 @@ describe('provider platform', () => { }) }) -describe('the deprecated formatForDisplay export', () => { +describe('the deprecated formatForDisplay and formatForAria exports', () => { it('is the core function', () => { expect(adapter.formatForDisplay).toBe(coreFormatForDisplay) + expect(adapter.formatForAria).toBe(coreFormatForAria) }) }) diff --git a/packages/svelte-hotkeys/tests/platform.test.ts b/packages/svelte-hotkeys/tests/platform.test.ts index b36f2f1e5..eed529f88 100644 --- a/packages/svelte-hotkeys/tests/platform.test.ts +++ b/packages/svelte-hotkeys/tests/platform.test.ts @@ -1,5 +1,6 @@ import { HotkeyManager, + formatForAria as coreFormatForAria, formatForDisplay as coreFormatForDisplay, } from '@tanstack/hotkeys' import { flushSync, mount, unmount } from 'svelte' @@ -100,8 +101,9 @@ describe('provider platform', () => { }) }) -describe('the deprecated formatForDisplay export', () => { +describe('the deprecated formatForDisplay and formatForAria exports', () => { it('is the core function', () => { expect(adapter.formatForDisplay).toBe(coreFormatForDisplay) + expect(adapter.formatForAria).toBe(coreFormatForAria) }) }) diff --git a/packages/vue-hotkeys/tests/platform.test.ts b/packages/vue-hotkeys/tests/platform.test.ts index 73963c206..e8bad9856 100644 --- a/packages/vue-hotkeys/tests/platform.test.ts +++ b/packages/vue-hotkeys/tests/platform.test.ts @@ -1,5 +1,6 @@ import { HotkeyManager, + formatForAria as coreFormatForAria, formatForDisplay as coreFormatForDisplay, } from '@tanstack/hotkeys' import { mount } from '@vue/test-utils' @@ -132,8 +133,9 @@ describe('provider platform', () => { }) }) -describe('the deprecated formatForDisplay export', () => { +describe('the deprecated formatForDisplay and formatForAria exports', () => { it('is the core function', () => { expect(adapter.formatForDisplay).toBe(coreFormatForDisplay) + expect(adapter.formatForAria).toBe(coreFormatForAria) }) }) From cd1c66aab538ccac294e72ee36ae4466fa9b2d2b Mon Sep 17 00:00:00 2001 From: Kevin Van Cott Date: Fri, 27 Nov 2026 18:28:36 -0600 Subject: [PATCH 03/13] fix(preact-hotkeys): Drop the deleted utils.ts from the skill's sources --- packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md b/packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md index 53c02de4d..6df470436 100644 --- a/packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md +++ b/packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md @@ -18,7 +18,6 @@ sources: - src/useHotkeys.ts - src/HotkeysProvider.tsx - src/useAppHotkeys.ts - - src/utils.ts - TanStack/hotkeys:docs/framework/preact/quick-start.md - TanStack/hotkeys:docs/framework/preact/guides/hotkeys-provider-and-scopes.md requires: From 63677605df5f5205654f092913680fb83e82f149 Mon Sep 17 00:00:00 2001 From: Kevin Van Cott Date: Fri, 27 Nov 2026 18:29:12 -0600 Subject: [PATCH 04/13] chore: Record the Intent review for accessible shortcuts --- .intent/review-state.json | 3715 +++++++++++++++++++----------------- _artifacts/skill_tree.yaml | 1 - 2 files changed, 2010 insertions(+), 1706 deletions(-) diff --git a/.intent/review-state.json b/.intent/review-state.json index 5ea72c92b..56354f865 100644 --- a/.intent/review-state.json +++ b/.intent/review-state.json @@ -3,51 +3,49 @@ "baseline": "ad56a4b0dbf3c34d8552eca2cc88c5c7000d520a", "items": { "skill:packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md": { - "fingerprint": "19554ef6b5764ec9a5c186e1b25fe00a2e0b2742a8bf19f7cfac1bb55dc905d2", + "fingerprint": "10a7edef342bebeeefee178d3a50925791d2e8eccdaaf514dfe91ac3193694f6", "snapshot": { "docs/framework/alpine/guides/app-hotkeys.md": "e0077fbe45936d6b81d61d778dc212b4a4e0cfa7df1bd99ecfd2470db1c842aa", "docs/framework/alpine/quick-start.md": "822d70174d351fa7b2fe2e773b4fb3a2b558191386001025cdf2efac7b0c7854", - "packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md": "e0403473c7a27af925d286e94c1c8e0bb0a780b03e47b816e5e96afa4da49fd5", + "packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md": "d4243313588ee68e2ca5a0189dfd16b05b75262265306784db3c37a7f0318314", "packages/alpine-hotkeys/skills/alpine-hotkeys/references/app-hotkeys.md": "0fb12f409b5aec0999df3799f86d116b24d4d4d00131041e63d59264a7af1c98", "packages/alpine-hotkeys/src/createAppHotkeys.ts": "4b3745b96bdbf7971347bd930b9525b740abfffbd72dfed556d36cc0cbfa6757", "packages/alpine-hotkeys/src/createHotkey.ts": "bd60563781632082d7a6be702d7761f0652e45afc36ac8aa1efae1106ae98556", "packages/alpine-hotkeys/src/createHotkeyRecorder.ts": "d130aa263a4f38f8c3711cb7aa25125e09832b0915df70a14abe3e74f8d3ae5a", - "packages/alpine-hotkeys/src/createHotkeysScope.ts": "e42b6ce66429087e9e1e3ac40e5ed00d24c2ab9684ac7cfa8aead4ecc68e993b", + "packages/alpine-hotkeys/src/createHotkeysScope.ts": "c0bb763e72ee3e4e5788b3ea6634cf7f1887357db31328237b92fe2d70c464b8", "packages/alpine-hotkeys/src/hotkeyRecorderPlugin.ts": "8ff86447e513f47002c49ed9f60269d485b0cd65b87277bb52cf2d8286ddbd36", "packages/alpine-hotkeys/src/hotkeysPlugin.ts": "35ffb8b772a178690d956f3b3a165b577c40d1723e186f5ffdef4a985f7be90b", "packages/alpine-hotkeys/src/scope.ts": "4521cc6c2abb1706bdd2b73e158e67b2eef7f5d325e22b1f50b65cf473b56905" }, - "head": "fa5664a5cecd519fc36453981e66c13049959fa4", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "updated", - "reason": "Named the hotkeyDirective import next to the install call.", + "reason": "Added the ARIA formatter row and said the plain formatForAria export is deprecated.", "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "skill:packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md": { - "fingerprint": "237317989c8ce962bdca3471aac65f256d472f58d2d2160bc0cf6e6089927c2d", + "fingerprint": "7173169a92b25edbc8e3a50a195023deece08752d6d1e87f08d81ac41220e962", "snapshot": { - "docs/framework/angular/guides/provide-hotkeys-and-scopes.md": "3460ac6a9e5c544bfaa7c901aee1772e0b4122f4d942493998b132747929f97c", + "docs/framework/angular/guides/provide-hotkeys-and-scopes.md": "2cf7b561968f2caf257fd4676221a4f89f26ee039560b03c6731d37e851b0239", "docs/framework/angular/quick-start.md": "6853a3618a349160d18f61b97e8996c3ad4709930d4048192a724afa0b291690", - "packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md": "2a623bf40bdffb6f1f2c64d7159d58ae25a6f8b4681f42e1b0274113ac2b0900", + "packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md": "9c737709235d87d3f18489b2d89c94d1288316c45a5f4651480ecd5d0eb783d7", "packages/angular-hotkeys/skills/angular-hotkeys/references/app-hotkeys.md": "afe63a82c2e4b9269b0fece249317a1ad197481cb8d4ae434c5da48d64f0a2b5", - "packages/angular-hotkeys/src/hotkeys-provider.ts": "9ba3e5c384a39ff3bbd3f163c61ee8f79e698d7f91c8cc35ff963cb80a12900d", + "packages/angular-hotkeys/src/hotkeys-provider.ts": "c352df2bfcec7a6e083dad60fd7581ef510a7fe4a06ac475ee321541352d8413", "packages/angular-hotkeys/src/injectAppHotkeys.ts": "4be08715cf59eeefc5c07d5dd77c2abfd60bdd5d9a4cab57d8c7fb39e632d257", "packages/angular-hotkeys/src/injectHotkey.ts": "1e7974556713a47a9641a97466e2c5218ec4adb65efed4cec1b163756e2b9734", "packages/angular-hotkeys/src/injectHotkeyRecorder.ts": "8b4271888eee532d0674a6b6d034cdc76e06e6080988418fceb5e43756cdcaef", "packages/angular-hotkeys/src/injectHotkeys.ts": "c923eba82e55ee9f0357ea0c355eca05719c0aea806a9acbb2b4de55d2d20d42" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", - "outcome": "no-change", - "reason": "Recorder lifecycle fixes and the syncRecorderOptions helper; the skill does not describe recorder cancel, blur, keyup handling or option syncing.", - "evidence": [ - "git grep in packages/*/skills finds no recorder lifecycle guidance" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "updated", + "reason": "Added the ARIA formatter row and said the plain formatForAria export is deprecated. The provider row lists suspendCharacterKeys.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "skill:packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md": { - "fingerprint": "a0bae934e8fa3df1d8ba52835e06e401cdf8550a453e0d60807bd27ac1213f05", + "fingerprint": "4376ed38a207509dd109338e6a1279c6f9c44edad1bce36d9a6b641eec6dcc44", "snapshot": { "docs/framework/ember/guides/app-hotkeys.md": "0bb08f63eb9974ff3d8a0f408a3db321e16f8c6f285b1bbccd6e6b0a940ca4a7", "docs/framework/ember/quick-start.md": "2c8dc08cae925871408200ef4636adbac20cb23312d18773d726ca340c91f0e1", - "packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md": "96848b2a04a5bd52bd89107127d8c5799f0c06d2859cfb4fd6dbdda12fba4325", + "packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md": "d3279d78ba5fdd2df0f30ded4a25bd88117129c8fcfde252cf6cbf286a8321b5", "packages/ember-hotkeys/skills/ember-hotkeys/references/app-hotkeys.md": "46d43786e0d2a5fca97c203f3e998bb6295ce45c16f181612973fd3788c1acc8", "packages/ember-hotkeys/src/createHotkeysScope.ts": "d7ff70b05c966c0cc62fa41254c8a0b40d4cb96cd081be5eb49878a3e148cbac", "packages/ember-hotkeys/src/onHotkey.ts": "0cd156d6a90b341d7f1006df47911b3033ba523a68758274c00df7c8cb9dfbff", @@ -57,25 +55,22 @@ "packages/ember-hotkeys/src/useHotkeyRecorder.ts": "67e6ac60574e3d510f8d6199a5eb92303b6315051d1fb8a42decf75dcebc070b", "packages/ember-hotkeys/src/useHotkeys.ts": "963345b3720ddefec8677b9b9d9dfa2b6346e22b32f9f2034d406b43e5c5ccf8" }, - "head": "a0d13335f6d9976ac25ead467b4658185c741b51", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "updated", - "reason": "The Ember version floor is now 4.12. The scope defaults order change matches what the skill and the App Hotkeys guide already say.", - "evidence": [ - "packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md", - "docs/framework/ember/guides/app-hotkeys.md" - ] + "reason": "Added the ARIA formatter row and said the plain formatForAria export is deprecated.", + "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] }, "skill:packages/hotkeys/skills/app-hotkeys/SKILL.md": { - "fingerprint": "343a2d27fffcd7519a96ee497f9a4c8dcf2805157dbf564d3ead99060b77c0e8", + "fingerprint": "fe0231cfc032a528e1bc98389a81541d6d77d4cf2e4bf5c729286be8545b7817", "snapshot": { "docs/framework/react/guides/app-hotkeys.md": "307e6ced70379adc2abec5094404136c6c68753009605a83d890f1d15af257d9", - "docs/framework/react/guides/cheat-sheet-ui-helpers.md": "3f611925b7aa3f21506b8f2cf5e943523ad395e1bb49e535a6c8f785d3246efa", + "docs/framework/react/guides/cheat-sheet-ui-helpers.md": "2a4d9591eb6d721bca63a50385ef93c2a651785bc45dfa453f5a628c9e577b84", "docs/framework/react/guides/custom-hotkey-recording.md": "250869e7fcbb8af8e78b01538662198a2668151ced170ee37ed881da4a6f0693", "packages/hotkeys/skills/app-hotkeys/SKILL.md": "da21229bee202a356943a92987ab971eb5157d4a51639a48e67122e8c25e6f3c", "packages/hotkeys/skills/app-hotkeys/references/recording.md": "cee8af22374e484878c9f148d4fee911de4239700961ffb8a00880e779aa6f67", - "packages/hotkeys/src/app-hotkeys.ts": "ef6787cf1077c6d25a6760e7fad13b7a8f23a4571d5986ab74b2e7fa075f0c92", + "packages/hotkeys/src/app-hotkeys.ts": "4fc089bf6f3f247d8ccd6cc819571d945f45e95271e5169707a6c29d7ec6011f", "packages/hotkeys/src/conflicts.ts": "005f63fdfa139d51203306ef9b3fb83ebf76ddd22553162a5262827a5e9d0921", - "packages/hotkeys/src/hotkey-recorder.ts": "4759bfb54ad43fc5c1a347404679c3d978fffade5f36f5c8e0809638c5744443", + "packages/hotkeys/src/hotkey-recorder.ts": "bcb4f1e3940abb28b3611ee59d43c6545489dec15fd02b4d070b06ebd725f4bc", "packages/react-hotkeys/tests/skills/shortcut-settings/fixture.tsx": "ecc6155241ebccca4ef4cd76e8925b3abeec73e9d88e6906bdf70e4c604788aa", "packages/react-hotkeys/tests/skills/shortcut-settings/grade.tsx": "c3538737712f00d52a4b6290d078a37f4c4d8881b9ce512f205f9e531b982f5e", "packages/react-hotkeys/tests/skills/shortcut-settings/mistakes/full-list-storage.tsx": "1d40680b6046115e8c7c71f474e3487fc953b82220e0f5809b01f39c0ca12206", @@ -85,23 +80,23 @@ "packages/react-hotkeys/tests/skills/shortcut-settings/solution.tsx": "3441296dea51490188d34991428fe2b8bf11ce6fafbdf6e2f7595ff7082f1400", "packages/react-hotkeys/tests/skills/shortcut-settings/task.md": "7163ed96e6694c745461f0edaf296b353906cfdb868f9c5df7d08ee01a4ba0ea" }, - "head": "b6df86ecbe091533369f326371ffc01b536bc37a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Wording on how the recorder treats Windows AltGr; skills do not state it.", + "reason": "The skill describes no registration statuses or recorder state. The changed sources only update the 'suspended' status comment and move the recorder's initial state into the internal constants module.", "evidence": ["packages/hotkeys/skills/app-hotkeys/SKILL.md"] }, "skill:packages/hotkeys/skills/hotkeys-core/SKILL.md": { - "fingerprint": "b0064546c4c4e9ed8af61bd7f047ef7d65b9b44b35920534a54c1b65b3072142", + "fingerprint": "ec9b9dcc0b46c027e14265a6cadbc6c5fbd33e2c61c8a7b013ae5a3127eea8fa", "snapshot": { - "docs/framework/react/guides/hotkeys-provider-and-scopes.md": "445939ab4d9967b16ddd76ba3cb3639680fa552ea74be684136c8581b5d6db11", - "docs/framework/react/guides/hotkeys.md": "a7891b1b331411057749a927758001ac935fa84da4e9ce2a461ab450203f6302", + "docs/framework/react/guides/hotkeys-provider-and-scopes.md": "57039ef29571e18c058ea77d104140e33c9b7fbda7de561c4d77247a47a566ce", + "docs/framework/react/guides/hotkeys.md": "4f49e8ef1873ac0f85ed63f7c7f3d5fe6d0561b510dbe42c6a593217335ff1db", "docs/framework/react/guides/sequences.md": "35a2042e6adb52cca5c10ad36a8cbe65783b38be3383af612f368007a5f4b724", - "docs/guides/sensible-defaults.md": "96163627a03c50b44d62f49ee35eae4609445b3d7d928283391dacf79a250b6c", - "packages/hotkeys/skills/hotkeys-core/SKILL.md": "3f107f5591433d1a6ca8c65c4652b4c7a47796c01d7e28d6338d387b9d6f496d", + "docs/guides/sensible-defaults.md": "a6f0399f730a2f4742f206efb08517f2493db96b098e76b4082686a07c1c229f", + "packages/hotkeys/skills/hotkeys-core/SKILL.md": "f7522e6fcc2173cbaf0d6f3293e6e6233d891c3032ec022f8c582997f1a213c8", "packages/hotkeys/skills/hotkeys-core/references/scopes.md": "1ae616ff7ce92d9679bbd0752ada572c2060c33ea7e7e638bfcc9d5425ac6bfa", "packages/hotkeys/skills/hotkeys-core/references/testing.md": "62cffeecc4bc67b71e0cb0f744c7a3bdac12a97e3cbddae6365c67c91ad00645", - "packages/hotkeys/src/hotkey-manager.ts": "dde5bcfc98f4f961452a7addcb2be073dbc7c2bd7f3870e16ea9070be2a0a778", - "packages/hotkeys/src/match.ts": "bd5ea7546cf68a2ce2d6d0d98b83ce62eebec7b15f50781456472dac29ac2740", + "packages/hotkeys/src/hotkey-manager.ts": "73ec1aeee7e75edcfa27149d3015f706da732cd867ef3db6afd1f257980fc0be", + "packages/hotkeys/src/match.ts": "d94dfcb1665ef00c77c07972948d482827bb8707c74ebc8bf39246834b548e16", "packages/react-hotkeys/tests/skills/editor-shortcuts/editor-shortcuts.test.tsx": "73411ec7c25652244ed31ad4120880dfc08d6e10af959bef04d2df5360769fde", "packages/react-hotkeys/tests/skills/editor-shortcuts/fixture.tsx": "613a833bb6412b600925deb4009d16cfbfe7afa9a5dc0b82d1a39b8da8c0230b", "packages/react-hotkeys/tests/skills/editor-shortcuts/grade.tsx": "abb8c54f80f8f64bc55dbf9082ac2275aea03d5626437c3366bd8393463cdb1c", @@ -112,75 +107,71 @@ "packages/react-hotkeys/tests/skills/editor-shortcuts/solution.tsx": "ec81379bf0e3a9950222cf8525f82f8abefeb6b46339550fd3a8622e61bf4f0d", "packages/react-hotkeys/tests/skills/editor-shortcuts/task.md": "9610d80e7add59f0433cbf210562ff8c481dc2c14371ce31c00a329d9ff1fedf" }, - "head": "b6df86ecbe091533369f326371ffc01b536bc37a", - "outcome": "no-change", - "reason": "Wording on how the recorder treats Windows AltGr; skills do not state it.", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "updated", + "reason": "Replaced the advice to pass enabled for WCAG 2.1.4 with suspendCharacterKeys, and added rows for a hand-written aria-keyshortcuts value and a hand-written single-key off switch.", "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "skill:packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md": { - "fingerprint": "86c2dfff4d5ed7ff73b8b1ec51dd036a1443d49063d7fb230e8adf04f03a35d4", + "fingerprint": "7bd0669b0a83ee504a22eac778e690a677bdb0c46b97b389f17d64bb89ef0d92", "snapshot": { "docs/framework/lit/guides/app-hotkeys.md": "28e5957604e21250f70aa925a6576f820dd0be2957b209557064d013e45abb94", "docs/framework/lit/quick-start.md": "23152e6740cda01b503a85357b6cca35d948ae23d9dc4703c7fddc3b53c354f3", - "packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md": "2abef2d5efb7887b8737e661722eb3b5aa80f117666ac13e12c35a0de1c422af", + "packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md": "1696e5520ba1ce1dd07ead07ba52a3c5dd53ccc1cb5391aff4548bb8a5c2954a", "packages/lit-hotkeys/skills/lit-hotkeys/references/app-hotkeys.md": "3c5b805f628d0b14361e43944283f3b7271362cc5831def6406e677ce21f2678", "packages/lit-hotkeys/src/controllers/app-hotkeys.ts": "b597a0682f4b4168794cef6a0f3f512649b01cd1796d059e220d73bee58968a4", "packages/lit-hotkeys/src/controllers/hotkey-recorder.ts": "8e437236054499fbf7ca29019bbff0f951841bf711d72956217a1fa381b8b5cf", "packages/lit-hotkeys/src/controllers/hotkey.ts": "79d2602f8855075599d0fb7250e865a3b525eda5a5dc274a3c386edd1abe734e", "packages/lit-hotkeys/src/decorators/hotkey.ts": "ff03f664004dd013a2cdd984e7587f4f8c3ac651bf98efc9918a8296393d13ef" }, - "head": "05be1291a103f39c2570697d44e8df5e039f4497", - "outcome": "no-change", - "reason": "The framework skill points to its guides and states no recorder output strings or macOS Command rules that changed.", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "updated", + "reason": "Added the ARIA formatter row and said the plain formatForAria export is deprecated.", "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "skill:packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md": { - "fingerprint": "e156621a3114b1c6f1e08f3fb46bbcf5a41a5e6e9f66d04efb5a81b2a9edafef", + "fingerprint": "025cea9edee4bf41ea46a1aa2861463f94f19b4f2d0ae685361961da72f65e28", "snapshot": { - "docs/framework/octane/guides/hotkeys-provider-and-scopes.md": "bf6c197492171df49814321c37b7e9c9981e3b02748179a6c32e88e91f77297e", + "docs/framework/octane/guides/hotkeys-provider-and-scopes.md": "9cbd09514a6d869bb2a9da0b57b743a2fe5b233bc13f330a369316fc4c820f4b", "docs/framework/octane/quick-start.md": "239e2bc768ad1a9ebb0c6c972756d23ff6d78752d9355da6bb566eb4cd1591d1", - "packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md": "f9e9a3920370f2abe943634fb25d8be515cde8f0d4a6c510552c60b206c9fc72", + "packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md": "dd517c2b2614ef6d2a7adbf7e59d4f4323509d01ad6ca1da5ca17ecf22521e39", "packages/octane-hotkeys/skills/octane-hotkeys/references/app-hotkeys.md": "ddb3f0f9457fa245b29e8cf8e98088a3bafbf493e4d702a6228795f6ee358442", - "packages/octane-hotkeys/src/HotkeysProvider.ts": "c3d20e26a4c2e776398e22ee9115943f9edd02c6445d237daddd4d88a24a927a", + "packages/octane-hotkeys/src/HotkeysProvider.ts": "000f3421ab5f99e66516a73283c83814a1fb5d72f517fefccc1eacf0dd891ce5", "packages/octane-hotkeys/src/useAppHotkeys.ts": "e8b50b1c87560fd3d0169596405121326bd64b3f99108f83cf87c4d18802eed8", "packages/octane-hotkeys/src/useHotkey.ts": "7fad592ebe66e2c1822d2ca4018263d560aee41ba4334d9940dfd67b3ad44b09", "packages/octane-hotkeys/src/useHotkeys.ts": "a6ce6be008bc44382444ed9c11e1e8fcee6901b49e58d40d3ce6c88e64e4f084" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", - "outcome": "no-change", - "reason": "The skill does not describe conflictBehavior replace, sequence suffix ownership, sequence scope order, the mount guard, or React effect timing; the scopes reference already says only the winning scope runs.", - "evidence": [ - "git grep for replace, conflictBehavior and the sequence rules in packages/*/skills finds nothing to update" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "updated", + "reason": "Added the ARIA formatter row and said the plain formatForAria export is deprecated. The provider row lists suspendCharacterKeys.", + "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] }, "skill:packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md": { - "fingerprint": "c3d150d3ac5a28c301e8adfcba5ef6beee7db66b924ce8221579e7d514bc6136", + "fingerprint": "d2df79b13313e90746b330bdad8b2f0f288b7eeb2554b317464a5ce3d59efd10", "snapshot": { - "docs/framework/preact/guides/hotkeys-provider-and-scopes.md": "2c5824f8df01f95951b70bbbff125fb0dc2758d3278169fe7778b98a1ea8cc90", + "docs/framework/preact/guides/hotkeys-provider-and-scopes.md": "1bc452334df3ef96debf4377310266eca28dbc6330f38a403521c50e45fd076b", "docs/framework/preact/quick-start.md": "247a2beda75d6c50bc0345aa8a9ef0a247e588fe8f4cfe7ea7733c6c8c9f15db", - "packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md": "afdeebd81dfb59c167bba312cb753832951dce67c7dcac1f99772aa8d481a797", + "packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md": "feb35f7074c0d661ecb882418a8bb4614696aea2f380b3d613f2486bea52384c", "packages/preact-hotkeys/skills/preact-hotkeys/references/app-hotkeys.md": "e28a5865d89549981131050565cbf6a9e9d7ed658c3d9254036d09888b5e42cb", - "packages/preact-hotkeys/src/HotkeysProvider.tsx": "b0cf46fdcd473833652f66a8395574572697f22d56733825b30349644aa4ccfc", + "packages/preact-hotkeys/src/HotkeysProvider.tsx": "0163a1bed2fa773280547ee5ae2a41172fe2ae8a0cac0e54d51833cde0e34531", "packages/preact-hotkeys/src/useAppHotkeys.ts": "493b6e75c203964b8f3b4e9ff455938d0dbfb041e3a44961164452ff9b1dde8c", "packages/preact-hotkeys/src/useHotkey.ts": "5ba81a7d4b3919dea427287ac728516b75ebcd49e3e2a7b9c5bca29fc92f012d", "packages/preact-hotkeys/src/useHotkeys.ts": "94635ce9d32395201b7b140ca1bfd7bc5d8cf22a72709fc4e4f9383b30e359cb" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", - "outcome": "no-change", - "reason": "The skill does not describe conflictBehavior replace, sequence suffix ownership, sequence scope order, the mount guard, or React effect timing; the scopes reference already says only the winning scope runs.", - "evidence": [ - "git grep for replace, conflictBehavior and the sequence rules in packages/*/skills finds nothing to update" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "updated", + "reason": "Added the ARIA formatter row and said the plain formatForAria export is deprecated. The provider row lists suspendCharacterKeys. Removed src/utils.ts, which no longer exists, from the sources.", + "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] }, "skill:packages/react-hotkeys/skills/react-hotkeys/SKILL.md": { - "fingerprint": "d9274785b5934bcf6e1c4e1ca70ec5eaee51bdce8b778384680869fd0f4eab6d", + "fingerprint": "7efadf87ba0b2dd1beea571f9b88308f777db1a1bc5b7606005a73a75d502ef1", "snapshot": { - "docs/framework/react/guides/hotkeys-provider-and-scopes.md": "445939ab4d9967b16ddd76ba3cb3639680fa552ea74be684136c8581b5d6db11", + "docs/framework/react/guides/hotkeys-provider-and-scopes.md": "57039ef29571e18c058ea77d104140e33c9b7fbda7de561c4d77247a47a566ce", "docs/framework/react/quick-start.md": "f6024d88aae3520c0457cf3d8590a5cad61e9c5a9ff9278528cfebaedc523c49", - "packages/react-hotkeys/skills/react-hotkeys/SKILL.md": "30140dfebbc4d822d2267af8a23a476c0bfd7e012d822e890edcd7d2fd4f883f", + "packages/react-hotkeys/skills/react-hotkeys/SKILL.md": "d83a8d4abcf4103fc75c5cfe4c2abd3c1ac6976c9a91cf58d98b66496bd2c75c", "packages/react-hotkeys/skills/react-hotkeys/references/app-hotkeys.md": "61b0ecf75e33407b23df56c9aa121af21c9710f6ea5fd40f7778805ce88a9933", "packages/react-hotkeys/src/AppHotkeysProvider.tsx": "b75dd646421fc7f5f5fa868607aa342aeb0b55c109c1adc666d78d968b1fad1a", - "packages/react-hotkeys/src/HotkeysProvider.tsx": "cfc2faa5d15fdc0d1b546770efef3bb6bfa69dd7edb2459b27035818e9cc3d83", + "packages/react-hotkeys/src/HotkeysProvider.tsx": "fdd85693fa9b1d84341a0152601c606ca2be92d33e66019472d78029661dca78", "packages/react-hotkeys/src/useAppHotkeys.ts": "863185672c9c9aaa86c4a28f49707fa3332fba1826ab7a37a43405c667caae93", "packages/react-hotkeys/src/useHotkey.ts": "2222a3625e2a3b52f178681f6373be6a7dc278d2b5dff56ed833050f767b6e56", "packages/react-hotkeys/src/useHotkeys.ts": "b9718ef67f2c773b7f474c0c556b480657faed6e798c486a978644bdb30ee2f7", @@ -202,119 +193,115 @@ "packages/react-hotkeys/tests/skills/shortcut-settings/solution.tsx": "3441296dea51490188d34991428fe2b8bf11ce6fafbdf6e2f7595ff7082f1400", "packages/react-hotkeys/tests/skills/shortcut-settings/task.md": "7163ed96e6694c745461f0edaf296b353906cfdb868f9c5df7d08ee01a4ba0ea" }, - "head": "5b301097c99c779e62e481e6f313af7ca2daf771", - "outcome": "no-change", - "reason": "Renames an internal React hook to the common useIsomorphicLayoutEffect name; no skill guidance changes.", - "evidence": ["Internal file, not exported"] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "updated", + "reason": "Added the ARIA formatter row and said the plain formatForAria export is deprecated. The provider row lists suspendCharacterKeys.", + "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] }, "skill:packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md": { - "fingerprint": "52f8880e1abd66f78b2032b41fb09cbf33a3ef1d2a03a08bfc5e8b97c493de36", + "fingerprint": "94db0a4720e2f5829ceed0d2d8015d5ef55b174dcb5210aeb2f926a2243d7745", "snapshot": { - "docs/framework/solid/guides/hotkeys-provider-and-scopes.md": "e94cd37ce6d7d941fe2f9db5338d3fe3bb8b3a2ec57a06daa7d592ac6add1807", + "docs/framework/solid/guides/hotkeys-provider-and-scopes.md": "bb0d2f900a842db0783c98be2e7aba49ddbc8e5230534ca4dbe3434663ade674", "docs/framework/solid/quick-start.md": "0f52444f47723a9340efdb2369a18dc6ede31b9afcdc0d8dc9344343bc5a4f5f", - "packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md": "7e786434d39e7e374881e015d5ce420c94b5c2dbdb0d953a9c265803c31b0227", + "packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md": "bf70f4bb8b1c14e5a44fda637d27795e70cde0b36e44d526e0fdacc5809b1dfb", "packages/solid-hotkeys/skills/solid-hotkeys/references/app-hotkeys.md": "336b062c42f81d57ef2da8a5a1432976298fb90b8fb8a40121c38a8a0eda7c3c", - "packages/solid-hotkeys/src/HotkeysProvider.tsx": "06bb230001b041e7318df3ce0511229837eff97e2db9cf783e2eb8d98f5aa73b", + "packages/solid-hotkeys/src/HotkeysProvider.tsx": "06ca96422058799bbc2ef9b266fcbc790265ef0313f704763ed48d91a6ef597c", "packages/solid-hotkeys/src/appHotkeys.ts": "4494eabd3760ecc81a40936e03e34ea9a7ad26fb3998668b34d5f2c0cdd25136", "packages/solid-hotkeys/src/createHotkey.ts": "17bbb96271aa4c1a7cef5741edf199a367a6d7ecef5a328b1be6b43ff052b349", "packages/solid-hotkeys/src/createHotkeys.ts": "2370f32eb6740eb8799417fc233ac3c36a5f6470b1f439de05c29002fc545176" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", - "outcome": "no-change", - "reason": "The skill does not describe conflictBehavior replace, sequence suffix ownership, sequence scope order, the mount guard, or React effect timing; the scopes reference already says only the winning scope runs.", - "evidence": [ - "git grep for replace, conflictBehavior and the sequence rules in packages/*/skills finds nothing to update" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "updated", + "reason": "Added the ARIA formatter row and said the plain formatForAria export is deprecated. The provider row lists suspendCharacterKeys.", + "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "skill:packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md": { - "fingerprint": "ace4530cb330df73749a2d1c42a96c9339b5d0c949abb6bd7d75ea2dacd7b500", + "fingerprint": "f24acc3400daedb2229116ff9bcc3f7f24fa1631b31c943a5d7b458089b6c8bd", "snapshot": { - "docs/framework/svelte/guides/hotkeys-provider-and-scopes.md": "79248cbcc9320b70185be8311b76332de3b9de2793cfa0b88ea56848d073bd92", + "docs/framework/svelte/guides/hotkeys-provider-and-scopes.md": "5d2c01722fa2357435fe3216c462071f8c8815ebe21ef9acfbabf620e2335103", "docs/framework/svelte/quick-start.md": "d1995321a1c5032843ee5a802f3b699fa41cee6d17dd6f3c9349faed3c663b12", - "packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md": "858548a437108d8e3a2ed3f79f1be92a3a51923f001ec4eedf0484391bff2e2e", + "packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md": "d231d28b756c1c7252f52d12b04654dddc6c0323352a7c38c821cc9d9f428669", "packages/svelte-hotkeys/skills/svelte-hotkeys/references/app-hotkeys.md": "f60367e6667d76633886af1398807b5ad54e4586e58b41b2f6d7ee180ab0e1c4", - "packages/svelte-hotkeys/src/HotkeysCtx.ts": "a221afbf74805ee0e0e40c82d2d3733164fc1c884dfbe4aa8176323121811075", - "packages/svelte-hotkeys/src/HotkeysProvider.svelte": "3acc9fa620080397ab733579ebf0d460631986715d75d010f87a7cad0a1a2e9b", + "packages/svelte-hotkeys/src/HotkeysCtx.ts": "4fd46081dcce520aea19e850e1443f696353419940bc9a9801bd073817a6a585", + "packages/svelte-hotkeys/src/HotkeysProvider.svelte": "abd035cea0913fb80716bd04b710267118c83ec761081b5de97047a2f98f5ce0", "packages/svelte-hotkeys/src/createHotkey.svelte.ts": "fc6dac92966f1f506450526ca87a9d2de715ba36202b09446f9f325503abb906", "packages/svelte-hotkeys/src/createHotkeyRecorder.svelte.ts": "78dc96dcc7127235a29ec03fb41920503bda7838b8e54b878cf5b7320d2c8f6b", "packages/svelte-hotkeys/src/createHotkeys.svelte.ts": "dcc7112c4a11a36198083d3f9c18dd6d5cdddb10248ed65ee14b8ff15f0c4757", "packages/svelte-hotkeys/src/getAppHotkeys.svelte.ts": "5ec9bad56cc543b56d985c56324f5cb557e5fee624b209e8361a0002e4fd888e" }, - "head": "7bba634c6fe0eea1054d177cb5707eb81cc23cde", - "outcome": "no-change", - "reason": "Review follow-ups: guard edge cases, React option timing, Svelte seeding, guide samples; no skill guidance changes.", - "evidence": ["hotkey-recorder.test.ts"] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "updated", + "reason": "Added the ARIA formatter row and said the plain formatForAria export is deprecated. The provider row lists suspendCharacterKeys.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "skill:packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md": { - "fingerprint": "d5b3c8d5e762bb689fdbfd5df7b18753d35417258fdbd9c31e3755db39fea608", + "fingerprint": "26e89aecdbf3a1f9083418f932483d9d1fce36436525c3caead3de68ca32b77b", "snapshot": { - "docs/framework/vue/guides/hotkeys-provider-and-scopes.md": "341b593efd34c0aa68c02dc95f186513d5c15139711d85c4827681ecab6af390", + "docs/framework/vue/guides/hotkeys-provider-and-scopes.md": "939a50350a1f9bd8d80f4b0ef903293a8441bf783991af28d96c57da0efb2564", "docs/framework/vue/quick-start.md": "00e4e57173a5e03a8299398a1611e0a309738b0563f69e765bc10cda8fa95be1", - "packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md": "7d9baffc9b4643da50529c2c86359707f3773bf2c9e025b01a90a8b005d55c99", + "packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md": "642d1655c9e10de79b7da415f36f0fead499bf9c4b4e79da7c28d1da52edad09", "packages/vue-hotkeys/skills/vue-hotkeys/references/app-hotkeys.md": "9ff677a8ff993fb9a8e749e6885cbff28fd08bd1dc0f8d0150da19d29ec18736", - "packages/vue-hotkeys/src/HotkeysProvider.tsx": "883b775c12bc47753915159da54aab2b38e42c675ad46658761cb3f27f00be86", - "packages/vue-hotkeys/src/HotkeysProviderContext.ts": "818ecdeca0d9f4d2064bf6f15d9679ef3ca8bdd68b05b8e675654b6eea0471cf", + "packages/vue-hotkeys/src/HotkeysProvider.tsx": "c7b37b66dc4310be828619997ced75f1b6e4f6a8d7606bf3404c5f8abc5f2528", + "packages/vue-hotkeys/src/HotkeysProviderContext.ts": "2cc7eaec4d348401d36c7b1a06903e91b13ee41c3057eb2d0f7bda55f6c9fa3a", "packages/vue-hotkeys/src/useAppHotkeys.ts": "b89d4a02c1b08fb51999e1b28bec8b911267375eca5cf39c73e04955511a5f17", "packages/vue-hotkeys/src/useHotkey.ts": "deb789082e4ce55195297375d6814477218bf1bf12f56f8edc00619117654527", "packages/vue-hotkeys/src/useHotkeyRecorder.ts": "f9090de677350d72ae3e1732eab11e5b89b5cf00021f2cc5e88d2fe3f2fb743d", "packages/vue-hotkeys/src/useHotkeys.ts": "a01bedb627cd6cad884cf59b2077c33b34289589e6a101fefb5ca1709dabb668" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", - "outcome": "no-change", - "reason": "Recorder lifecycle fixes and the syncRecorderOptions helper; the skill does not describe recorder cancel, blur, keyup handling or option syncing.", - "evidence": [ - "git grep in packages/*/skills finds no recorder lifecycle guidance" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "updated", + "reason": "Added the ARIA formatter row and said the plain formatForAria export is deprecated. The provider row lists suspendCharacterKeys.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "planning:_artifacts": { - "fingerprint": "977bbb02f485e955e5de07bc22f25730c593026fd40239385752e100eef5f819", + "fingerprint": "83c999ae8c49f4f2ece9656ee2747a840b02bed57b3f33f96e83037aa8147b16", "snapshot": { "_artifacts/domain_map.yaml": "9020ca258eebcb3575acad17ed5fc62d53306d6e07d6dc6456c006fd8f05f94b", - "_artifacts/skill_spec.md": "3dfe15cd5f88bff08bfe9492e7487f709fcec25af7576a7e81729433e6d1ebef", - "_artifacts/skill_tree.yaml": "9bebee27767490316a1ef51cbb8fe40d20e22a57de71fae4c7c3b0b5131472c1", + "_artifacts/skill_spec.md": "f109428cfe3a7f501f8abde692a886be76636a12d5c6b0b4149c5e9ee0d44513", + "_artifacts/skill_tree.yaml": "28586eb71e346a16cbaa064559562cb08199a684904db6dd0684251428afd35e", "docs/framework/alpine/guides/app-hotkeys.md": "e0077fbe45936d6b81d61d778dc212b4a4e0cfa7df1bd99ecfd2470db1c842aa", "docs/framework/alpine/quick-start.md": "822d70174d351fa7b2fe2e773b4fb3a2b558191386001025cdf2efac7b0c7854", - "docs/framework/angular/guides/provide-hotkeys-and-scopes.md": "3460ac6a9e5c544bfaa7c901aee1772e0b4122f4d942493998b132747929f97c", + "docs/framework/angular/guides/provide-hotkeys-and-scopes.md": "2cf7b561968f2caf257fd4676221a4f89f26ee039560b03c6731d37e851b0239", "docs/framework/angular/quick-start.md": "6853a3618a349160d18f61b97e8996c3ad4709930d4048192a724afa0b291690", "docs/framework/ember/guides/app-hotkeys.md": "0bb08f63eb9974ff3d8a0f408a3db321e16f8c6f285b1bbccd6e6b0a940ca4a7", "docs/framework/ember/quick-start.md": "2c8dc08cae925871408200ef4636adbac20cb23312d18773d726ca340c91f0e1", "docs/framework/lit/guides/app-hotkeys.md": "28e5957604e21250f70aa925a6576f820dd0be2957b209557064d013e45abb94", "docs/framework/lit/quick-start.md": "23152e6740cda01b503a85357b6cca35d948ae23d9dc4703c7fddc3b53c354f3", - "docs/framework/octane/guides/hotkeys-provider-and-scopes.md": "bf6c197492171df49814321c37b7e9c9981e3b02748179a6c32e88e91f77297e", + "docs/framework/octane/guides/hotkeys-provider-and-scopes.md": "9cbd09514a6d869bb2a9da0b57b743a2fe5b233bc13f330a369316fc4c820f4b", "docs/framework/octane/quick-start.md": "239e2bc768ad1a9ebb0c6c972756d23ff6d78752d9355da6bb566eb4cd1591d1", - "docs/framework/preact/guides/hotkeys-provider-and-scopes.md": "2c5824f8df01f95951b70bbbff125fb0dc2758d3278169fe7778b98a1ea8cc90", + "docs/framework/preact/guides/hotkeys-provider-and-scopes.md": "1bc452334df3ef96debf4377310266eca28dbc6330f38a403521c50e45fd076b", "docs/framework/preact/quick-start.md": "247a2beda75d6c50bc0345aa8a9ef0a247e588fe8f4cfe7ea7733c6c8c9f15db", "docs/framework/react/guides/app-hotkeys.md": "307e6ced70379adc2abec5094404136c6c68753009605a83d890f1d15af257d9", - "docs/framework/react/guides/cheat-sheet-ui-helpers.md": "3f611925b7aa3f21506b8f2cf5e943523ad395e1bb49e535a6c8f785d3246efa", + "docs/framework/react/guides/cheat-sheet-ui-helpers.md": "2a4d9591eb6d721bca63a50385ef93c2a651785bc45dfa453f5a628c9e577b84", "docs/framework/react/guides/custom-hotkey-recording.md": "250869e7fcbb8af8e78b01538662198a2668151ced170ee37ed881da4a6f0693", - "docs/framework/react/guides/hotkeys-provider-and-scopes.md": "445939ab4d9967b16ddd76ba3cb3639680fa552ea74be684136c8581b5d6db11", - "docs/framework/react/guides/hotkeys.md": "a7891b1b331411057749a927758001ac935fa84da4e9ce2a461ab450203f6302", + "docs/framework/react/guides/hotkeys-provider-and-scopes.md": "57039ef29571e18c058ea77d104140e33c9b7fbda7de561c4d77247a47a566ce", + "docs/framework/react/guides/hotkeys.md": "4f49e8ef1873ac0f85ed63f7c7f3d5fe6d0561b510dbe42c6a593217335ff1db", "docs/framework/react/guides/sequences.md": "35a2042e6adb52cca5c10ad36a8cbe65783b38be3383af612f368007a5f4b724", "docs/framework/react/quick-start.md": "f6024d88aae3520c0457cf3d8590a5cad61e9c5a9ff9278528cfebaedc523c49", - "docs/framework/solid/guides/hotkeys-provider-and-scopes.md": "e94cd37ce6d7d941fe2f9db5338d3fe3bb8b3a2ec57a06daa7d592ac6add1807", + "docs/framework/solid/guides/hotkeys-provider-and-scopes.md": "bb0d2f900a842db0783c98be2e7aba49ddbc8e5230534ca4dbe3434663ade674", "docs/framework/solid/quick-start.md": "0f52444f47723a9340efdb2369a18dc6ede31b9afcdc0d8dc9344343bc5a4f5f", - "docs/framework/svelte/guides/hotkeys-provider-and-scopes.md": "79248cbcc9320b70185be8311b76332de3b9de2793cfa0b88ea56848d073bd92", + "docs/framework/svelte/guides/hotkeys-provider-and-scopes.md": "5d2c01722fa2357435fe3216c462071f8c8815ebe21ef9acfbabf620e2335103", "docs/framework/svelte/quick-start.md": "d1995321a1c5032843ee5a802f3b699fa41cee6d17dd6f3c9349faed3c663b12", - "docs/framework/vue/guides/hotkeys-provider-and-scopes.md": "341b593efd34c0aa68c02dc95f186513d5c15139711d85c4827681ecab6af390", + "docs/framework/vue/guides/hotkeys-provider-and-scopes.md": "939a50350a1f9bd8d80f4b0ef903293a8441bf783991af28d96c57da0efb2564", "docs/framework/vue/quick-start.md": "00e4e57173a5e03a8299398a1611e0a309738b0563f69e765bc10cda8fa95be1", - "docs/guides/sensible-defaults.md": "96163627a03c50b44d62f49ee35eae4609445b3d7d928283391dacf79a250b6c", - "packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md": "e0403473c7a27af925d286e94c1c8e0bb0a780b03e47b816e5e96afa4da49fd5", + "docs/guides/sensible-defaults.md": "a6f0399f730a2f4742f206efb08517f2493db96b098e76b4082686a07c1c229f", + "packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md": "d4243313588ee68e2ca5a0189dfd16b05b75262265306784db3c37a7f0318314", "packages/alpine-hotkeys/skills/alpine-hotkeys/references/app-hotkeys.md": "0fb12f409b5aec0999df3799f86d116b24d4d4d00131041e63d59264a7af1c98", "packages/alpine-hotkeys/src/createAppHotkeys.ts": "4b3745b96bdbf7971347bd930b9525b740abfffbd72dfed556d36cc0cbfa6757", "packages/alpine-hotkeys/src/createHotkey.ts": "bd60563781632082d7a6be702d7761f0652e45afc36ac8aa1efae1106ae98556", "packages/alpine-hotkeys/src/createHotkeyRecorder.ts": "d130aa263a4f38f8c3711cb7aa25125e09832b0915df70a14abe3e74f8d3ae5a", - "packages/alpine-hotkeys/src/createHotkeysScope.ts": "e42b6ce66429087e9e1e3ac40e5ed00d24c2ab9684ac7cfa8aead4ecc68e993b", + "packages/alpine-hotkeys/src/createHotkeysScope.ts": "c0bb763e72ee3e4e5788b3ea6634cf7f1887357db31328237b92fe2d70c464b8", "packages/alpine-hotkeys/src/hotkeyRecorderPlugin.ts": "8ff86447e513f47002c49ed9f60269d485b0cd65b87277bb52cf2d8286ddbd36", "packages/alpine-hotkeys/src/hotkeysPlugin.ts": "35ffb8b772a178690d956f3b3a165b577c40d1723e186f5ffdef4a985f7be90b", "packages/alpine-hotkeys/src/scope.ts": "4521cc6c2abb1706bdd2b73e158e67b2eef7f5d325e22b1f50b65cf473b56905", - "packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md": "2a623bf40bdffb6f1f2c64d7159d58ae25a6f8b4681f42e1b0274113ac2b0900", + "packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md": "9c737709235d87d3f18489b2d89c94d1288316c45a5f4651480ecd5d0eb783d7", "packages/angular-hotkeys/skills/angular-hotkeys/references/app-hotkeys.md": "afe63a82c2e4b9269b0fece249317a1ad197481cb8d4ae434c5da48d64f0a2b5", - "packages/angular-hotkeys/src/hotkeys-provider.ts": "9ba3e5c384a39ff3bbd3f163c61ee8f79e698d7f91c8cc35ff963cb80a12900d", + "packages/angular-hotkeys/src/hotkeys-provider.ts": "c352df2bfcec7a6e083dad60fd7581ef510a7fe4a06ac475ee321541352d8413", "packages/angular-hotkeys/src/injectAppHotkeys.ts": "4be08715cf59eeefc5c07d5dd77c2abfd60bdd5d9a4cab57d8c7fb39e632d257", "packages/angular-hotkeys/src/injectHotkey.ts": "1e7974556713a47a9641a97466e2c5218ec4adb65efed4cec1b163756e2b9734", "packages/angular-hotkeys/src/injectHotkeyRecorder.ts": "8b4271888eee532d0674a6b6d034cdc76e06e6080988418fceb5e43756cdcaef", "packages/angular-hotkeys/src/injectHotkeys.ts": "c923eba82e55ee9f0357ea0c355eca05719c0aea806a9acbb2b4de55d2d20d42", - "packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md": "96848b2a04a5bd52bd89107127d8c5799f0c06d2859cfb4fd6dbdda12fba4325", + "packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md": "d3279d78ba5fdd2df0f30ded4a25bd88117129c8fcfde252cf6cbf286a8321b5", "packages/ember-hotkeys/skills/ember-hotkeys/references/app-hotkeys.md": "46d43786e0d2a5fca97c203f3e998bb6295ce45c16f181612973fd3788c1acc8", "packages/ember-hotkeys/src/createHotkeysScope.ts": "d7ff70b05c966c0cc62fa41254c8a0b40d4cb96cd081be5eb49878a3e148cbac", "packages/ember-hotkeys/src/onHotkey.ts": "0cd156d6a90b341d7f1006df47911b3033ba523a68758274c00df7c8cb9dfbff", @@ -325,36 +312,36 @@ "packages/ember-hotkeys/src/useHotkeys.ts": "963345b3720ddefec8677b9b9d9dfa2b6346e22b32f9f2034d406b43e5c5ccf8", "packages/hotkeys/skills/app-hotkeys/SKILL.md": "da21229bee202a356943a92987ab971eb5157d4a51639a48e67122e8c25e6f3c", "packages/hotkeys/skills/app-hotkeys/references/recording.md": "cee8af22374e484878c9f148d4fee911de4239700961ffb8a00880e779aa6f67", - "packages/hotkeys/skills/hotkeys-core/SKILL.md": "3f107f5591433d1a6ca8c65c4652b4c7a47796c01d7e28d6338d387b9d6f496d", + "packages/hotkeys/skills/hotkeys-core/SKILL.md": "f7522e6fcc2173cbaf0d6f3293e6e6233d891c3032ec022f8c582997f1a213c8", "packages/hotkeys/skills/hotkeys-core/references/scopes.md": "1ae616ff7ce92d9679bbd0752ada572c2060c33ea7e7e638bfcc9d5425ac6bfa", "packages/hotkeys/skills/hotkeys-core/references/testing.md": "62cffeecc4bc67b71e0cb0f744c7a3bdac12a97e3cbddae6365c67c91ad00645", - "packages/hotkeys/src/app-hotkeys.ts": "ef6787cf1077c6d25a6760e7fad13b7a8f23a4571d5986ab74b2e7fa075f0c92", + "packages/hotkeys/src/app-hotkeys.ts": "4fc089bf6f3f247d8ccd6cc819571d945f45e95271e5169707a6c29d7ec6011f", "packages/hotkeys/src/conflicts.ts": "005f63fdfa139d51203306ef9b3fb83ebf76ddd22553162a5262827a5e9d0921", - "packages/hotkeys/src/hotkey-manager.ts": "dde5bcfc98f4f961452a7addcb2be073dbc7c2bd7f3870e16ea9070be2a0a778", - "packages/hotkeys/src/hotkey-recorder.ts": "4759bfb54ad43fc5c1a347404679c3d978fffade5f36f5c8e0809638c5744443", - "packages/hotkeys/src/match.ts": "bd5ea7546cf68a2ce2d6d0d98b83ce62eebec7b15f50781456472dac29ac2740", - "packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md": "2abef2d5efb7887b8737e661722eb3b5aa80f117666ac13e12c35a0de1c422af", + "packages/hotkeys/src/hotkey-manager.ts": "73ec1aeee7e75edcfa27149d3015f706da732cd867ef3db6afd1f257980fc0be", + "packages/hotkeys/src/hotkey-recorder.ts": "bcb4f1e3940abb28b3611ee59d43c6545489dec15fd02b4d070b06ebd725f4bc", + "packages/hotkeys/src/match.ts": "d94dfcb1665ef00c77c07972948d482827bb8707c74ebc8bf39246834b548e16", + "packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md": "1696e5520ba1ce1dd07ead07ba52a3c5dd53ccc1cb5391aff4548bb8a5c2954a", "packages/lit-hotkeys/skills/lit-hotkeys/references/app-hotkeys.md": "3c5b805f628d0b14361e43944283f3b7271362cc5831def6406e677ce21f2678", "packages/lit-hotkeys/src/controllers/app-hotkeys.ts": "b597a0682f4b4168794cef6a0f3f512649b01cd1796d059e220d73bee58968a4", "packages/lit-hotkeys/src/controllers/hotkey-recorder.ts": "8e437236054499fbf7ca29019bbff0f951841bf711d72956217a1fa381b8b5cf", "packages/lit-hotkeys/src/controllers/hotkey.ts": "79d2602f8855075599d0fb7250e865a3b525eda5a5dc274a3c386edd1abe734e", "packages/lit-hotkeys/src/decorators/hotkey.ts": "ff03f664004dd013a2cdd984e7587f4f8c3ac651bf98efc9918a8296393d13ef", - "packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md": "f9e9a3920370f2abe943634fb25d8be515cde8f0d4a6c510552c60b206c9fc72", + "packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md": "dd517c2b2614ef6d2a7adbf7e59d4f4323509d01ad6ca1da5ca17ecf22521e39", "packages/octane-hotkeys/skills/octane-hotkeys/references/app-hotkeys.md": "ddb3f0f9457fa245b29e8cf8e98088a3bafbf493e4d702a6228795f6ee358442", - "packages/octane-hotkeys/src/HotkeysProvider.ts": "c3d20e26a4c2e776398e22ee9115943f9edd02c6445d237daddd4d88a24a927a", + "packages/octane-hotkeys/src/HotkeysProvider.ts": "000f3421ab5f99e66516a73283c83814a1fb5d72f517fefccc1eacf0dd891ce5", "packages/octane-hotkeys/src/useAppHotkeys.ts": "e8b50b1c87560fd3d0169596405121326bd64b3f99108f83cf87c4d18802eed8", "packages/octane-hotkeys/src/useHotkey.ts": "7fad592ebe66e2c1822d2ca4018263d560aee41ba4334d9940dfd67b3ad44b09", "packages/octane-hotkeys/src/useHotkeys.ts": "a6ce6be008bc44382444ed9c11e1e8fcee6901b49e58d40d3ce6c88e64e4f084", - "packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md": "afdeebd81dfb59c167bba312cb753832951dce67c7dcac1f99772aa8d481a797", + "packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md": "feb35f7074c0d661ecb882418a8bb4614696aea2f380b3d613f2486bea52384c", "packages/preact-hotkeys/skills/preact-hotkeys/references/app-hotkeys.md": "e28a5865d89549981131050565cbf6a9e9d7ed658c3d9254036d09888b5e42cb", - "packages/preact-hotkeys/src/HotkeysProvider.tsx": "b0cf46fdcd473833652f66a8395574572697f22d56733825b30349644aa4ccfc", + "packages/preact-hotkeys/src/HotkeysProvider.tsx": "0163a1bed2fa773280547ee5ae2a41172fe2ae8a0cac0e54d51833cde0e34531", "packages/preact-hotkeys/src/useAppHotkeys.ts": "493b6e75c203964b8f3b4e9ff455938d0dbfb041e3a44961164452ff9b1dde8c", "packages/preact-hotkeys/src/useHotkey.ts": "5ba81a7d4b3919dea427287ac728516b75ebcd49e3e2a7b9c5bca29fc92f012d", "packages/preact-hotkeys/src/useHotkeys.ts": "94635ce9d32395201b7b140ca1bfd7bc5d8cf22a72709fc4e4f9383b30e359cb", - "packages/react-hotkeys/skills/react-hotkeys/SKILL.md": "30140dfebbc4d822d2267af8a23a476c0bfd7e012d822e890edcd7d2fd4f883f", + "packages/react-hotkeys/skills/react-hotkeys/SKILL.md": "d83a8d4abcf4103fc75c5cfe4c2abd3c1ac6976c9a91cf58d98b66496bd2c75c", "packages/react-hotkeys/skills/react-hotkeys/references/app-hotkeys.md": "61b0ecf75e33407b23df56c9aa121af21c9710f6ea5fd40f7778805ce88a9933", "packages/react-hotkeys/src/AppHotkeysProvider.tsx": "b75dd646421fc7f5f5fa868607aa342aeb0b55c109c1adc666d78d968b1fad1a", - "packages/react-hotkeys/src/HotkeysProvider.tsx": "cfc2faa5d15fdc0d1b546770efef3bb6bfa69dd7edb2459b27035818e9cc3d83", + "packages/react-hotkeys/src/HotkeysProvider.tsx": "fdd85693fa9b1d84341a0152601c606ca2be92d33e66019472d78029661dca78", "packages/react-hotkeys/src/useAppHotkeys.ts": "863185672c9c9aaa86c4a28f49707fa3332fba1826ab7a37a43405c667caae93", "packages/react-hotkeys/src/useHotkey.ts": "2222a3625e2a3b52f178681f6373be6a7dc278d2b5dff56ed833050f767b6e56", "packages/react-hotkeys/src/useHotkeys.ts": "b9718ef67f2c773b7f474c0c556b480657faed6e798c486a978644bdb30ee2f7", @@ -375,33 +362,33 @@ "packages/react-hotkeys/tests/skills/shortcut-settings/shortcut-settings.test.tsx": "c6e0204269f0c8ef42ae6832f5b96eb6a3d2df552cc2c21511aa545e0ee4cd24", "packages/react-hotkeys/tests/skills/shortcut-settings/solution.tsx": "3441296dea51490188d34991428fe2b8bf11ce6fafbdf6e2f7595ff7082f1400", "packages/react-hotkeys/tests/skills/shortcut-settings/task.md": "7163ed96e6694c745461f0edaf296b353906cfdb868f9c5df7d08ee01a4ba0ea", - "packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md": "7e786434d39e7e374881e015d5ce420c94b5c2dbdb0d953a9c265803c31b0227", + "packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md": "bf70f4bb8b1c14e5a44fda637d27795e70cde0b36e44d526e0fdacc5809b1dfb", "packages/solid-hotkeys/skills/solid-hotkeys/references/app-hotkeys.md": "336b062c42f81d57ef2da8a5a1432976298fb90b8fb8a40121c38a8a0eda7c3c", - "packages/solid-hotkeys/src/HotkeysProvider.tsx": "06bb230001b041e7318df3ce0511229837eff97e2db9cf783e2eb8d98f5aa73b", + "packages/solid-hotkeys/src/HotkeysProvider.tsx": "06ca96422058799bbc2ef9b266fcbc790265ef0313f704763ed48d91a6ef597c", "packages/solid-hotkeys/src/appHotkeys.ts": "4494eabd3760ecc81a40936e03e34ea9a7ad26fb3998668b34d5f2c0cdd25136", "packages/solid-hotkeys/src/createHotkey.ts": "17bbb96271aa4c1a7cef5741edf199a367a6d7ecef5a328b1be6b43ff052b349", "packages/solid-hotkeys/src/createHotkeys.ts": "2370f32eb6740eb8799417fc233ac3c36a5f6470b1f439de05c29002fc545176", - "packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md": "858548a437108d8e3a2ed3f79f1be92a3a51923f001ec4eedf0484391bff2e2e", + "packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md": "d231d28b756c1c7252f52d12b04654dddc6c0323352a7c38c821cc9d9f428669", "packages/svelte-hotkeys/skills/svelte-hotkeys/references/app-hotkeys.md": "f60367e6667d76633886af1398807b5ad54e4586e58b41b2f6d7ee180ab0e1c4", - "packages/svelte-hotkeys/src/HotkeysCtx.ts": "a221afbf74805ee0e0e40c82d2d3733164fc1c884dfbe4aa8176323121811075", - "packages/svelte-hotkeys/src/HotkeysProvider.svelte": "3acc9fa620080397ab733579ebf0d460631986715d75d010f87a7cad0a1a2e9b", + "packages/svelte-hotkeys/src/HotkeysCtx.ts": "4fd46081dcce520aea19e850e1443f696353419940bc9a9801bd073817a6a585", + "packages/svelte-hotkeys/src/HotkeysProvider.svelte": "abd035cea0913fb80716bd04b710267118c83ec761081b5de97047a2f98f5ce0", "packages/svelte-hotkeys/src/createHotkey.svelte.ts": "fc6dac92966f1f506450526ca87a9d2de715ba36202b09446f9f325503abb906", "packages/svelte-hotkeys/src/createHotkeyRecorder.svelte.ts": "78dc96dcc7127235a29ec03fb41920503bda7838b8e54b878cf5b7320d2c8f6b", "packages/svelte-hotkeys/src/createHotkeys.svelte.ts": "dcc7112c4a11a36198083d3f9c18dd6d5cdddb10248ed65ee14b8ff15f0c4757", "packages/svelte-hotkeys/src/getAppHotkeys.svelte.ts": "5ec9bad56cc543b56d985c56324f5cb557e5fee624b209e8361a0002e4fd888e", - "packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md": "7d9baffc9b4643da50529c2c86359707f3773bf2c9e025b01a90a8b005d55c99", + "packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md": "642d1655c9e10de79b7da415f36f0fead499bf9c4b4e79da7c28d1da52edad09", "packages/vue-hotkeys/skills/vue-hotkeys/references/app-hotkeys.md": "9ff677a8ff993fb9a8e749e6885cbff28fd08bd1dc0f8d0150da19d29ec18736", - "packages/vue-hotkeys/src/HotkeysProvider.tsx": "883b775c12bc47753915159da54aab2b38e42c675ad46658761cb3f27f00be86", - "packages/vue-hotkeys/src/HotkeysProviderContext.ts": "818ecdeca0d9f4d2064bf6f15d9679ef3ca8bdd68b05b8e675654b6eea0471cf", + "packages/vue-hotkeys/src/HotkeysProvider.tsx": "c7b37b66dc4310be828619997ced75f1b6e4f6a8d7606bf3404c5f8abc5f2528", + "packages/vue-hotkeys/src/HotkeysProviderContext.ts": "2cc7eaec4d348401d36c7b1a06903e91b13ee41c3057eb2d0f7bda55f6c9fa3a", "packages/vue-hotkeys/src/useAppHotkeys.ts": "b89d4a02c1b08fb51999e1b28bec8b911267375eca5cf39c73e04955511a5f17", "packages/vue-hotkeys/src/useHotkey.ts": "deb789082e4ce55195297375d6814477218bf1bf12f56f8edc00619117654527", "packages/vue-hotkeys/src/useHotkeyRecorder.ts": "f9090de677350d72ae3e1732eab11e5b89b5cf00021f2cc5e88d2fe3f2fb743d", "packages/vue-hotkeys/src/useHotkeys.ts": "a01bedb627cd6cad884cf59b2077c33b34289589e6a101fefb5ca1709dabb668" }, - "head": "fa5664a5cecd519fc36453981e66c13049959fa4", + "head": "396283cd8abc76484f077bb08fc49d36fb03a68a", "outcome": "updated", - "reason": "Alpine skill names the directive import.", - "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] + "reason": "Synced skill_tree.yaml after removing src/utils.ts from the Preact skill's sources.", + "evidence": ["_artifacts/skill_tree.yaml"] }, "source:.changeset/intent-skills.md": { "fingerprint": "a3f3a7466ee28fed505a518e9cd18cfda96a2282d207d73317b00d60b4430f62", @@ -660,24 +647,24 @@ ] }, "source:docs/reference/classes/HotkeyManager.md": { - "fingerprint": "fe14cf61e338a4c5b10f0ac752ed6a6db3754a10d3fb26f75ef01a7cd1ef9bfd", + "fingerprint": "2067e8dbb522c58125239f473e3279234b39647e91228e14964d0e70dd3dfb9c", "snapshot": { - "docs/reference/classes/HotkeyManager.md": "91f7e63c7eb99c691c3cecb53428312d3ce33a6f97002423e8f0171dfd5b2272" + "docs/reference/classes/HotkeyManager.md": "66ee059d2587dc6f69723eb2b80604625ee90557dd7de235d77118c9eb1e7f54" }, - "head": "05be1291a103f39c2570697d44e8df5e039f4497", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Covered by the app-hotkeys and hotkeys-core skill updates; generated reference, tests, e2e and guide edits need no other skill change.", - "evidence": ["docs/reference/classes/HotkeyManager.md"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/functions/getHotkeyManager.md": { - "fingerprint": "78c0f45132c5751a81faa027ceef7733c8d4547bf87fab6d79876305e567d565", + "fingerprint": "99bf92198eba0ac8b85a6d7314e7313c74373b0a20f06a7b14ec4fa09ebbbd4d", "snapshot": { - "docs/reference/functions/getHotkeyManager.md": "a71e33abe3a0610730b9507dd04c908a890968c90c362990a3f1d4e53e4057c0" + "docs/reference/functions/getHotkeyManager.md": "5abbeec50fb5f62d3eef803b5b3a1d8a00ab740db4b2d33ea773583afa343493" }, - "head": "05be1291a103f39c2570697d44e8df5e039f4497", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Covered by the app-hotkeys and hotkeys-core skill updates; generated reference, tests, e2e and guide edits need no other skill change.", - "evidence": ["docs/reference/functions/getHotkeyManager.md"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:examples/alpine/kitchen-sink/index.html": { "fingerprint": "e5b115fc55083a836a5c968897c08a904b2db84bded413a3c85b9fb203b8a1e0", @@ -920,14 +907,14 @@ "evidence": ["packages/ember-hotkeys/tests/integration/hotkeys.test.gts"] }, "source:packages/hotkeys/tests/scopes.test.ts": { - "fingerprint": "70a3f7097c00848d84385f73324ffed9035c953a73b97cc2d575ca3ddec4d464", + "fingerprint": "adfa1fddc7cedf12de6c5699819f2c13e3e7d1a1f9cfeeefdd68b735f3580c49", "snapshot": { - "packages/hotkeys/tests/scopes.test.ts": "b1f12ea83bc3aa41f0cf033d31b24b3e5318f3890418c2030f54823fb73af646" + "packages/hotkeys/tests/scopes.test.ts": "5a2a2b1ed2812eeb2001f57398ca12ff341905aae1432636e412fd41dee5d7d7" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", - "outcome": "no-change", - "reason": "Dispatch and sequence fixes, replace removal, and guide updates; no skill guidance changes.", - "evidence": ["Core, adapter and e2e suites; battery 159/159"] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/hotkeys/tests/scopes.test.ts"] }, "source:packages/lit-hotkeys/src/controllers/hotkey-hint.ts": { "fingerprint": "10309099249732d9d5cdb27b15b11171b3563b05871aeddc80d0c2ce2231dae3", @@ -1123,118 +1110,114 @@ ] }, "source:docs/framework/alpine/guides/hotkeys.md": { - "fingerprint": "a5aa978486678d25c698f8a31c14fcc36c3dc409c2e68c703c6f3e5d351ccad1", + "fingerprint": "7ad48a0eabd1d2069e13f67c9c6e757a8026e90e2ab4156e938f12fa00c206af", "snapshot": { - "docs/framework/alpine/guides/hotkeys.md": "3c531778c995dd3bd60314067134188f2547e5dd3bf3cdc4af69e31c75019933" + "docs/framework/alpine/guides/hotkeys.md": "2b53277bd8e07079dcafc9ded0511ef587298113f284e7b90e28152b62118fc5" }, - "head": "a0d13335f6d9976ac25ead467b4658185c741b51", - "outcome": "out-of-scope", - "reason": "Source, test, CI, or generated docs change; the skills that cover it were reviewed in their own items.", - "evidence": ["docs/framework/alpine/guides/hotkeys.md"] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/angular/guides/hotkeys.md": { - "fingerprint": "e03e407cde6dd6ae5a8d42bc8ae25df1cf109025b5c2bdcd8d2590450d082d8d", + "fingerprint": "0f94cb5b278be259ad4dafdf96ac647bf6d37bc5c5a8e154ce0a69e514968df4", "snapshot": { - "docs/framework/angular/guides/hotkeys.md": "909a3c4fe06e29a36788fc397209d615d26d77227203c6993f3b4c766771f438" + "docs/framework/angular/guides/hotkeys.md": "c6f2fba63e9dfc2989925f910c568f934d10e850937980a18965f8689b321fe0" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Dispatch and sequence fixes, replace removal, and guide updates; no skill guidance changes.", - "evidence": ["Core, adapter and e2e suites; battery 159/159"] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:docs/framework/ember/guides/hotkeys.md": { - "fingerprint": "de30e4a57f6e125050dcc486097b57ac320c820ae5bd6d5547efa54982b1ce0b", + "fingerprint": "9346071dc91244ed41fb4a1e2e80d24f32997801ac0ab59c09232807ec1d2caf", "snapshot": { - "docs/framework/ember/guides/hotkeys.md": "69b1bd17ee9811168a784f01a3f59a0a984282b3cc4d8bea79cc4e6eda70c8c0" + "docs/framework/ember/guides/hotkeys.md": "7924a3f1e46cfe0525794c27d073af1e38b3c67e1907bff6508b07ab53a03a5b" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Dispatch and sequence fixes, replace removal, and guide updates; no skill guidance changes.", - "evidence": ["Core, adapter and e2e suites; battery 159/159"] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] }, "source:docs/framework/lit/guides/hotkeys.md": { - "fingerprint": "1b21baaf0f5c50bcbfa2450e1f835793398df23a5000cdacb5e5e1c2201abc27", + "fingerprint": "0a477bbb174a13d789391394ff4b2e7e0199730b5e932b6388ee4adc9964839d", "snapshot": { - "docs/framework/lit/guides/hotkeys.md": "618df819974f1a2b775c9fa4213bcc9cd8d65f2901da3f64f898ad708d1ac8e5" + "docs/framework/lit/guides/hotkeys.md": "d86f6f7d40ba2c9b23ee88cec1b9a06e842d86ea10fd9f62f469e654c3755306" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Dispatch and sequence fixes, replace removal, and guide updates; no skill guidance changes.", - "evidence": ["Core, adapter and e2e suites; battery 159/159"] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "source:docs/framework/octane/guides/hotkeys.md": { - "fingerprint": "5488b737a838e912fcf91681b5dde823effde1a41501e9f481f92209f05e486c", + "fingerprint": "2506e577a0d605d0c534f1072f50263437cfd8386fc79eb6f9249dc8af55486f", "snapshot": { - "docs/framework/octane/guides/hotkeys.md": "b0588300e17a61fdec464c2b698b7f9ebdaf91c5b90b183bfbf772d6eb021137" + "docs/framework/octane/guides/hotkeys.md": "1a94302df21ed5b9324c534cb82700fa28a6ed2f6c3ce50cd24debb909696115" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Dispatch and sequence fixes, replace removal, and guide updates; no skill guidance changes.", - "evidence": ["Core, adapter and e2e suites; battery 159/159"] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] }, "source:docs/framework/preact/guides/hotkeys.md": { - "fingerprint": "7e8abf6ab5526c9d4ebe05a0325739311ed0c2d70e98298141d5f2192559c816", + "fingerprint": "88faff144613ea554b4f82ae4d4b2b07f0384ac2a089241384d30989fbb04bbf", "snapshot": { - "docs/framework/preact/guides/hotkeys.md": "8838e4a2a34636e96706f7c7321ca402e6198acefbca53404f44f27ece3dd73b" + "docs/framework/preact/guides/hotkeys.md": "ae72837f6742e955af4201fa1a7210306999a54f3cd1099f8afe7f4ed18d476b" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Dispatch and sequence fixes, replace removal, and guide updates; no skill guidance changes.", - "evidence": ["Core, adapter and e2e suites; battery 159/159"] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] }, "source:docs/framework/solid/guides/hotkeys.md": { - "fingerprint": "a3b7905beaf02914b6165f4cfe9bad5661fa3df1311adda0d29430fe0d6255b9", + "fingerprint": "beb4bb4e93a527b2824d23b4bc961a09ba9d6bba4d95ee388672ebe1508ed5f9", "snapshot": { - "docs/framework/solid/guides/hotkeys.md": "dc55525775bc63a72d27726772446101dcef08097080662384f3e1f6d4180e58" + "docs/framework/solid/guides/hotkeys.md": "754c1679eeb20214921efdd5bd2dfd2e99f3e07829808e49353da6cddef4deca" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Dispatch and sequence fixes, replace removal, and guide updates; no skill guidance changes.", - "evidence": ["Core, adapter and e2e suites; battery 159/159"] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/guides/hotkeys.md": { - "fingerprint": "8cddfa7fd5422ccc2870bcf5dd41641bd011cfeb52ba4ceac5a84df1cc0cb0fc", + "fingerprint": "7301d1db3d846644682eb2b77a1cae978febcdc7197b1474fb077511da50c328", "snapshot": { - "docs/framework/svelte/guides/hotkeys.md": "99fe39dbdb00ecfa6ad79071f4af3fe1fce665d0cb1b609bbbd7e801f4675a8c" + "docs/framework/svelte/guides/hotkeys.md": "6ceff7cabfca113639fd39f58a12ebe59fc858a7bc11b3e038f4593c81174143" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Dispatch and sequence fixes, replace removal, and guide updates; no skill guidance changes.", - "evidence": ["Core, adapter and e2e suites; battery 159/159"] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/vue/guides/hotkeys.md": { - "fingerprint": "584ecd978991ffcb431fb3dd4ec4d45012b5c1f73bba859b87ada15ecd3d43fc", + "fingerprint": "d2a4b7696e2ed5401179d7e0ef5d2430529a5fffe7733975d9c500ce4c1d300e", "snapshot": { - "docs/framework/vue/guides/hotkeys.md": "79c03950f6cdd46c6fc911ec7ebb7bb53131e2d54d9a5bb884d76b295ce52409" + "docs/framework/vue/guides/hotkeys.md": "9589a4ea2cf19e0cbbd89100936a78457e3aa8141fa3a858fae3efecd4de412f" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Dispatch and sequence fixes, replace removal, and guide updates; no skill guidance changes.", - "evidence": ["Core, adapter and e2e suites; battery 159/159"] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "source:docs/reference/functions/toHotkeyRegistrationView.md": { - "fingerprint": "bb45f1a6ba7ff6baef260fe94f9642263fb07a0b517f902b587f7efe069f2839", + "fingerprint": "3e21fbc0ca83cbbbe2792bffa137775cce814c7a3eb9fbe31bffdf2d18d52afd", "snapshot": { - "docs/reference/functions/toHotkeyRegistrationView.md": "0ab3e471c88760495556f140233025d825c51604a694509a97a8de08589066ff" + "docs/reference/functions/toHotkeyRegistrationView.md": "f0a78fe4788cb8d369022a2f0d7087fd0ad6b787a99ccab7180cc39b50e240ff" }, - "head": "75b6c798a9a07d3f902d5899b5536220ea30ceec", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Docs, tests, and the ignoreInputs auto resolution for function and media keys; the core skill covers the rule.", - "evidence": [ - "hotkeys-core SKILL.md defaults row updated in the same change" - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/ActivateHotkeyScopeOptions.md": { - "fingerprint": "5dadfc31e3ac53f69b8b31a8c6d6b30a04c8231e6f92b024a4547b495f158ee3", + "fingerprint": "420028b74eccccee887f9947008f45d8e1a43bf398f8db3ef28849319794d8e7", "snapshot": { - "docs/reference/interfaces/ActivateHotkeyScopeOptions.md": "c88077a2d382f7ae71f22ba662f8a58f6615f7c51f7667b60e5db9f35430db37" + "docs/reference/interfaces/ActivateHotkeyScopeOptions.md": "7f650916782ff773633a9aaa12199bd5cf6424e83456594c53d6fb5ca6f04ad9" }, - "head": "75b6c798a9a07d3f902d5899b5536220ea30ceec", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Docs, tests, and the ignoreInputs auto resolution for function and media keys; the core skill covers the rule.", - "evidence": [ - "hotkeys-core SKILL.md defaults row updated in the same change" - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/HotkeyChordOptions.md": { "fingerprint": "f712a1bf4a1dcda09398081f9bc8b9d4470fdbe8ab18c80890cc804166a18524", @@ -1261,16 +1244,14 @@ ] }, "source:docs/reference/interfaces/HotkeyChordRegistrationView.md": { - "fingerprint": "a8bd50ff30eade806ac3d4c799e4fa520b6b38f5fa39064244e75cc871d96a68", + "fingerprint": "2192989cfe86b10a0e01df63a1f616b33dd1e57aa44df476adac9c1e6367f6b1", "snapshot": { - "docs/reference/interfaces/HotkeyChordRegistrationView.md": "584020564be3d08e681af02d388b2f23a624f7170437e2a75d83da22f9895c38" + "docs/reference/interfaces/HotkeyChordRegistrationView.md": "eab5f5665ec1224e7f607ac38e459df8260f0bff12c953b8bb66e8486c0d3b0c" }, - "head": "75b6c798a9a07d3f902d5899b5536220ea30ceec", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Docs, tests, and the ignoreInputs auto resolution for function and media keys; the core skill covers the rule.", - "evidence": [ - "hotkeys-core SKILL.md defaults row updated in the same change" - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/HotkeyOptions.md": { "fingerprint": "b7ae33e551d92247be58eb3c654eaccfb2157a2cbea83cfc46c95327e4d6710e", @@ -1285,28 +1266,24 @@ ] }, "source:docs/reference/interfaces/HotkeyRegistrationHandle.md": { - "fingerprint": "8377e32d464bffb37b8ee50a62935547bde2b6a2241879eda179de8c8b349541", + "fingerprint": "dfdf0936c0cf23ab03c888fb22bfc3735d6cdea8c375d3b39a2a8edb76b79b92", "snapshot": { - "docs/reference/interfaces/HotkeyRegistrationHandle.md": "ffa8d67068cf8318b8329360cc6daa309a5829cd7ffb7036b2cd7fbea557a7a6" + "docs/reference/interfaces/HotkeyRegistrationHandle.md": "ab9c70bb0e6031c45bb4d59e03261b3bc6cb2d3c44de73ffadb531a1606ed97d" }, - "head": "75b6c798a9a07d3f902d5899b5536220ea30ceec", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Docs, tests, and the ignoreInputs auto resolution for function and media keys; the core skill covers the rule.", - "evidence": [ - "hotkeys-core SKILL.md defaults row updated in the same change" - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/HotkeyScopesState.md": { - "fingerprint": "11961822e8805fd67f17970196c174e76b191206c30732408733ead0a6ccfb24", + "fingerprint": "bb32ac0f79e785f6d65707d91d6121a83d1fffbe745bc951599778aa281562ae", "snapshot": { - "docs/reference/interfaces/HotkeyScopesState.md": "c01c39212941a6b9de7b130727d4a75e46d92bf2e956882eda04bb7a83cf55f0" + "docs/reference/interfaces/HotkeyScopesState.md": "1b75896137d4ae2f47c0859125d29e9fb6d5a5cf8acbe5f9109daf1313c38085" }, - "head": "75b6c798a9a07d3f902d5899b5536220ea30ceec", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Docs, tests, and the ignoreInputs auto resolution for function and media keys; the core skill covers the rule.", - "evidence": [ - "hotkeys-core SKILL.md defaults row updated in the same change" - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/HotkeySequenceOptions.md": { "fingerprint": "f33b7ae1ffc44e3ed6c2be5be5b80c5804c084ec9604ce746e05c34f63657474", @@ -1333,16 +1310,14 @@ ] }, "source:docs/reference/interfaces/HotkeySequenceRegistrationView.md": { - "fingerprint": "c64733290362ea7301be30b1027e5d0dc4c78cd693ef65ef856d1edbb2ce75e0", + "fingerprint": "53d0ac314611f0d44afa7d748c9840cb8a06f25ed5076c2b33117d5ae28ed82b", "snapshot": { - "docs/reference/interfaces/HotkeySequenceRegistrationView.md": "7a589055354f76ece813481d1f163087581bc614a3c1b3112b2572b32e8200da" + "docs/reference/interfaces/HotkeySequenceRegistrationView.md": "74a4ddc0062566d9a8c5384e0d121600630ef9aa2f9c97979490d16ae68c6c60" }, - "head": "75b6c798a9a07d3f902d5899b5536220ea30ceec", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Docs, tests, and the ignoreInputs auto resolution for function and media keys; the core skill covers the rule.", - "evidence": [ - "hotkeys-core SKILL.md defaults row updated in the same change" - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/type-aliases/HotkeyOptionsFor.md": { "fingerprint": "38950492ef9f3bf113731ae01c658b65f5e7c7184e17bea9fd68230c3ad82525", @@ -1369,16 +1344,14 @@ ] }, "source:docs/reference/type-aliases/HotkeyRegistrationView.md": { - "fingerprint": "fbc737cf2e8cb19c1d8ad92173ee1e698fa1f8c2d890fcc57aedb05fa5ca718a", + "fingerprint": "b55f3ff2f061503c9fb2505565c44ea7158365409acbbe933f75c45e86b97793", "snapshot": { - "docs/reference/type-aliases/HotkeyRegistrationView.md": "579c33d3a40f0d342d6d6dec8ff2dbcc3a4f9ee29adb337cc742d1c3b860a812" + "docs/reference/type-aliases/HotkeyRegistrationView.md": "92bc09a30f19f9b29b443e7bcf01e0ef6c1f8740f4ad8ea78ed27f56e91ade47" }, - "head": "75b6c798a9a07d3f902d5899b5536220ea30ceec", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Docs, tests, and the ignoreInputs auto resolution for function and media keys; the core skill covers the rule.", - "evidence": [ - "hotkeys-core SKILL.md defaults row updated in the same change" - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/hotkeys-devtools/src/components/DetailsPanel.tsx": { "fingerprint": "011684afe5907d27165dfb091296b5de70c411f5014df83ef2ea5a6ebb08cc49", @@ -1403,124 +1376,104 @@ "evidence": ["Core, adapter and e2e suites; battery 159/159"] }, "source:docs/framework/alpine/guides/cheat-sheet-ui-helpers.md": { - "fingerprint": "b2b356d72de317f5260227ce77e4d729ad1462a711fceb07411fda66261f1dfd", + "fingerprint": "07c770edd0703de40fe67f017432fd7bb7a203ca42591a3f7afbcd1971195003", "snapshot": { - "docs/framework/alpine/guides/cheat-sheet-ui-helpers.md": "aab3f4cc43acc1709b7bf0eab47785d0722726032736fe839a0b41351d9a3667" + "docs/framework/alpine/guides/cheat-sheet-ui-helpers.md": "14e92d8d8f3d5fe1a16f07137e8f0635b804bdc64f492562ce22fe85f52d77ae" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/alpine/guides/cheat-sheet-ui-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/guides/hotkey-manager.md": { - "fingerprint": "d27efeba6282d32567c91822c4579ebc25ee204915cc58b405bd125f8e275218", + "fingerprint": "d1d957e4699a88ccef20cf08d01cd14499f47777b71d90aed7bbd335e24973cd", "snapshot": { - "docs/framework/alpine/guides/hotkey-manager.md": "46a830722831c4ca8637dbdbb8704bccf0d32932e2e94678ed1b2a334612deb7" + "docs/framework/alpine/guides/hotkey-manager.md": "25d0a35af029debcd3b888bee97edd2f3e6f709893d767ecf2c02ac4d842b052" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/alpine/guides/hotkey-manager.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/reference/functions/createHotkeysScope.md": { - "fingerprint": "4db787ea5ed5d2c1520aa29ada909a841b446836a480a50dc95e1515b08a9d55", + "fingerprint": "d5d4344ec0c65ae81fa84103bb142a6fcea0844c77ec630f6dad84d773609e85", "snapshot": { - "docs/framework/alpine/reference/functions/createHotkeysScope.md": "f4cf473ba8bad6789a599903b4a7febd44279e8246611bb58405b672627c62d6" + "docs/framework/alpine/reference/functions/createHotkeysScope.md": "442aa14f5e9390b706d02f1afe3b3d0f5714b1382cf5bf5b4f1b5539226f65a9" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/reference/interfaces/AlpineCreateHotkey.md": { - "fingerprint": "820d9b447e8593ce0ccad83bee816458642f1e649697809d7cc0cf837f4fb7b8", + "fingerprint": "fd71590f7bc14d1e7034e8eeac8b8493069a05f5c5005527db6b5f36674eb825", "snapshot": { - "docs/framework/alpine/reference/interfaces/AlpineCreateHotkey.md": "48916ab056a4e19db0306120415e777c4ee6f00eff5f7ba8d2ce1b9710c905d6" + "docs/framework/alpine/reference/interfaces/AlpineCreateHotkey.md": "ea49e12a89e3546dd716e6647d18e6f8ed2004b448128e2b653289856e847816" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/reference/interfaces/AlpineCreateHotkeyRecorder.md": { - "fingerprint": "1450b92cb82d30100799377ea40d0ef81ad7690432078326fa78ae287d72da7c", + "fingerprint": "28c12c439a878fda1e43f83e66d43e4468b5baf29d13cfb9a72f6c49272bad96", "snapshot": { - "docs/framework/alpine/reference/interfaces/AlpineCreateHotkeyRecorder.md": "5c8898cbf9187a7e6cc4131d2bedce384b2eb3521c6150376d64c4c69d5c5150" + "docs/framework/alpine/reference/interfaces/AlpineCreateHotkeyRecorder.md": "0c58ad8fcdc81572e4b73e732e0aec9581744b53e55eb6967fec2b7c2c7d443c" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/reference/interfaces/AlpineCustomHotkeys.md": { - "fingerprint": "3548218f85e61f96118a6518d689af1f2c8307c9d82a533791dcfd93cba87443", + "fingerprint": "805cc71c6e0e97f16fb3b624eeae782b24238d834cea1f00bf352921ce24b4bb", "snapshot": { - "docs/framework/alpine/reference/interfaces/AlpineCustomHotkeys.md": "8fb8bc2826f34c8486e680d19cb4457ec4c4e7935ea53c32b6440f9ae9fe376a" + "docs/framework/alpine/reference/interfaces/AlpineCustomHotkeys.md": "e5db24621383078634cf6edaaa12a899097a7b9cdc8c4cd4a90f2ce5bb5d0638" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/reference/interfaces/AlpineHotkeyRecorder.md": { - "fingerprint": "d828413411b25163879086891a6713946690d4b89deb6d3d2c784b7ba4c86190", + "fingerprint": "a5bd5e175b044419c85633cfda6659768f3e6f44c1d67e6bb2df2e39fbb1276e", "snapshot": { - "docs/framework/alpine/reference/interfaces/AlpineHotkeyRecorder.md": "403002f9a7d972b65fa3b728d41951ea7eed76a95e26772af4037733e96bbdeb" + "docs/framework/alpine/reference/interfaces/AlpineHotkeyRecorder.md": "692ea0dc4df69a59ba5941230ddc9472af26d65000dc1a3ded8993ad39a282e4" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/reference/interfaces/AlpineHotkeyState.md": { - "fingerprint": "22ec9d4e44fd1f22c0c93091568009ea18f963c0e88b9b0f558a14c52b2aff1c", + "fingerprint": "d88041e833af6ac2a28934522c4b0e08862d21bac7a00626f92106ca68bf1c3b", "snapshot": { - "docs/framework/alpine/reference/interfaces/AlpineHotkeyState.md": "7d150e9e1a0f921c8c8d960fdc330bcd63deb895a2be4ccdac3d6e6b22e40d9f" + "docs/framework/alpine/reference/interfaces/AlpineHotkeyState.md": "262ee21e1854c2c38daf3947c78edeafbffeadb8564387f3f1add4cbe3c632af" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/reference/interfaces/AlpineHotkeys.md": { - "fingerprint": "5fac220e49ebf3b22fb7c23d5c0d11035fd5e7dddd55bc7e412dc3f04f3dbc37", + "fingerprint": "2f10c05548b48a513e7ab2d5a5856b6dda880237e0877280fd6b0081b3b43ecb", "snapshot": { - "docs/framework/alpine/reference/interfaces/AlpineHotkeys.md": "490f2d6e2f4daf662f98cab533fbd1c4cc883c289b3ab8a6850a239566950c0a" + "docs/framework/alpine/reference/interfaces/AlpineHotkeys.md": "a0328ae30cb1da7115f476e0f0c2efd1bc68367f85e4adc3b2cbe37ba7cf707b" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/reference/interfaces/DefaultHotkeysOptions.md": { - "fingerprint": "be8996dc873d320cdbc95942e5b0e32c09b45dd0c499e0e839d29bf5178e6155", + "fingerprint": "65d10489485df5ac54b97e3474dd02eac8ee3740304e2c47e0a9085b0e10356b", "snapshot": { - "docs/framework/alpine/reference/interfaces/DefaultHotkeysOptions.md": "e78a601b1b93db4c71deadadfe2571547ccd0fe43c21d9d4d688d48c7c1fc34f" + "docs/framework/alpine/reference/interfaces/DefaultHotkeysOptions.md": "015c382da7b17c41179fa9e8f217427b008bc18c8073cf59be287d7d983440db" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/reference/interfaces/HotkeyRegistrationsResult.md": { "fingerprint": "a95818717650ab877ce69b9e168d32a07e5b12d6c273bbb4fe11edbd89eae17f", @@ -1535,64 +1488,54 @@ ] }, "source:docs/framework/alpine/reference/type-aliases/AlpineAppHotkeyOptions.md": { - "fingerprint": "8bb5b7bf6275b203c04d62b94b171175a5fa95010562a848812e5b2079091148", + "fingerprint": "a028b04641631783e93020f178a3a7f530ba6d60ac4bb50bef3b8778d8b8201e", "snapshot": { - "docs/framework/alpine/reference/type-aliases/AlpineAppHotkeyOptions.md": "fe614ac4660f8b185b3f253dc8bc804375d4548f474a127d8d542e006e4726fb" + "docs/framework/alpine/reference/type-aliases/AlpineAppHotkeyOptions.md": "57ba62c7d427e0cdf11592da4e31716cf90a03311e397316722ecada35be065c" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/reference/type-aliases/AlpineHotkeyCommonOptions.md": { - "fingerprint": "cb3e9af273b84ab66bf6f223ca7154aa0b46f4f873bac3118db2e33a603bb6d4", + "fingerprint": "5f1f8f9bc4c7494e7ea9cea087bc37288622947db48e924ee7c639ec248ead54", "snapshot": { - "docs/framework/alpine/reference/type-aliases/AlpineHotkeyCommonOptions.md": "60722d8aaca22080fd7b706166312a9bdc5e729c535ca6892ab9a018255f409e" + "docs/framework/alpine/reference/type-aliases/AlpineHotkeyCommonOptions.md": "9fbcc83bb61682f5933fb4913486954f950c05fc14cf106de301c3033daa7546" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/reference/type-aliases/AlpineHotkeyDefinition.md": { - "fingerprint": "fe2e1575dab68de852face85392a5f1a330b8183ad612a24fe4fa5fbe241ca6d", + "fingerprint": "a7f9313d57839325af4dc9271afc09ac4af69b34bfc214243fcd034a744fa7b6", "snapshot": { - "docs/framework/alpine/reference/type-aliases/AlpineHotkeyDefinition.md": "d76cd93f5712eb871e2a6eaf518f9272c70465d7da4348092dbf906278a52f85" + "docs/framework/alpine/reference/type-aliases/AlpineHotkeyDefinition.md": "28523ec660b55737c3328e7a200aed0e274c4dfbe9b5496f7ec1d6633e958373" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/reference/type-aliases/AlpineHotkeyOptionsFor.md": { - "fingerprint": "cfe52d83014528369d4b1e263774e0e6800c0659c9d5b08f97edc9acf1eeef71", + "fingerprint": "06ae319c05a8a14edd0ca5873c7791d6018b023fe95c98165df7d32e6bde65d5", "snapshot": { - "docs/framework/alpine/reference/type-aliases/AlpineHotkeyOptionsFor.md": "902fcd2b2e1b1187fd565f645503450817ae4a4c8fe8d5134b4d07945d535c48" + "docs/framework/alpine/reference/type-aliases/AlpineHotkeyOptionsFor.md": "f172a4b2da0bc2565b021b5496a3fa3de8bc6b1f2921a843a7deffe84236461d" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/reference/type-aliases/AlpineHotkeyTarget.md": { - "fingerprint": "d17d5e82fd223b8f48ac0cb9f40ad3048929cbbe75a634e41a41aa96920f0ad7", + "fingerprint": "940d6cead19d47f7c5ec028be62aa0ca1d82ddc46b40c6c5b7b68d6bf5e9f78e", "snapshot": { - "docs/framework/alpine/reference/type-aliases/AlpineHotkeyTarget.md": "21705ac4ae175a3f375cba473389fe2f60ef1c68e91b1d73073badc2331235c9" + "docs/framework/alpine/reference/type-aliases/AlpineHotkeyTarget.md": "d7866c01ce47d40fedfc25bc968963a20327623a103252d57f5da9c6f8fdd079" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/reference/type-aliases/MaybeGetter.md": { "fingerprint": "bd9f742d937efabc24de3b07be444448f9ce849677b73c15825f7d6bbb61f229", @@ -1607,28 +1550,24 @@ ] }, "source:docs/framework/angular/guides/cheat-sheet-ui-helpers.md": { - "fingerprint": "a3f4d633f0dcffcc4c631862c179f0e1dc4dbbfe54d2be9fdbd2c8a7a3a6a0ff", + "fingerprint": "e4ab2aefe6ff5c1365124f08ca2dfe1ae27598bcd123b109ade38356cffedbcf", "snapshot": { - "docs/framework/angular/guides/cheat-sheet-ui-helpers.md": "a7ada9f707a52b1930f3fe149ba94444386d2cc3b38bd1f31715932ab0668415" + "docs/framework/angular/guides/cheat-sheet-ui-helpers.md": "eac3778d2844c0617750bd221b2d8a0bce97b8c63e75595953a1716a4a36a699" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/angular/guides/cheat-sheet-ui-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:docs/framework/angular/guides/hotkey-manager.md": { - "fingerprint": "506807930f779b1a5c893bb4cc7c897fcd25efa59518051c2200366f5186a5bf", + "fingerprint": "dc77b7357f3ae331788daf1dda7bb62503b7744e14aa16ccc9988c3a9aac9a0d", "snapshot": { - "docs/framework/angular/guides/hotkey-manager.md": "59531f22b99e9f82b7b9839673323bf5918ad63809e8447cc666626b37d1d647" + "docs/framework/angular/guides/hotkey-manager.md": "b904691a955489032231bbe6f241220614be58c7673a8718a384c69b6107da85" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Reorganized and rewrote core and framework guides and extracted dedicated SSR and testing guides; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/angular/guides/hotkey-manager.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:docs/framework/angular/reference/functions/injectHotkeyScopesState.md": { "fingerprint": "3db0175bb8f1589b5792414efeeb48bb04d090d9f0831c1879d4b8916f5882dd", @@ -1641,40 +1580,34 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/angular/reference/index.md": { - "fingerprint": "9bdebf4697df7fe17b4c5c0772a0db7a171c882c43e804d4bf0dbd9aae4e7439", + "fingerprint": "eb701b223856e934cf06ddc3cfe0433ea33e5dc2a9e876b8b26d39412b2228d1", "snapshot": { - "docs/framework/angular/reference/index.md": "a6ecaa4425bf6eb25e2df3f533c865ce7db7101ad1c4a1dae6308ef7c3c8ed44" + "docs/framework/angular/reference/index.md": "d3d5a5be6c443642b09a2801d7f244adf3ccf87334d27db9a1dfc4f7d243b820" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:docs/framework/ember/guides/cheat-sheet-ui-helpers.md": { - "fingerprint": "953438cdc40534417cbfb6b5fe7241e3f153a5096f4a748ffbcef84685349ad4", + "fingerprint": "339461150558a45fa4694314071856eb90548f2f84c9356e71ebc9e35ced64d9", "snapshot": { - "docs/framework/ember/guides/cheat-sheet-ui-helpers.md": "8e337988346ee700f68e4a27de7b7bc7daa55fcde1ea02a3ee607e7319059db9" + "docs/framework/ember/guides/cheat-sheet-ui-helpers.md": "ffd4cb4aea1fa25732f75d2b7691f4b8909ac462c953365c69535b0ec6c9d7b7" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/ember/guides/cheat-sheet-ui-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] }, "source:docs/framework/ember/guides/hotkey-manager.md": { - "fingerprint": "d693dad1e6667888011e42648877768bc1f0ae0cb716d5455a62372e11fd4a33", + "fingerprint": "bad0e4080eec8d1811ae029d2dc1c2aded4e0cf304c415c540f3737c078e0594", "snapshot": { - "docs/framework/ember/guides/hotkey-manager.md": "f4ab88adc8a80f64c5ea79fdfb5d713191c0c16540daf0aebc1deb1246ce4a9b" + "docs/framework/ember/guides/hotkey-manager.md": "6b4b7fa929ed8d2de346acbd833e9ddd9906216a6e08a7cc8e3166c0d760a248" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/ember/guides/hotkey-manager.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] }, "source:docs/framework/ember/reference/functions/useHotkeyScopesState.md": { "fingerprint": "f2212051b3da02959e427889075aa04747035b3d870487ee286aba5dcc26d2c9", @@ -1687,40 +1620,34 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/ember/reference/index.md": { - "fingerprint": "1b9d8455173559c7b54a5c5adb6f36e66f4cd52c259e3bc3eca29956622d9fa9", + "fingerprint": "9a7ad8e43c95dd214b9902925784e6fd314ae6a885e3db326eee4daeb2dc228f", "snapshot": { - "docs/framework/ember/reference/index.md": "92bc2423cf49703975e7c8885e06d879706dfab0438f918f52f7b462f424f94f" + "docs/framework/ember/reference/index.md": "46e169301552744ecd9b50cb67ebf7494e9410d4a0866037e185f7d179d6e2ee" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] }, "source:docs/framework/lit/guides/cheat-sheet-ui-helpers.md": { - "fingerprint": "e14e003a94156b6c0c624f9d2af17e479e778136dda4cff466eb3ff12ed739e4", + "fingerprint": "ecb94433e5c8b5304d19b196a8fd0059ed10a4e256657f97b4079f2d4a1d7187", "snapshot": { - "docs/framework/lit/guides/cheat-sheet-ui-helpers.md": "e95489857b4860e7312d18dfae1c01eeb355495651b368bf7722467ca0110efa" + "docs/framework/lit/guides/cheat-sheet-ui-helpers.md": "f25189bc9f6837b3272ede97c18e22bef6c09e5b42c3636e508d393c4f8fed89" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/lit/guides/cheat-sheet-ui-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "source:docs/framework/lit/guides/hotkey-manager.md": { - "fingerprint": "2f064a0b6c51805c210bbe410ded31a1120a3adefed89e9e9b40c27ddf0194aa", + "fingerprint": "fe50936cc5ee47dfd477f10c36958e98717ac5bb4c2619d1f975580ded5ba5af", "snapshot": { - "docs/framework/lit/guides/hotkey-manager.md": "7b6a7594a8a05fdd674de350dec78efd97075bf7c78d511386e070e1017301f4" + "docs/framework/lit/guides/hotkey-manager.md": "3d9c25e4590cae204243e2674916213b3380b7bde29ec952b313d0ba893afd53" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/lit/guides/hotkey-manager.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "source:docs/framework/lit/reference/classes/HotkeyScopesStateController.md": { "fingerprint": "fe439ea1349e1d5e6315578ee2121443f323112b964b131ae710b3c36e99b97f", @@ -1733,38 +1660,34 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/lit/reference/index.md": { - "fingerprint": "80666851fbbefc48966f7e9677850a587b0df62ea7ebc7271ff04908d3c3fd3d", + "fingerprint": "9d7553d127513c2d10bff4c0b89ba19980ab08d8f45dd9597b1bd91e91ab81ed", "snapshot": { - "docs/framework/lit/reference/index.md": "4591d5ee6c96cdd2c29af9df88cd686e81994f0d9fadd583cc8f47ea7e5476ef" + "docs/framework/lit/reference/index.md": "d0b3693a0abfe3243014a00ffeac7a8fa28d5b1bda7420592d0bc38700fc53a6" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Regenerated TypeDoc page for the deprecated formatForDisplay export, the new Lit and Alpine label primitives, and Defined-in line shifts.", - "evidence": ["pnpm generate-docs"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "source:docs/framework/octane/guides/cheat-sheet-ui-helpers.md": { - "fingerprint": "8ad198c4cd9070fdc14c9086622e7146b6919b25110712306a4dc5f580f865d4", + "fingerprint": "72f3938c8a0c9fc936f58d1ba5904b940b47b8e6430add241b567cd5fe588837", "snapshot": { - "docs/framework/octane/guides/cheat-sheet-ui-helpers.md": "143ed8f73a6a421a3762e259a6a150fd7240c0f1f07dd2806ec2b533dab812de" + "docs/framework/octane/guides/cheat-sheet-ui-helpers.md": "db6f499957bec727ae1350d234de024ce3f2f0b8e8e141c2f8cd95070d4cb745" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Reorganized and rewrote core and framework guides and extracted dedicated SSR and testing guides; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/octane/guides/cheat-sheet-ui-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] }, "source:docs/framework/octane/guides/hotkey-manager.md": { - "fingerprint": "ffb52049c57eff6a126e6e2a83afcd62b3a0147611ce16d95dd17bf4b05eb0c4", + "fingerprint": "3dc73fa6b44a38e4cd5d64685370397e32e6a379b0aba4091917aa03359f96aa", "snapshot": { - "docs/framework/octane/guides/hotkey-manager.md": "704bf576b57e817660d77f639070e9bc78ff8a3bc68887966ba9acec28a20625" + "docs/framework/octane/guides/hotkey-manager.md": "ca0eed70bb3c23bd5ff1b6da33b3fa2f753e66e856584c79c1931c0337e4dd3f" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Reorganized and rewrote core and framework guides and extracted dedicated SSR and testing guides; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/octane/guides/hotkey-manager.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] }, "source:docs/framework/octane/reference/functions/useHotkeyScopesState.md": { "fingerprint": "8e98b358165160f138590ce2bfab7b43ab80701593cfb54114c2a6f72e49a6f6", @@ -1777,38 +1700,34 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/octane/reference/index.md": { - "fingerprint": "1388130ecf8af91f9e496144c742baf2a125e986e06598c4ffc25b6294d7749e", + "fingerprint": "5a899ebc0cc02529bb4cd2ff0f1af6c4b0671fbbd31de0f1eddb834644c5fe06", "snapshot": { - "docs/framework/octane/reference/index.md": "79fbb759cad43a6e51bf29fd80de195b56ab804efb4a3f852fa3afdcd242c4c5" + "docs/framework/octane/reference/index.md": "dd464e8ac41d8e5a4bc07c35cb959b623f3f83752970d0a07cfecd25f39fc2a0" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Regenerated TypeDoc page for the deprecated formatForDisplay export, the new Lit and Alpine label primitives, and Defined-in line shifts.", - "evidence": ["pnpm generate-docs"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] }, "source:docs/framework/preact/guides/cheat-sheet-ui-helpers.md": { - "fingerprint": "112bf2982df3c5d88cf82a194c9abf9796beeae5121bfdda9f6cfbc887540843", + "fingerprint": "aa97059295167a3fef6d2eac78316f2d6a06f8d564c4639e097d90541dfca448", "snapshot": { - "docs/framework/preact/guides/cheat-sheet-ui-helpers.md": "d47492d53bbfb8b02ce40fcf1afdc6d1093f5a6edd759a63637b055765fa94cb" + "docs/framework/preact/guides/cheat-sheet-ui-helpers.md": "c04d5a86e91a0c8c3c373991f207ce792985f01e748f34099ff7e5ef70015ecd" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Reorganized and rewrote core and framework guides and extracted dedicated SSR and testing guides; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/preact/guides/cheat-sheet-ui-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] }, "source:docs/framework/preact/guides/hotkey-manager.md": { - "fingerprint": "96ea55b41393d932e4bb36800054d3a42cc3802e47dcb48d937a806277a7c444", + "fingerprint": "b19ca4bc7075f2cf2f1b231f51c9569c34d2cc191befa93d1c9dc072a86bdce5", "snapshot": { - "docs/framework/preact/guides/hotkey-manager.md": "7edb00eef117076a440c05cd4e205222fe1a4699143f9d27d56b07318e0a7da5" + "docs/framework/preact/guides/hotkey-manager.md": "ca8f4f7df2030a1aeaef48aed0f7f0a90425bdaf6d455ec0cd595250834ec2ef" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Reorganized and rewrote core and framework guides and extracted dedicated SSR and testing guides; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/preact/guides/hotkey-manager.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] }, "source:docs/framework/preact/reference/functions/useHotkeyScopesState.md": { "fingerprint": "5ad1a070c8823b82ced0484dbf650b619adea59670160f41e4accd58d9950491", @@ -1821,26 +1740,24 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/preact/reference/index.md": { - "fingerprint": "92153c5437856a2b201d00f5f3290097c09444a564543623119f20751a6f0a0f", + "fingerprint": "b7bfd278d92cc7a95077847ad0a98fc293604781148de8212b08f452d933e2a9", "snapshot": { - "docs/framework/preact/reference/index.md": "e68799bf9bd6031b57ff308437c34dc9aa13ac38626737fa570c3bf80b405607" + "docs/framework/preact/reference/index.md": "b7841cdf04f5d81147e89f5b02a687913a2ae0dab2b2977d52987c9502ff66c2" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Regenerated TypeDoc page for the deprecated formatForDisplay export, the new Lit and Alpine label primitives, and Defined-in line shifts.", - "evidence": ["pnpm generate-docs"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] }, "source:docs/framework/react/guides/hotkey-manager.md": { - "fingerprint": "dc0251eeb497b9dde915a45dd635c8ae0596e24a8d0fdfe9f06c23a2ff5baf93", + "fingerprint": "cb66e78b031fb982254c5aebaca447783100ed767b9374316f19313fcd4bc92f", "snapshot": { - "docs/framework/react/guides/hotkey-manager.md": "56457acce6f7f9e276649516d1eacdea609284f7f89c92e3ca3ac14365e9eb21" + "docs/framework/react/guides/hotkey-manager.md": "cd6891f725ece10702435a6999edb6c9017b7d235f38722157d391a3f3393811" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Reorganized and rewrote core and framework guides and extracted dedicated SSR and testing guides; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/react/guides/hotkey-manager.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] }, "source:docs/framework/react/reference/functions/useHotkeyScopesState.md": { "fingerprint": "c634febd91fb02692ab3d271a87c0e4bfb90aad0f56d692f565f261725c74e25", @@ -1853,40 +1770,34 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/react/reference/index.md": { - "fingerprint": "908e7ce4b7e52b4edbefb8234f1445eb271aee0fad3915a7949438463f78e8e8", + "fingerprint": "d6994525cfdfa1556e41b34124c8b7136f5e78897add516429651f37bd04d369", "snapshot": { - "docs/framework/react/reference/index.md": "49d5ddcac4a082a6e3ae8b4001e6456285541eac1c7849c1d5a2df54b2dcd0d0" + "docs/framework/react/reference/index.md": "521b2d497169d287493e08ddb939063df99092e470bb85fc99995156bdc2fb38" }, - "head": "fb6af948672bc43c0c35414df41bb63724a85e97", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Regenerated TypeDoc page; only source line links or the new AppHotkeysProvider and installAppHotkeysStore exports changed, which the skills cover.", - "evidence": [ - "Diff of docs/framework/react/reference/index.md against origin/main." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] }, "source:docs/framework/solid/guides/cheat-sheet-ui-helpers.md": { - "fingerprint": "5cb64a46f7ea27b76376e4be2a873399a371aa403158e7910287cfa2e1a02546", + "fingerprint": "1f111f603a481ab33dd12044a257e20856a6333c61d86567341d694d9b6db6b5", "snapshot": { - "docs/framework/solid/guides/cheat-sheet-ui-helpers.md": "f466e8deb61a3cb4f720178278e868d870980f4fc9fbd476b5b7baa5aba5f0f9" + "docs/framework/solid/guides/cheat-sheet-ui-helpers.md": "b07bb93bdcd80fab8dc853598a166c0abc3aea6f81aa442004f95b0055b7ce2b" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/solid/guides/cheat-sheet-ui-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "source:docs/framework/solid/guides/hotkey-manager.md": { - "fingerprint": "985af345f359d601208f5a48f3a1e5c05b55c31c47c70ee74bc3c46d87a61cea", + "fingerprint": "76ec9052b7a7798240cbe5db2ac0c0a62661634054875487fd34e941faff0c21", "snapshot": { - "docs/framework/solid/guides/hotkey-manager.md": "1add1860f5c90336083316288dfce2a3a4ee92ce17c4dcadda8ea776a628f46a" + "docs/framework/solid/guides/hotkey-manager.md": "dbf4f4241290d5232ad499b40f0938146f0740f48f98f821b05bfb15d746ee73" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Reorganized and rewrote core and framework guides and extracted dedicated SSR and testing guides; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/solid/guides/hotkey-manager.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "source:docs/framework/solid/reference/functions/createHotkeyScopesState.md": { "fingerprint": "864180dcde757cc13476c61d717950941a249a00b9bcb8847fdd7445c165c3a3", @@ -1899,38 +1810,34 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/solid/reference/index.md": { - "fingerprint": "d9fa6d686ce3a662369b75b7b9d691ef02e55fe15350d747ef88a4d938f51301", + "fingerprint": "105a2e591cff8d316447cd124cec8fee0e4f0ac7004777506597245c4a9dc7cc", "snapshot": { - "docs/framework/solid/reference/index.md": "67ed2a7bccbb4f428b3e0c13932d69bf21ec4ec846d150c0e83359606478bbd1" + "docs/framework/solid/reference/index.md": "5c392fabdada3681cc9efa6b3dc89b3a0a3414209cd4f5077ffd40dfcd792996" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Regenerated TypeDoc page for the deprecated formatForDisplay export, the new Lit and Alpine label primitives, and Defined-in line shifts.", - "evidence": ["pnpm generate-docs"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/guides/cheat-sheet-ui-helpers.md": { - "fingerprint": "65f195831238970b0ee0c6c8a3b3b294fcffff5aa61d7126f1864a1c9693d45e", + "fingerprint": "e0aa02695b2329b43d971978488f378481816e60a19c146bc6f756134221098d", "snapshot": { - "docs/framework/svelte/guides/cheat-sheet-ui-helpers.md": "1663251a273fcd3b1f518797297294b105d8d0b2bc2129af42b0e1c89a86ad77" + "docs/framework/svelte/guides/cheat-sheet-ui-helpers.md": "07613524325c2293d33a718a6da73fa6d856e8a864649ee0c8d08e7e2ad9e3c1" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Reorganized and rewrote core and framework guides and extracted dedicated SSR and testing guides; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/svelte/guides/cheat-sheet-ui-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/guides/hotkey-manager.md": { - "fingerprint": "4a2f2a85cbad5076ca29a957e36a6a5f702c401ccdaeb2e4d3e958caa82ae62d", + "fingerprint": "38368c6e70124665d79fe4d8bca888e282b587170b3c6c595c20b06a4c78adfd", "snapshot": { - "docs/framework/svelte/guides/hotkey-manager.md": "daa7008803940352a1525a021811a5b157b39b33f88d1e025ab6a2a79c56354d" + "docs/framework/svelte/guides/hotkey-manager.md": "6b6194bf478d2e854d0caca93c55953d3c9084c95477bf01887c0cf0bfe8ba3c" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Reorganized and rewrote core and framework guides and extracted dedicated SSR and testing guides; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/svelte/guides/hotkey-manager.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/reference/functions/getHotkeyScopesState.md": { "fingerprint": "1a48b873da720be791f5a4c013d40858b7ed63e9ecffd1d0d4618b631ed66f27", @@ -1943,14 +1850,14 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/svelte/reference/index.md": { - "fingerprint": "7b0cdd4361b32be9ad2456e5a959a0e6641c64017a9fe351885a9b283c8874ab", + "fingerprint": "66fcb9474bab936115d6dd27776a5ad6a219cf7cb06d351772e1b8a38fa6472d", "snapshot": { - "docs/framework/svelte/reference/index.md": "c1c27b07a9c39c1e96272a309c91f71b4e7655062f2184abb0fb93fd691312a3" + "docs/framework/svelte/reference/index.md": "5939240dc4afae3b788aa6b615fc7f0bea8977ca48ff6427dc7a59ee468df091" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Regenerated TypeDoc page for the deprecated formatForDisplay export, the new Lit and Alpine label primitives, and Defined-in line shifts.", - "evidence": ["pnpm generate-docs"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/reference/interfaces/SvelteHotkeyScopesState.md": { "fingerprint": "d498c228313b113f3d645c3f9b463707a67d32493b3adcefa7a082350da1d5cb", @@ -1963,28 +1870,24 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/vue/guides/cheat-sheet-ui-helpers.md": { - "fingerprint": "4f4f2c8d745450089031a2ec3afb1ead694f394c14c6e370ee021fd8158ae6af", + "fingerprint": "fddefc37cf82298fe07352563885f464342aaa1d10fc7cee9bbc033fc173ccde", "snapshot": { - "docs/framework/vue/guides/cheat-sheet-ui-helpers.md": "b8d8fdbef478cba563d5fbe4ca9d7287e47638b5ee8b52fd9c97646ab3112f0e" + "docs/framework/vue/guides/cheat-sheet-ui-helpers.md": "8e2873469d8f359e3d8a582b1428cbd760892ba1a157a0bcc4fbe39736d7cf7a" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Reorganized and rewrote core and framework guides and extracted dedicated SSR and testing guides; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/vue/guides/cheat-sheet-ui-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "source:docs/framework/vue/guides/hotkey-manager.md": { - "fingerprint": "4f380b36b0569af173ec9816222089114d2002dfbd429f711f1abda5ff0006a6", + "fingerprint": "d80983215f68acd7f5b42e71105d9e84cd89cc2bc6445032c859466be12167c7", "snapshot": { - "docs/framework/vue/guides/hotkey-manager.md": "8a1fe9329387561e3d82d13105775ceb1b3ae0cae64362414a56c18f4836c7ef" + "docs/framework/vue/guides/hotkey-manager.md": "ee6ba9829f602f912f0fc6ad7a0411b76f4a1364cddf412dcc538896b10ee756" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Reorganized and rewrote core and framework guides and extracted dedicated SSR and testing guides; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/vue/guides/hotkey-manager.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "source:docs/framework/vue/reference/functions/useHotkeyScopesState.md": { "fingerprint": "6aad8d327bb70d6c2c2c544252f15bba80dd521f1d54ba39ca90e6da44b38ab3", @@ -1997,36 +1900,34 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/vue/reference/index.md": { - "fingerprint": "8db6da7657ef39ba330cf689ee018858ae183f6f682bb01d28ec70fed9f647d8", + "fingerprint": "0f29392a0a4de00b0029480f69424a384ee74fad09509fe356a4b25e4c4559d9", "snapshot": { - "docs/framework/vue/reference/index.md": "e20986aa36e4b45facbfa49736948b14329ae78d2fb2dfa5cd26436bf48871a7" + "docs/framework/vue/reference/index.md": "935865f49e266daf70e1b21705a1eba7088b636df513c840fcc9d6a246560411" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Regenerated TypeDoc page for the deprecated formatForDisplay export, the new Lit and Alpine label primitives, and Defined-in line shifts.", - "evidence": ["pnpm generate-docs"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "source:docs/reference/index.md": { - "fingerprint": "779f4559f05a5de3fae6faf7d0beb0a1de8103963ec9a3cf3f5ba5d7978f32a7", + "fingerprint": "9802c4b2a6700601abc778f8597b5897cc01fa900b696b93af586f704f928dd1", "snapshot": { - "docs/reference/index.md": "9d461915c9e8b2d40869da21e80b7d21f66b2e5f7dd46ce77f32f965cbcfc396" + "docs/reference/index.md": "4f91452dabfacc18d6c003ae1c859216b02eb1ea2363b0b80e070d9187d75997" }, - "head": "a7c7ddcf89fac99790eb60372fc440fcc34f1b07", - "outcome": "out-of-scope", - "reason": "Generated reference docs, examples, tests, sidebar config, lockfile, or package/tsconfig wiring for the layout key types; no skill guidance depends on them.", - "evidence": ["No skill references this file"] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/type-aliases/HotkeyRegistrationStatus.md": { - "fingerprint": "0d99493ae3681b59902b554ec75dd38a21932333da4eb1cb0e864e36920ee2ca", + "fingerprint": "224516b2f9aa1fda4d5ff3723228d8fc539537fd0e4fa24b6291605b419fc89e", "snapshot": { - "docs/reference/type-aliases/HotkeyRegistrationStatus.md": "80be6b82c9d68d5ac329075253c0bcf97f127215b195dcb5a50bd5ed9dea7b1a" + "docs/reference/type-aliases/HotkeyRegistrationStatus.md": "ed87d33999dd03c1301f50292c63bf6b1d76108493d8b6fa11a72cc28c8e20af" }, - "head": "75b6c798a9a07d3f902d5899b5536220ea30ceec", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Docs, tests, and the ignoreInputs auto resolution for function and media keys; the core skill covers the rule.", - "evidence": [ - "hotkeys-core SKILL.md defaults row updated in the same change" - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/alpine-hotkeys/src/createHotkeyScopesState.ts": { "fingerprint": "efa0da765d7c23fe56e690ebc774b7ea456a343c908ad8239732d0741f3b64a1", @@ -2039,29 +1940,24 @@ "evidence": ["packages/alpine-hotkeys/src/createHotkeyScopesState.ts"] }, "source:packages/alpine-hotkeys/src/types.ts": { - "fingerprint": "be103bfc6b4c3cbf48af582d76ad04711ec7602dfb6b84f97b5db0af143ca437", + "fingerprint": "0c3f3df09bda7fc93de62ba878222ce6ddaa6c4b3730aefe43b96dcaa6e957bf", "snapshot": { - "packages/alpine-hotkeys/src/types.ts": "76fc600b2e6b35bd2c1adc66a9ab612dff94aaf97cec9489f9fecc33c64de7b2" + "packages/alpine-hotkeys/src/types.ts": "e8c9115117cbf6a2844d751fa083b0ba1b712fe58ebdb4092be7d607b347d44e" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:packages/angular-hotkeys/src/index.ts": { - "fingerprint": "9f62593a28fa4804534ea88f3977d4c84720d3217bb628d11522f658a6f11fbe", + "fingerprint": "1985f1b41acda9f12d26299f4dd23a179836fed71894345e7b617fc4452fa945", "snapshot": { - "packages/angular-hotkeys/src/index.ts": "d49bacee670f33189ad338cbbddb97c999d51c4b675f78ba86a694765e78a1ce" + "packages/angular-hotkeys/src/index.ts": "c73601d5816ad022f55b29a61a0d6d5f16343a707b244f8ca764ae812ed1a243" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", - "outcome": "updated", - "reason": "Source of the deprecated formatForDisplay export, a new label primitive, or JSDoc for them. The framework skill describes the label primitive and the deprecation.", - "evidence": [ - "packages/angular-hotkeys/src/index.ts", - "git diff 7d9cccc3 -- packages/angular-hotkeys/src/index.ts" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:packages/angular-hotkeys/src/injectHotkeyScopesState.ts": { "fingerprint": "70a3169e1d8c95a00a9e393d5446ffff0527420017bbc92393bb12b894db075e", @@ -2087,16 +1983,14 @@ "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/ember-hotkeys/src/index.ts": { - "fingerprint": "cc496eea506469d362d401f650b5e7c1b8127ce0820e0bdc1ff4e2e9a1085eed", + "fingerprint": "19ec6c24606145846172e2f6cb33cb1bca9380487546a7308408bc87666c5019", "snapshot": { - "packages/ember-hotkeys/src/index.ts": "2f64889c75c6f4ddd6892262c0333ae58a5b590bebdb062d62d62228d2fecfc7" + "packages/ember-hotkeys/src/index.ts": "40afca5fce27e1a2b7097b97d682c3ba65a4b0155cb2d0d7098def74b1b56146" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] }, "source:packages/ember-hotkeys/src/useHotkeyScopesState.ts": { "fingerprint": "f09696791667531dc19e8a8ddd2db5c56c3bf0c4401b171ee908c23a90b8a73e", @@ -2119,29 +2013,24 @@ "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/lit-hotkeys/src/controllers/index.ts": { - "fingerprint": "ff02e98d992a815e26bec78a4dbe59da5c50d490f76b8964364b70a5278c57ee", + "fingerprint": "383b78f1ab7eb4394c500d90330c4afcf85c904f954d0b9ab80b82952abfcc49", "snapshot": { - "packages/lit-hotkeys/src/controllers/index.ts": "1ccbab4f2dda93d766c090e6e00c816288b1b991e9c80b0aed0b7387d7b8b98d" + "packages/lit-hotkeys/src/controllers/index.ts": "80cbfbdc9e306dfbbafcc8bfa8aa8a78957c3703c5f2abf968d2670b124c605a" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", - "outcome": "updated", - "reason": "Source of the deprecated formatForDisplay export, a new label primitive, or JSDoc for them. The framework skill describes the label primitive and the deprecation.", - "evidence": [ - "packages/lit-hotkeys/src/controllers/index.ts", - "git diff 7d9cccc3 -- packages/lit-hotkeys/src/controllers/index.ts" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "source:packages/octane-hotkeys/src/index.ts": { - "fingerprint": "c682d41f1a6ab15ea4213810fa080c8b7da5b2d9b99e7af6019cd91fc29504a2", + "fingerprint": "abf411fb57794db6ebb8a5f923b1f3c6a36efbe9dd0d88b754a4f5f6f978e7bc", "snapshot": { - "packages/octane-hotkeys/src/index.ts": "fcd2aa199c55c5f0a015cb05475432d106ce02d080666080a791e2d1f28e9256" + "packages/octane-hotkeys/src/index.ts": "08b3d66250e89d6ba78fa666cd4bfc11fcc3a888c19a3c83b9e5b3b20c946053" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] }, "source:packages/octane-hotkeys/src/useHotkeyScopesState.ts": { "fingerprint": "3b29279a2a81b4c22b625c71cbfa488641d4c28ef5f6b1b90513ac7927e03c9d", @@ -2168,17 +2057,14 @@ ] }, "source:packages/preact-hotkeys/src/index.ts": { - "fingerprint": "16698b4df9c82df368a2479968afec68590c4e4c76e86156bec61a6a81bcd55d", + "fingerprint": "8545d6fefac148a14e18ebb01c19597599ef33e393340db20f66740edaf44dbb", "snapshot": { - "packages/preact-hotkeys/src/index.ts": "477d93da0ba2efc5ce373fd1006cd39f8db8464754ded340c28f1ff6e0cf206f" + "packages/preact-hotkeys/src/index.ts": "f05a0226e5d3200e68c6d371561f54a2a03538aa7306a3df73bd0e81905a7197" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", - "outcome": "updated", - "reason": "Source of the deprecated formatForDisplay export, a new label primitive, or JSDoc for them. The framework skill describes the label primitive and the deprecation.", - "evidence": [ - "packages/preact-hotkeys/src/index.ts", - "git diff 7d9cccc3 -- packages/preact-hotkeys/src/index.ts" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] }, "source:packages/preact-hotkeys/src/useHotkeyScopesState.ts": { "fingerprint": "c26dfeef79e6e32ecaa6930a7aae937a3c08ff3e785d5f68b884c88f5fd01bed", @@ -2206,16 +2092,14 @@ ] }, "source:packages/react-hotkeys/src/index.ts": { - "fingerprint": "6aba7c6151b69f5722d2fba126d8cd9dcf097663cfc2d9e8121b4db9ed68f6f4", + "fingerprint": "d3bc75d3109bc28a42e5fba80bb46bd86ad785d2fa5e296b0e733fcc6c409ba5", "snapshot": { - "packages/react-hotkeys/src/index.ts": "ec4f827c2ef8bb9a71b41c0923f6478149116b562f853c1bde3fa06265fd8e7c" + "packages/react-hotkeys/src/index.ts": "4d1d89e24b3d9c53cae54d8e7ea6d181ac488f6317df6a2d54e3b359c81c17e3" }, - "head": "fb6af948672bc43c0c35414df41bb63724a85e97", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Guide or config change for the meta update rule or AppHotkeysProvider; the affected skills were updated.", - "evidence": [ - "Diff of packages/react-hotkeys/src/index.ts against origin/main." - ] + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] }, "source:packages/react-hotkeys/src/useHotkeyScopesState.ts": { "fingerprint": "e47bdb434c94ff29f3d91239601aa2830a94defedc5d215210fee4a3712969c2", @@ -2254,17 +2138,14 @@ ] }, "source:packages/solid-hotkeys/src/index.ts": { - "fingerprint": "f72144068beca8e1e2045b1dffeb2f50f9859ea724e027184fc0aa73b6f9b29b", + "fingerprint": "2d108d3d662cc0edea1b9f186c07aeae36537768355c1a8897e55ac57c34877a", "snapshot": { - "packages/solid-hotkeys/src/index.ts": "1560af51b46d906e0dbd869a726b2bc18ca98688c03ddd9af90edaa291ba7596" + "packages/solid-hotkeys/src/index.ts": "edf2bacb43a6c5744788aaaa0d0ef0f899e860b244e85a9606ad62830c8d80ca" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", - "outcome": "updated", - "reason": "Source of the deprecated formatForDisplay export, a new label primitive, or JSDoc for them. The framework skill describes the label primitive and the deprecation.", - "evidence": [ - "packages/solid-hotkeys/src/index.ts", - "git diff 7d9cccc3 -- packages/solid-hotkeys/src/index.ts" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "source:packages/solid-hotkeys/tests/scopes.test.tsx": { "fingerprint": "e373cc9b026efa36c92bfb7a05b76132a2f8e44c60e89f97b015dafcc5fd7095", @@ -2287,17 +2168,14 @@ "evidence": ["packages/svelte-hotkeys/src/getHotkeyScopesState.svelte.ts"] }, "source:packages/svelte-hotkeys/src/index.ts": { - "fingerprint": "60f0ee09751b68fccf9ba2c436b96134756ba4c94a8cb5ba427411a4feb84cdc", + "fingerprint": "16fb18c1b7bdfda759de01dfde4d8c57d5e47ba8d3149725bfd979b0d08f9070", "snapshot": { - "packages/svelte-hotkeys/src/index.ts": "b40155c2d911ac613df7c5c06a259bb43c94fc24878ee934f22748bfe8e7960f" + "packages/svelte-hotkeys/src/index.ts": "583151365959946baca1e4ae4e5abe6dbd646bc869debdf906ded190479f7adb" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", - "outcome": "updated", - "reason": "Source of the deprecated formatForDisplay export, a new label primitive, or JSDoc for them. The framework skill describes the label primitive and the deprecation.", - "evidence": [ - "packages/svelte-hotkeys/src/index.ts", - "git diff 7d9cccc3 -- packages/svelte-hotkeys/src/index.ts" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:packages/svelte-hotkeys/tests/scopes-controls.svelte.ts": { "fingerprint": "70de3730c9b6bf8d27d698209c724bac88d56d94ba2bd3ab4d63d4a4c68ecb48", @@ -2323,17 +2201,14 @@ ] }, "source:packages/vue-hotkeys/src/index.ts": { - "fingerprint": "4474eb38ef62e80443f9003bacd7c83da2dbc4d01d613107ffde4aab9ce332c9", + "fingerprint": "4b3891d171f2c4c6d4d0cb8a6f7830e90cde91e0eb14ebab9d1042743490d606", "snapshot": { - "packages/vue-hotkeys/src/index.ts": "219383e5763e0ce4377ddb195d86e2e4a17253e0091ce54be35b68b77559da29" + "packages/vue-hotkeys/src/index.ts": "524b8c9f6905ce270833b20f00ba37be19c098c13bb719df54f7a085cb4bd468" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", - "outcome": "updated", - "reason": "Source of the deprecated formatForDisplay export, a new label primitive, or JSDoc for them. The framework skill describes the label primitive and the deprecation.", - "evidence": [ - "packages/vue-hotkeys/src/index.ts", - "git diff 7d9cccc3 -- packages/vue-hotkeys/src/index.ts" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "source:packages/vue-hotkeys/src/useHotkeyScopesState.ts": { "fingerprint": "be014509719d9813df8ac10a76c954c68707d4e8a961c538b3459035d82ada0e", @@ -2362,14 +2237,14 @@ ] }, "source:docs/reference/classes/AppHotkeysStore.md": { - "fingerprint": "41fe296d8f3820535927a05cb9e488a0c3d2465cfde25766059f831871fb1114", + "fingerprint": "06ee6a69b907f9852f64237bb6217db32406f33ece7e362b0481c304ea2e6db2", "snapshot": { - "docs/reference/classes/AppHotkeysStore.md": "97926a190afa16b8bc9a4be24649230ef0735a30fb45af6a3bfeddc65902b7f7" + "docs/reference/classes/AppHotkeysStore.md": "105dc34a84c1c43d7af8a89aeb9b7a0576b07bfe82744ff34df0deda18fed493" }, - "head": "05be1291a103f39c2570697d44e8df5e039f4497", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Covered by the app-hotkeys and hotkeys-core skill updates; generated reference, tests, e2e and guide edits need no other skill change.", - "evidence": ["docs/reference/classes/AppHotkeysStore.md"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/functions/defineAppHotkeys.md": { "fingerprint": "b64be9a81474b04f7b38887ff2c15a630c2dfa1d12b24c257cfa00b6ea7cad81", @@ -2382,14 +2257,14 @@ "evidence": ["Core 2,001 tests, adapter suites, e2e"] }, "source:docs/reference/functions/getAppHotkeyRegistrationOptions.md": { - "fingerprint": "8ea233cd2be25aa271bb3169988462ec64c93585180d9c7a5118299d6e92377f", + "fingerprint": "bbae22e9197bdf187e48df85727d2668622d49d45f759ae1e9db141208da8db5", "snapshot": { - "docs/reference/functions/getAppHotkeyRegistrationOptions.md": "e6e6dddaae44cbda7e77bd380a9216de625d5048afb6d52d57d2ce8e890c47e4" + "docs/reference/functions/getAppHotkeyRegistrationOptions.md": "47515b484395182a5f3814ecff0ded556d442cfffd333378d2316baa26f0a196" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/functions/isAppHotkey.md": { "fingerprint": "d5ac732442089caf14e605e9c8b3356d2d069a556ee15c81cd44b7bb4bcfc381", @@ -2412,34 +2287,34 @@ "evidence": ["Core 2,001 tests, adapter suites, e2e"] }, "source:docs/reference/functions/provideAppHotkeys.md": { - "fingerprint": "149165a329387086fa3ddb7f2cb8c35e26ae18c04a6c7831c4c1ab7ed1ce6a2f", + "fingerprint": "b82356ccce645747c9a6decbb3167c5329cf6862716e9cfc256a90dc39c06813", "snapshot": { - "docs/reference/functions/provideAppHotkeys.md": "6356a252c2ee932e75e93337ccabe865f6e4e2e40b69eefd7d3b28461c792d67" + "docs/reference/functions/provideAppHotkeys.md": "80f4c93dd1021ea428041d4aac35d133a57a854607de8bc0695c7326c7c99ed6" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/functions/publishAppHotkeysStore.md": { - "fingerprint": "4cc0b2f690a21e71d97baa4df36e9b1a4324e34dc1469ced4b332f7f04ebcba8", + "fingerprint": "c393ff22700da1b5d4a9dc947a1f9ccaab5ae9fec989f3f20760f856dca5b0a4", "snapshot": { - "docs/reference/functions/publishAppHotkeysStore.md": "91e4cbe4d16deb94ae42aa46d28a777ca7543653e29ddcf181af087652c19f4d" + "docs/reference/functions/publishAppHotkeysStore.md": "9a75d067604791ae5e4fa863a9943f6b2f88ebb9e72925051a2e33f0001fe41c" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/functions/resolveAppHotkey.md": { - "fingerprint": "dfc6abb0798fe11d382243329cdd9a2d951a2a63accda1a60a200fb9eaa73f1a", + "fingerprint": "97a00977285ed46d66fc64098005164f60a4e390e3cfecaf335c2f3aae00cba3", "snapshot": { - "docs/reference/functions/resolveAppHotkey.md": "a57b76d6b012fd3daf743931ad3e005430985fa2d581147aa314f85252dad2c6" + "docs/reference/functions/resolveAppHotkey.md": "4569a0f748f6c1a489ec936dd116076de6ab9544bbfa2492a4c97905ead589a3" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/AppHotkey.md": { "fingerprint": "2fcea44dd9ba28061f6055e3517f5ac69a8c851cb18c33d1c2494c293b036f87", @@ -2462,34 +2337,34 @@ "evidence": ["Core 2,001 tests, adapter suites, e2e"] }, "source:docs/reference/interfaces/AppHotkeyListItem.md": { - "fingerprint": "ca65dd90b224f0abcca6d4ffcd04840e909a53cedee0fda7f42a701ef049f64d", + "fingerprint": "361cc9a529f76f1c07e121160cd983a4851d148dfbbec366c2851abc18081ce6", "snapshot": { - "docs/reference/interfaces/AppHotkeyListItem.md": "1600073c0652bfcbab7e6a0d0200b22f56268fed9e0b19412ca03cff8ca4eb6b" + "docs/reference/interfaces/AppHotkeyListItem.md": "a357c6eb11f37ee70266cba59095d2b1f2f34b5ed4d4ce269a2fd2b1a0bb1b89" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/AppHotkeysState.md": { - "fingerprint": "04d39037e9b9fe4a1a952f24d53c81d1da30fa49580cbcf2319a54a3b3252323", + "fingerprint": "1cda7d8acac789e9c50f0f1d7bcfc11e1394b5a3e66d4c6b700b2bd34f393206", "snapshot": { - "docs/reference/interfaces/AppHotkeysState.md": "fa0bbb96bdb1aafa1ec8041980cb13b555861f1488b1b22cd434c91d1ef5ece0" + "docs/reference/interfaces/AppHotkeysState.md": "a92e7c661b92d75f9ee8b3d0c05d7c1b250ee6b67d0b3d778a04e228f2cb0e60" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/AppHotkeysStoreOptions.md": { - "fingerprint": "31996eef6edf22e2dff7a4a20983c1774fc853d525164a2e858777de26cd5d51", + "fingerprint": "309f37da7b05a7c3183be0b4600e7e242261568862bdcba2bedd45a70bcab645", "snapshot": { - "docs/reference/interfaces/AppHotkeysStoreOptions.md": "d7eace049e7be7194e80f753009b05f07115684379089b8074f142c7468344cc" + "docs/reference/interfaces/AppHotkeysStoreOptions.md": "9976b8d6badd18e980c28bc791a260e27c2b46fcac9f2db077c476b74399904b" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/Register.md": { "fingerprint": "e8327baf0e0d43563d5bcf3deffdf934f959ecda36e1e47d24ea1121cf7d8e84", @@ -2552,14 +2427,14 @@ "evidence": ["Core 2,001 tests, adapter suites, e2e"] }, "source:docs/reference/type-aliases/AppHotkeyStatus.md": { - "fingerprint": "51e9588ef0cf4ec8f4126c587ffa5cece899fc1c4a1096756b1d708d6083ffec", + "fingerprint": "54c03399126a9e35b4a50f8c63fd43a4675926b8f04da57f912652ee2e8ec45e", "snapshot": { - "docs/reference/type-aliases/AppHotkeyStatus.md": "7cbcc8eb1b7fba331626a10b57bb10eb5e65a8bd81c493cd1dd0f71e2ae0906f" + "docs/reference/type-aliases/AppHotkeyStatus.md": "0c395f926eb7b7aa40d7c8e5ac032d2bec47e2c3969d8f8b4bf5cf800b7efbda" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/type-aliases/AppHotkeys.md": { "fingerprint": "a8913b1cc09213d6c8efc361169ec74b784f6fe07264b1d7148c5dcb408305b0", @@ -2614,24 +2489,24 @@ ] }, "source:packages/hotkeys/src/_event-target.ts": { - "fingerprint": "f14c5229b2609f88679092548064ee1ee9d01f8bc863442787491c1de2c2e0b5", + "fingerprint": "6ba19cb0cd0b063bd009d754ad5e1d3671a1a78a36aec38d39bc406afd15c0be", "snapshot": { - "packages/hotkeys/src/_event-target.ts": "3381199aecbe2f1d502132d5d6bd7d1521da56f174d1459cd122bd59dd142ea9" + "packages/hotkeys/src/_event-target.ts": "f38196042ff9494feed2bda67e7dea7b2f0af1a0c9e1a1226a900ee48f0e3914" }, - "head": "5fcac05f4b780df8e46dbf41a6d50298d5b4a93e", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Comment wording for the Escape layer check. Covered by the core skill.", + "reason": "Internal change: the private constants move or the character-key classification behind suspendCharacterKeys. The core skill covers the public behavior.", "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/config.json": { - "fingerprint": "f6d629e8af41c449a4f985ccffd9603d8a7703e94bdaab8f970a7f979289f9a2", + "fingerprint": "fea075dc2e266661bb0f3e6dbc5c255e32dbb5c182d0fa0b1d387245d5ff85a8", "snapshot": { - "docs/config.json": "47426a418635a1d5950f8f317fd4d1e7eabedf6403c7bb5dea3f1744dc7f5a91" + "docs/config.json": "6c64296bd0acb976a55f4c38073a420275f48fb204770f58f10a2e4c4c067b6e" }, - "head": "a0d13335f6d9976ac25ead467b4658185c741b51", - "outcome": "out-of-scope", - "reason": "Source, test, CI, or generated docs change; the skills that cover it were reviewed in their own items.", - "evidence": ["docs/config.json"] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/devtools.md": { "fingerprint": "232bcf1c213622a4999fe9df77361090e77aa99e113bbb4ed747456499b52d08", @@ -2860,14 +2735,14 @@ ] }, "source:docs/framework/react/reference/functions/useDefaultHotkeysOptions.md": { - "fingerprint": "b7754542fced3cc047c8dbfa20cd75de1a7d193dacf39fe46040cf1c52597d93", + "fingerprint": "5b82d392a45764bcdf73946e812be9a52f0367520b21a37785c676b89aaec999", "snapshot": { - "docs/framework/react/reference/functions/useDefaultHotkeysOptions.md": "54ddf9c28c88067dc16c0b4d60917ef93092c492b272ff79f86d7abf33b63521" + "docs/framework/react/reference/functions/useDefaultHotkeysOptions.md": "660b93e95ae7b55a3e45f68bec7b9721e25e14991d86be4a9d5e027de2502ba3" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Dispatch and sequence fixes, replace removal, and guide updates; no skill guidance changes.", - "evidence": ["Core, adapter and e2e suites; battery 159/159"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] }, "source:docs/framework/react/reference/functions/useHeldKeyCodes.md": { "fingerprint": "7232b60c409c226f315d11507f7e91418ece3881622e2617a66d3fc12332b4d8", @@ -2934,14 +2809,14 @@ "evidence": ["Core, adapter and e2e suites; battery 159/159"] }, "source:docs/framework/react/reference/functions/useHotkeysContext.md": { - "fingerprint": "d4a1dff1787d7d1e33dd94fdb500e8632950250a31eb41cda0dc772f7856fc09", + "fingerprint": "bbe08e654a8df58d04d719054cfa2b4753ebf7a264f0a477085d67caaa9b8638", "snapshot": { - "docs/framework/react/reference/functions/useHotkeysContext.md": "be88373b4ab685d31b57a08ee1166d95f913e53dc9f3258ea41f23e7670529c5" + "docs/framework/react/reference/functions/useHotkeysContext.md": "11795eb77e46489fc2ac1b7ea41e05d3e3eb373799dbcc4d86f1cf9b4212a725" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Dispatch and sequence fixes, replace removal, and guide updates; no skill guidance changes.", - "evidence": ["Core, adapter and e2e suites; battery 159/159"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] }, "source:docs/framework/react/reference/functions/useKeyHold.md": { "fingerprint": "97083cacaa76629e2545736be9d9be4ad5816057b8c7f6d735b5177c130c7946", @@ -3710,40 +3585,34 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/vue/reference/functions/provideHotkeysContext.md": { - "fingerprint": "cc5761019cbeea8b719b21329ab8a26a1e9c89203c25a96e56ded694ffce4348", + "fingerprint": "1b041e4c0e62f6bfd8929c77bc1275a48998447fe7710b0fe7238f9c1126c799", "snapshot": { - "docs/framework/vue/reference/functions/provideHotkeysContext.md": "36089e26e2d2c2e2a47d41f90a1a218864fb41a5edb9749716bbefb4171069bb" + "docs/framework/vue/reference/functions/provideHotkeysContext.md": "522053c1c294dcef54a04d287edd71e6a4774ed3f6003ba5f530b485fe8e31da" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "source:docs/framework/vue/reference/functions/useDefaultHotkeysOptions.md": { - "fingerprint": "b35031cf2781f6c6d60223170b25eb462503baae5961c59c3b7c7c1178ff5436", + "fingerprint": "91d3e4f70c6c11b8e38b8874f4e972adb9fd75a8656eae231e6c068d2bf7c2d7", "snapshot": { - "docs/framework/vue/reference/functions/useDefaultHotkeysOptions.md": "1019888f45dff5d45a82f30acd5f2e67493d782f21919a8c29c1b7346b3ac677" + "docs/framework/vue/reference/functions/useDefaultHotkeysOptions.md": "39a5271486115a48a83556bf13431bd9a5e7002fb14a9d619ebec76237d1bc28" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "source:docs/framework/vue/reference/functions/useHotkeysContext.md": { - "fingerprint": "0a384fe20f508cf447f63c6ac24376bdfc9aa48641abdb58ca374c030a7e0966", + "fingerprint": "fe450dbcf70e72f479225b15d85b62240b320981e424f7f3683758957c975cb3", "snapshot": { - "docs/framework/vue/reference/functions/useHotkeysContext.md": "9d5d88e037651bd19c58dbf653dc27395d4d0d5b9aa7b1cbe31138ce4f4b6e15" + "docs/framework/vue/reference/functions/useHotkeysContext.md": "68737232ae5848c60dfe962da636284410390c92a21dc91571e58d61097692a5" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "source:docs/framework/vue/reference/functions/useKeyHold.md": { "fingerprint": "4a6089885f1080665237999841992d01482b6f3e23817eb464d8422b7de515eb", @@ -3768,16 +3637,14 @@ ] }, "source:docs/framework/vue/reference/interfaces/ProvideHotkeysContextOptions.md": { - "fingerprint": "d23d070220ee3d69378edcf9a419e3074c5858636d5a695981bbc852aed01210", + "fingerprint": "7c4e6c30bfc619781af9e4d6c2137936c4ee482277e4f610bfe6c746f7a988a3", "snapshot": { - "docs/framework/vue/reference/interfaces/ProvideHotkeysContextOptions.md": "e9c5fbd158a19a72ed39a8d6730dd506bf7d236e31372c22c70a6258f0105649" + "docs/framework/vue/reference/interfaces/ProvideHotkeysContextOptions.md": "fa6490369154e274987d4a80c58499becef566def79da8617196e3fb0ae1219c" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "source:packages/vue-hotkeys/src/defaultOptions.ts": { "fingerprint": "b609d1113fcc3a215853bbf6ecb205c8c984965d044d6f24ea05afd207d6326b", @@ -4228,14 +4095,14 @@ ] }, "source:docs/reference/classes/HotkeyRecorder.md": { - "fingerprint": "2770c52bee59dfc6bc915a029c745ab5621840d03264bfb49f8584aeb9bdd5a8", + "fingerprint": "2400c1b31661d7836eaf3a44250dc39f2f93cbcb7718c56a5bdc8b3823885cb3", "snapshot": { - "docs/reference/classes/HotkeyRecorder.md": "f22b722629107afe40f604a8475c1c250069298784e141e06982fa91e80402c4" + "docs/reference/classes/HotkeyRecorder.md": "aab1b03f48127e5cdcf72e591b6ea8ea41166010c489398bf8791310b8b91c72" }, - "head": "286b48df78ba09ed5ea5f5335055e177b1249d30", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Doc comment and guide wording on AltGr and portability; skills state neither.", - "evidence": ["docs/reference/classes/HotkeyRecorder.md"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/hotkeys/tests/hotkey-recorder-ssr.test.ts": { "fingerprint": "394b648ffc52be332ca1ab001ee62311b653f8162c126029f9856e8728ebdbc4", @@ -4287,14 +4154,14 @@ ] }, "source:packages/hotkeys/tests/registration-and-target.test.ts": { - "fingerprint": "3ffbd9aba4bfc8c441b699699ea420bbe2465b49b2ad9a7304e0520993fa83dd", + "fingerprint": "9b8241a16c72639d6bb9f816b859cd676393b912debb1133b144db6e268486c6", "snapshot": { - "packages/hotkeys/tests/registration-and-target.test.ts": "7941ad0f23c2247197be74f4317491d62af70f57d0a092558b61124ec3b6a971" + "packages/hotkeys/tests/registration-and-target.test.ts": "dbd4fc8f55a985eeda2f127fe5884b1830f1f4c8464ff26f0bb99da40d228903" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", - "outcome": "no-change", - "reason": "Dispatch and sequence fixes, replace removal, and guide updates; no skill guidance changes.", - "evidence": ["Core, adapter and e2e suites; battery 159/159"] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/hotkeys/tests/registration-and-target.test.ts"] }, "source:e2e/layouts/layouts.spec.ts": { "fingerprint": "1b3dfa8b77303bfad05f6fe2d54dd760a97fc1433fbeae93b1ca2c3c632be929", @@ -4317,14 +4184,14 @@ "evidence": ["e2e/support/x11.ts"] }, "source:packages/hotkeys/src/_match.ts": { - "fingerprint": "c384861ddd0f4ef61ebecad23d164d9299306cf0e63635f781aaf29220f8ecc3", + "fingerprint": "0995379b09a5bd847d3a736e1cba492f5c653b08dabc9cff7bcfabde880b4dab", "snapshot": { - "packages/hotkeys/src/_match.ts": "d8bf3d644e265a278941fa14a73901f38e00ea4cbb498a86edab4089846fb0b5" + "packages/hotkeys/src/_match.ts": "dc54a8a388f697eb9cf1c4d3fe281786a845cbd992c4a66330be98e494694be9" }, - "head": "05be1291a103f39c2570697d44e8df5e039f4497", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Covered by the app-hotkeys and hotkeys-core skill updates; generated reference, tests, e2e and guide edits need no other skill change.", - "evidence": ["packages/hotkeys/src/_match.ts"] + "reason": "Internal change: the private constants move or the character-key classification behind suspendCharacterKeys. The core skill covers the public behavior.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/hotkeys/tests/match.test.ts": { "fingerprint": "76e81d5fc0599187a51e13ceb09d3b9bf874100529a114900e41722f97684387", @@ -4369,52 +4236,44 @@ "evidence": ["docs/framework/angular/guides/app-hotkeys.md"] }, "source:docs/framework/angular/reference/functions/injectDefaultHotkeysOptions.md": { - "fingerprint": "18c49c75f19e0f9cff31ab5c9e6376a8a5948e55c3933c6bdab826fcf0344d9d", + "fingerprint": "1f9448554ed469e55eea73aeceeda4360bd310b715ae89301b79b382aab3b182", "snapshot": { - "docs/framework/angular/reference/functions/injectDefaultHotkeysOptions.md": "9b6030cb9438e86a35226794e01aee1b44ab99bb30147681e51d72c835c7f444" + "docs/framework/angular/reference/functions/injectDefaultHotkeysOptions.md": "9112ee8e42cd92c042bbdb6aeb2c3de5367f1005c4d343d7f2c29fb90dd6b00b" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:docs/framework/angular/reference/functions/injectHotkeysContext.md": { - "fingerprint": "7d245a7e840f3ef7bc6acd533a04dcb388f0e34736ced7c6464d037094a2600f", + "fingerprint": "dd66637149ddfcaba92914ac1f69a634a56f399396941a481ee8f8b94b15559c", "snapshot": { - "docs/framework/angular/reference/functions/injectHotkeysContext.md": "950ca9fd19b953d0278ad68ea664caafda3e7a90dc3e9c0f48e235e80699f171" + "docs/framework/angular/reference/functions/injectHotkeysContext.md": "ff19dceca487a3610de615f5851d1f6d1659eafdbcc514b1203206d43e55127d" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:docs/framework/angular/reference/functions/provideHotkeys.md": { - "fingerprint": "204d36b3e1dceb755ddabe03f33e8336004e6e4a909986cee642385f6010ed15", + "fingerprint": "1809526453a99209a7fd82f67d9199c1d2c918fb4d7ff725aba1461dd5ebc3f0", "snapshot": { - "docs/framework/angular/reference/functions/provideHotkeys.md": "65c42b92f9e7c9c70e758692fa3b4d34e4629a5284fca2806e73a08a6bf99cf2" + "docs/framework/angular/reference/functions/provideHotkeys.md": "efa7446ae321d7d200fb0bb009684f97d44544c79cf1c306ecf8ba9cfec07c9c" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:docs/framework/angular/reference/interfaces/HotkeysContextValue.md": { - "fingerprint": "613c8b25e850c862631e49b1022c01a41f20124b8380963cd350b9c11bb4fadd", + "fingerprint": "693623b046f605baf99ca731c6683c5a37e9c4f3f4f1be5e4b0ddcaae8b908e4", "snapshot": { - "docs/framework/angular/reference/interfaces/HotkeysContextValue.md": "470f0f49904f7b80b93032f12f5c4c0b75c1b8e67afc2d6296a1dd3bde781f19" + "docs/framework/angular/reference/interfaces/HotkeysContextValue.md": "8be191c6ab885d3b788042132ed9c7567784f994f41cc5dc16041d1919166c30" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:docs/framework/angular/reference/interfaces/HotkeysProviderOptions.md": { "fingerprint": "b5e9f331d75d0a5404a6431feff60e0680fc39623562e4d94c69c3201efa42cb", @@ -4429,16 +4288,14 @@ ] }, "source:docs/framework/angular/reference/interfaces/ProvideHotkeysOptions.md": { - "fingerprint": "99dced2428655502f71ba27979087bc7655eda00f46073fedffd3ec4363f6da6", + "fingerprint": "a3db50809f9deb55604a1f2384ffbcee8630c6ee7046893b4c7a6bb0694ae884", "snapshot": { - "docs/framework/angular/reference/interfaces/ProvideHotkeysOptions.md": "59953c5e86f60d825da5509e3a91242c1c4e6fc3e66d4d82c7d0d8c4ecce472d" + "docs/framework/angular/reference/interfaces/ProvideHotkeysOptions.md": "69c4fc0475b3ec0188e4185b49d10cc3aee4ea60d4c822c8c4daaaeceaa6246c" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:docs/framework/angular/reference/type-aliases/MaybeGetter.md": { "fingerprint": "d5dc5219c62e1f634ae35391dd3f6918fbc512ca9cc5e732b9a16fe865694cb8", @@ -4453,16 +4310,14 @@ ] }, "source:docs/framework/angular/reference/variables/HOTKEYS_INJECTION_TOKEN.md": { - "fingerprint": "6ba23e22268402e08a66f571c8ed5a59c6d9e3ff806b0b7121ab8e346b12d220", + "fingerprint": "4fa569db878b25b519c9786c4ed4766d4d14e843eddcf4fd0383a2b0f4b54520", "snapshot": { - "docs/framework/angular/reference/variables/HOTKEYS_INJECTION_TOKEN.md": "fe8ea4823519f1040b7a2540958ed5d3adb8a2d7758a195cbd250b31d8e10819" + "docs/framework/angular/reference/variables/HOTKEYS_INJECTION_TOKEN.md": "70968f8fdb0edeaa8195ba81f34f9b95182f7d426b2c04059123bb73506475cb" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:docs/framework/octane/guides/app-hotkeys.md": { "fingerprint": "a20bd20258c38092f7e53a3934f18039b87ba755357a14c439ba407ac3dc1801", @@ -4569,16 +4424,14 @@ ] }, "source:docs/framework/preact/reference/functions/useDefaultHotkeysOptions.md": { - "fingerprint": "ac1112fa5b49bb19b3f41b762a0fb0e331a7a3080ac506d5980cdfcfa9615689", + "fingerprint": "f07a67cd74e9b199699774229bea8014be9e77ba8a126bc7046e4af552e58eb1", "snapshot": { - "docs/framework/preact/reference/functions/useDefaultHotkeysOptions.md": "df0953e922699bf910d26e7e1b516048fb86cc5bca54e526161382ac906d34a4" + "docs/framework/preact/reference/functions/useDefaultHotkeysOptions.md": "cce391b96df1e2231ae947ebdca22c12dde9af8ba158b56de60c6366eac9f789" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] }, "source:docs/framework/preact/reference/functions/useHeldKeys.md": { "fingerprint": "27dcf1b7cd5cc21e1024ef4421deae4a8d3ea0b07f52d8eb152a5ba52dd8f2fc", @@ -4591,16 +4444,14 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/preact/reference/functions/useHotkeysContext.md": { - "fingerprint": "a88c0e1da965cb70b5bf21ab5f716567f3decdee10ac3bf1e41cc174815d6767", + "fingerprint": "c13ba261195651f054c2ffe0fa4e238f47a0323bd1079906e792b244ae0c7f2a", "snapshot": { - "docs/framework/preact/reference/functions/useHotkeysContext.md": "190aa35fda133394e78eef8af0e5c0c9a0b9a5d2fca0a4ec7f1f73834bea7493" + "docs/framework/preact/reference/functions/useHotkeysContext.md": "c6684599eeedc4039cc99f8e5bdd82276b7bc7651f8c57e00580f401b88c8460" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] }, "source:docs/framework/preact/reference/functions/useKeyHold.md": { "fingerprint": "9f060824e63af8d3b713ce924080fcab6f1f71dd5714c52ef26475a2d882d321", @@ -4679,23 +4530,23 @@ ] }, "source:docs/framework/solid/reference/functions/useDefaultHotkeysOptions.md": { - "fingerprint": "159e161416176dd1fbdb8afd62a8fbee68fb9c6bc064ea4ec07367032027eeb8", + "fingerprint": "d77396fcc34f66e539aab6b907d32e589f93e43216c63aa6d82bc035f1787e78", "snapshot": { - "docs/framework/solid/reference/functions/useDefaultHotkeysOptions.md": "9d3a5514d7c46aff83ea8766c98aa0f365dcbd0c32508780b45c5cd3207358d5" + "docs/framework/solid/reference/functions/useDefaultHotkeysOptions.md": "8092364becfe1d50c1cb2799078516d1b09c0bf91a17340f60b57f3b29a6e6c4" }, - "head": "62484c0a986018704e1ebe3a7f7c93061fa90942", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Solid 2 port of this file (imports, effects, attributes, versions) or a regenerated reference page. The solid-hotkeys skill covers the guidance change; no other skill guidance depends on it.", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "source:docs/framework/solid/reference/functions/useHotkeysContext.md": { - "fingerprint": "a179cdfd7556cc9e9cc0d77b39620372305388cf3c31dac953966ac9a1215c2b", + "fingerprint": "17f64ed71d3a929863ac384cf335d133cbb55da9f08ad573c6994b965ba38f56", "snapshot": { - "docs/framework/solid/reference/functions/useHotkeysContext.md": "a42fe849949874e1356820031dae19267370062dad6d8051b47e0425eeeab9a9" + "docs/framework/solid/reference/functions/useHotkeysContext.md": "ee0c9d3686e17612d8bf8810332ab6921791bb57e12ba121eb8c31b7b78703ec" }, - "head": "62484c0a986018704e1ebe3a7f7c93061fa90942", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Solid 2 port of this file (imports, effects, attributes, versions) or a regenerated reference page. The solid-hotkeys skill covers the guidance change; no other skill guidance depends on it.", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "source:docs/framework/solid/reference/interfaces/HotkeysProviderOptions.md": { @@ -4745,88 +4596,74 @@ "evidence": ["docs/framework/svelte/guides/app-hotkeys.md"] }, "source:docs/framework/svelte/reference/functions/getDefaultHotkeysOptions.md": { - "fingerprint": "760e7cf001fc09605999babb8b11a61532a4b9b2896b5d99f9586e98cb12a65e", + "fingerprint": "29818e4c0292fdbdad6935fa738f8be959c85b8b928ef8035ff4dd55c2a88960", "snapshot": { - "docs/framework/svelte/reference/functions/getDefaultHotkeysOptions.md": "6b97a955d490ca2b13cbb0b5e82a484d9181398900bddfe8a4dbcc3d89c4920b" + "docs/framework/svelte/reference/functions/getDefaultHotkeysOptions.md": "5990d778249949c52e0f91e2052fc17544f3a9fc10ec6df4a38c4a524cb469e3" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/reference/functions/getHotkeysContext.md": { - "fingerprint": "36e171fd95bdf34846e12bc66c84fd8ffd480c53be159c53982d24ec6094171a", + "fingerprint": "9adc8c6fe4557f8133d0f349215479f56ad1e2c404798ca3b462aa0f8b318408", "snapshot": { - "docs/framework/svelte/reference/functions/getHotkeysContext.md": "b7fb66740b683baafc81cffc10a311b8dfde5dccd2000b2cdb637220ca5975f5" + "docs/framework/svelte/reference/functions/getHotkeysContext.md": "39705e67b7781bc86774f3fcd1f4601f0abda71d94aa4a56a4a3e2460478b7cc" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/reference/functions/setHotkeysContext.md": { - "fingerprint": "a49416b44863336989d2232bdb941d56c820bf586296e23f6ed0caac2d33adfc", + "fingerprint": "bcef4fa01a5231a6cf205d72d8b44d8d707e15f6bb3d53381e2c77988dfda1c6", "snapshot": { - "docs/framework/svelte/reference/functions/setHotkeysContext.md": "02c972fd337152be0f6ff1cce43f634750b5604f4ce11a5e3d9a9e0555d8ffd7" + "docs/framework/svelte/reference/functions/setHotkeysContext.md": "844bae920e1417aab103457978e9bf0fa851b96c91c0e90271afa9454f535ef1" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/reference/interfaces/HotkeysContextOptions.md": { - "fingerprint": "b331108029f1cfd8ac7cce9d4ce317eab5d25376e61852085af0548d46d0f056", + "fingerprint": "f69c3e070ff5be2593dc3cfecd2e5c211e8005bf57ffe84c49468c07cf3b0794", "snapshot": { - "docs/framework/svelte/reference/interfaces/HotkeysContextOptions.md": "a3f09836c764879c1da7e63a3cc96abb07a6233ee827b630ec6a773d000ec97f" + "docs/framework/svelte/reference/interfaces/HotkeysContextOptions.md": "fabf0c90ebcf03b9461806c19dfe616fce489a29a8f2747d10830a7a7be562da" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/reference/interfaces/HotkeysProviderOptions.md": { - "fingerprint": "7e2166d9c5915cbe168a1a7a9c69215491bd041fa67acc28be3332c2caf38aad", + "fingerprint": "07c0d4147976fc3dafaca8714f537d195607f631b711a6266c9c418edc258241", "snapshot": { - "docs/framework/svelte/reference/interfaces/HotkeysProviderOptions.md": "261bd371c2fa0a11343b36af452565d940c51684e868b4e75b2c35ffc0310142" + "docs/framework/svelte/reference/interfaces/HotkeysProviderOptions.md": "8ba119e96c977dc6d2cb1a91c03c244fb532da2f80296a38646100a55195c096" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/reference/interfaces/HotkeysProviderProps.md": { - "fingerprint": "0eaa53b68eb07d87882d251c6bbaf06db5695102fa5c7996501d1d57c94c28ce", + "fingerprint": "0b0ad6bfb8d2e117a2e76ce39d2dd9c8c37cb85a19b7d8992a1d73b6410c3c36", "snapshot": { - "docs/framework/svelte/reference/interfaces/HotkeysProviderProps.md": "71f94c2c035afcc0873cd3fef0387388ea91c264bb829050d3e60c9c9c0b337f" + "docs/framework/svelte/reference/interfaces/HotkeysProviderProps.md": "58f79957ac04a5507501c2f2f4408431b0b8b85300282dbafaca12cc50f01af2" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/reference/variables/DEFAULT_OPTIONS.md": { - "fingerprint": "ef35bae40126b2a497ad4c70bc53d8cbd32059b8b463a742ef19d0dd2b67811d", + "fingerprint": "87129c1c7fecb184bce29962cff4d8073fc95d269815c93c4da4c26200aadc09", "snapshot": { - "docs/framework/svelte/reference/variables/DEFAULT_OPTIONS.md": "c22795f31098f6ec770aff4cbbb999a56aa5a204cf1ec56fcc5fcfe85682da06" + "docs/framework/svelte/reference/variables/DEFAULT_OPTIONS.md": "4536827f4c14abe16aca3bc5720638e4737412a393c2810e79f1ac2e548697b9" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/vue/guides/app-hotkeys.md": { "fingerprint": "02e8b7ded73cde03dd86cad60752a693e9f8fe8aab353530e477d3278e3da9b7", @@ -4849,14 +4686,14 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/reference/adapter/functions/activateHotkeysProviderScope.md": { - "fingerprint": "e2efffe7f2477f8d9ffbdba0b4db612af745dd390028380acf2895a78544d6cb", + "fingerprint": "d9ebe1fdf76cc1d590ba5f3d0eeac77063dbe625c29686c38a784a22bc555d87", "snapshot": { - "docs/reference/adapter/functions/activateHotkeysProviderScope.md": "ce9d3c0ef166c500b48993cd4e1a1fd2f6e06aaeb81a4c75befc73c509c0f0df" + "docs/reference/adapter/functions/activateHotkeysProviderScope.md": "69cd9cdbd6773ad78c9c005d846c83f6943e7cc5482dbb38d82cc9f5fae21c66" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/functions/createAppHotkeysStore.md": { "fingerprint": "fe1670dffd380eacb39d399d97ad237bd886272ce20cfca940486ca2278cb2f2", @@ -4869,14 +4706,14 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/reference/adapter/functions/createHotkeyBindings.md": { - "fingerprint": "a40f095d49ab214374a455c3fa50ccafa118054dbda8a09c60f310aa3e17ab68", + "fingerprint": "03beef853185e265894e3a913d15bd7f0e7defcd56f84473daca1208451ef54a", "snapshot": { - "docs/reference/adapter/functions/createHotkeyBindings.md": "4cebe782b1959b0384ddc8ea91cc3c272dedcf3524f8fdfe22daa5a327bf91a1" + "docs/reference/adapter/functions/createHotkeyBindings.md": "88c74101fef887f53c4d0eb848378b3fa6c4a0d14222bef02936199cd9b7c0f7" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/functions/createStore.md": { "fingerprint": "6b5872833c48587e8d7ab79141fc1c858bcad3d02930483765e71e3409ffccc0", @@ -4889,164 +4726,164 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/reference/adapter/functions/getHotkeysProviderScopeKey.md": { - "fingerprint": "f1254fcb4ddc78033eed6728ad4867dcf38cde1ff4d02e00f1417a87564ef9b8", + "fingerprint": "3934a4c64a45ce3446a6480cb54a09e734b5c908f5be19fb99dd6ce75be590cb", "snapshot": { - "docs/reference/adapter/functions/getHotkeysProviderScopeKey.md": "ecef3e17b6654ccbee5a9bf4e12fbe8b4ddaa4e1f9018cb956ad0534c223202c" + "docs/reference/adapter/functions/getHotkeysProviderScopeKey.md": "b8335b7bfcc26f0fdbabab0f1012f874811e18218e0978db8aa5945a088ef628" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/functions/mergeHotkeysProviderDefaults.md": { - "fingerprint": "9c09c329fc3d2606b2f1a3d6702f259e0a61f04665116eaac35c123d3fba2557", + "fingerprint": "fb3208df3d0747f04603cb58e5ebbc30366a69d86a683980969e0c1905d3bc86", "snapshot": { - "docs/reference/adapter/functions/mergeHotkeysProviderDefaults.md": "8efbfec539b8b5592ea533f6b6f5d10958688dcd643bf9b825418af9532a6111" + "docs/reference/adapter/functions/mergeHotkeysProviderDefaults.md": "1dd4d1a379feac6941b32e201bda057008c791b9a110e7599793cb7612ac7754" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/functions/prepareHotkeyDefinitions.md": { - "fingerprint": "b590831f61c4cc5c002193f7b355cc5fbeec1ac2350f219640d8619700ab7319", + "fingerprint": "6687df29d85ac7c3b1ccf469edd8375dd4d40b0d2fb960dba79c35873eec1a74", "snapshot": { - "docs/reference/adapter/functions/prepareHotkeyDefinitions.md": "3eb18ab2c64d00ac5d212f520e1646474f9cd078bd053ec02776ddf082ca1117" + "docs/reference/adapter/functions/prepareHotkeyDefinitions.md": "268b4ee2b2cfac030c8a443c300e051dec5382fb072c75350244a3f47c0873fc" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/functions/subscribePublishedAppHotkeys.md": { - "fingerprint": "2d0b07c1597cbad73d13c90e18a2e9d53a92242ae349981c3507d5c95412d8b6", + "fingerprint": "9806701f72c684fab80105b8f5bf78608452a9d6515e8cdc761a65cb57bf7aa1", "snapshot": { - "docs/reference/adapter/functions/subscribePublishedAppHotkeys.md": "a830051342c8db9abda43f00b2f16f35fa9f6b467ad119956bb780f425e9e48a" + "docs/reference/adapter/functions/subscribePublishedAppHotkeys.md": "5e16521404bed2630b9530a70f7bfa4d6d1384fad9aee7b84cb13490654f0dc6" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/index.md": { - "fingerprint": "53e3ff7aeb80ef0961cf02b2bffd8974be99fc57403a5d0cb329a83faa24be61", + "fingerprint": "1b868131bcc75bd7a16b001c01543d1050bc0b7a60409b17af2ef9d5520f589c", "snapshot": { - "docs/reference/adapter/index.md": "b7a6ea0be485b556246bae4a02df1c31323ffcd829203f2d649dadf8d057d2b9" + "docs/reference/adapter/index.md": "c51d19c88ca9d9e606517bbfd242ee752ead58292438c3a01c86ae14a4a88f74" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/interfaces/HotkeysProviderScopeProps.md": { - "fingerprint": "30c9769a0d5d39521f972405122db07a14821ae920ea07ee790a8ec2e27490d1", + "fingerprint": "46dba8c7806af351e6f84a5b998a44c306c96c500ffb1eb387a14a80d36367d0", "snapshot": { - "docs/reference/adapter/interfaces/HotkeysProviderScopeProps.md": "5a2ccca270655094a949dd96bb4f9051c416dd03015385fa0c05836f0aba6413" + "docs/reference/adapter/interfaces/HotkeysProviderScopeProps.md": "7e6196be79571040aca18e49f3ccd0a5fe48e393fa2705db93f4e9144283ca08" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/interfaces/PrepareHotkeyDefinitionsOptions.md": { - "fingerprint": "92bc8e09a41d7e867015483235faabfa0d50657b799eb35ebea2bf94e06946a9", + "fingerprint": "71a327cdbb09921a74253654d0bfd35a27d3b47d77b377158a8c947abe237bdb", "snapshot": { - "docs/reference/adapter/interfaces/PrepareHotkeyDefinitionsOptions.md": "5d083f0740f0cedf6ebcb57625dd6b3d347316e182eb3c3fe6c421a2141f0b0e" + "docs/reference/adapter/interfaces/PrepareHotkeyDefinitionsOptions.md": "45c3530a25f49d81881876612ed4ab7f44830cf8004cd6cbefe075fa0921de0b" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/type-aliases/AdapterAppHotkeyOptions.md": { - "fingerprint": "a40698162de7c47df320a33c2e1e285f82e6c1d59b4de3207a1513c175bbbbc8", + "fingerprint": "4c1b5920f88ade80a8305ccecc0596cafc9a3838ae97b1b81f7a497da840e274", "snapshot": { - "docs/reference/adapter/type-aliases/AdapterAppHotkeyOptions.md": "199927c8ab8c0870cfc4c3c7933f1f66573f7098b725c8a0d26a6abb26c436d5" + "docs/reference/adapter/type-aliases/AdapterAppHotkeyOptions.md": "4eeae2469a49211f851dd6b556104d2d70abbe63e1849025365472258c77d997" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/type-aliases/AdapterChordOptions.md": { - "fingerprint": "7eb54220d494b685de808da61cbcc6a7f3957e90d2a22bc281177fe5598bdc15", + "fingerprint": "819bea7a1d795124aba3c7e5645c9b07a26e9046bd22c5175b17ff9bb27beed4", "snapshot": { - "docs/reference/adapter/type-aliases/AdapterChordOptions.md": "59111e010722627c579f03cd38a83f06fd42a1d12f2746ec584cb5023de4696e" + "docs/reference/adapter/type-aliases/AdapterChordOptions.md": "a956d729f7295fda6d8b9ce63edc31a0c0128a86a48faf9c04f256fde88ac961" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/type-aliases/AdapterCommonOptions.md": { - "fingerprint": "88f0d1aa3116b7e02335db4a99a95f85e1438ccf908198efb0611361e7fb9757", + "fingerprint": "e31113778b430e160e48adb9075cf2d4a0bf71da221609c1282fc1c7577c4c5e", "snapshot": { - "docs/reference/adapter/type-aliases/AdapterCommonOptions.md": "41f4e6c6490434e3088a579a5a2bcf4858869af5cfcd4905fc76f33ad25a94a9" + "docs/reference/adapter/type-aliases/AdapterCommonOptions.md": "4f5cc9dfd799ce9be8065cae16cb1d0366d63168ae112e976e50df5d8226b719" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/type-aliases/AdapterHotkeyDefinition.md": { - "fingerprint": "e8534a503e4a7a3a66b31e22da816f1cadfc62dccd3abfccc9525dbf6b89522e", + "fingerprint": "2fd2626f7ed2616132ba73605695cb544937e451e99437438c51f43ba2dd9d10", "snapshot": { - "docs/reference/adapter/type-aliases/AdapterHotkeyDefinition.md": "b953f8c0446768fffc429a29cff4a530967dd5deb8367ea3b680ee77ae37d92f" + "docs/reference/adapter/type-aliases/AdapterHotkeyDefinition.md": "9e3cf064b05d16b7ec7164001c672708849958631a931474c1739fffc602de37" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/type-aliases/AdapterHotkeyOptions.md": { - "fingerprint": "8927b1f1a8b4d32cc1bef7ec6dbc03b291f04497c9cd1a92b721325e7cdbd438", + "fingerprint": "2844f1d4ef705b2e6b1e998212df67c66b609c1bf751d9ef666955a555e27664", "snapshot": { - "docs/reference/adapter/type-aliases/AdapterHotkeyOptions.md": "30cad1fe97ff326a3657213cdde3cc24b24f8c58e6529d54657d5138571acb0f" + "docs/reference/adapter/type-aliases/AdapterHotkeyOptions.md": "be5754db9a42314f1becab7885e0f0bab5e602444d1796100c18fa7f773ee245" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/type-aliases/AdapterOptionsFor.md": { - "fingerprint": "7da7c849e909757e7c030687b97e7218d5dd38d7d886f0f9637db38e6068a717", + "fingerprint": "e4d8db060d5fd39e6c81fb2c08f60f8ff57103cea908b31bbb6c176fdea39c91", "snapshot": { - "docs/reference/adapter/type-aliases/AdapterOptionsFor.md": "e1b3edb5b703e802d45071162e24e6ca473954ac600258ae045c27005d32d3a8" + "docs/reference/adapter/type-aliases/AdapterOptionsFor.md": "bb387b2365167842ad3a3e058c23934c9b2a6646f30426c25e735600f1001693" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/type-aliases/AdapterSequenceOptions.md": { - "fingerprint": "cfa30b6d4523e85f160f83f91ae537e83b6bcada87c5adee0b8fcb56c22bdda0", + "fingerprint": "f8d715cd4252722542eacf7466b00841a76ccd8362eb7d3f9cfa089024d4eae3", "snapshot": { - "docs/reference/adapter/type-aliases/AdapterSequenceOptions.md": "0fb933694dc138dfc0c3bf2c7d02cf9adb28f36f5ab950ffacf2ace718cb1c9b" + "docs/reference/adapter/type-aliases/AdapterSequenceOptions.md": "4a753370c5cfdde31ba41c8e2e56204885ad4e9ada9f13aef5661c87bb8a5840" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/type-aliases/HotkeyBindingsCommonOptions.md": { - "fingerprint": "0a1078ef12fa1b610d20bd65249560566c2380c7ac2af0c7357d517c961e89b8", + "fingerprint": "905f99b1a5fb8fcfd2ce4e22c633a7b882725d0fe85456b295cb7a181175c54d", "snapshot": { - "docs/reference/adapter/type-aliases/HotkeyBindingsCommonOptions.md": "877f736ac0e33ecfd2c8e25269ac432029e83742e8057db0944bb0c6c3042222" + "docs/reference/adapter/type-aliases/HotkeyBindingsCommonOptions.md": "8d99ff651e292c643567585193804cd89ac561e7a80b6cce90cf3e40111a95e2" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/type-aliases/HotkeyDefinition.md": { - "fingerprint": "21291f70174925ea0c0d26b05db8aecb792e9339200b05401830a151d47ed34c", + "fingerprint": "85b0a0a85b437467efb40e724d3073b8f1a5d2d098c1fb544723dc48fcc77697", "snapshot": { - "docs/reference/adapter/type-aliases/HotkeyDefinition.md": "585e04e30d611c36e9b4bf37e526e76d011e5ffc00ff9e7788b389814dec0dd5" + "docs/reference/adapter/type-aliases/HotkeyDefinition.md": "e9c949faf4ed9446cacb0fdc7fbe883c79b645c9b2c051e8f3ff97d75f996e06" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/type-aliases/Store.md": { "fingerprint": "3624856550fe95f6e316a3fb511aed54d086b78ccae519f8cb2b8f19e267c755", @@ -5059,14 +4896,14 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/reference/adapter/type-aliases/WithTarget.md": { - "fingerprint": "3fee13ef8aa21b82324c2915f86dd189bd53923316e01b488d19b05d05c60ae2", + "fingerprint": "597d03d04478329b5fed41269d35b686ce41d335b4ff9589078f80f122f6ecaa", "snapshot": { - "docs/reference/adapter/type-aliases/WithTarget.md": "a753aa17f79ada7a16c7ec57c5807e0e3d0dcb5f3936086366f6b5f37a120879" + "docs/reference/adapter/type-aliases/WithTarget.md": "8c0bdfdcf6bec37ed1757fb1a2f8505f703a94eee21f32a2f16c0906282305df" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/classes/KeyStateTracker.md": { "fingerprint": "044b823ef89d2dbcce7c10c4656befbc41cde7572ebd3145821331ea2d14f4a1", @@ -5099,58 +4936,54 @@ "evidence": ["tests/listen.test.ts and key-state-tracker tests"] }, "source:docs/reference/interfaces/HotkeyChordRecorderOptions.md": { - "fingerprint": "c94348d39aa3ec3658c320c212877b0f7b128c9622c750fba969fea2c9b86d35", + "fingerprint": "58b67699d05176d327b34c83507476486790e02d1b367f1f46399ffd50c8ec73", "snapshot": { - "docs/reference/interfaces/HotkeyChordRecorderOptions.md": "3701a73a5ef06766cb7201f5a219b80483c19d58dead9c1e0ebdde96f75e5255" + "docs/reference/interfaces/HotkeyChordRecorderOptions.md": "a6e37c96beb06fd8d0b418c50acc6393da9b873c983c9cd765cdcced60c24898" }, - "head": "286b48df78ba09ed5ea5f5335055e177b1249d30", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Doc comment and guide wording on AltGr and portability; skills state neither.", - "evidence": ["docs/reference/interfaces/HotkeyChordRecorderOptions.md"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/HotkeyChordRecorderValidationContext.md": { - "fingerprint": "5944c87921863bf2e40b859d7273d2c02f5bee9851793b14fbe37b93a9930d58", + "fingerprint": "1c949e0f783c83ba59de744b3e294420fa42279b13670e03a0b1b74e9217f363", "snapshot": { - "docs/reference/interfaces/HotkeyChordRecorderValidationContext.md": "a205f1b896f5ea814fe120a473042fbd78d80225f4be1e8b5e0c03b41e413ad8" + "docs/reference/interfaces/HotkeyChordRecorderValidationContext.md": "8e4dcc13af619c6eee2059c50f372416eebbd81f73a4505f2f5cc515274cee3d" }, - "head": "286b48df78ba09ed5ea5f5335055e177b1249d30", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Doc comment and guide wording on AltGr and portability; skills state neither.", - "evidence": [ - "docs/reference/interfaces/HotkeyChordRecorderValidationContext.md" - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/HotkeyRecorderState.md": { - "fingerprint": "28809caaa38a3ef08b1022908b454deb7f8448c7f97275ceac640381c0e13616", + "fingerprint": "3944352c13861db866949f67ca7e28378b0eec5de4b3527c4910d0aad2afb067", "snapshot": { - "docs/reference/interfaces/HotkeyRecorderState.md": "35ac66e4a20ca6af5902dd59b239ddde17a7758b4e2db511cfb8a57dc3b181dd" + "docs/reference/interfaces/HotkeyRecorderState.md": "7419d4ce1d94a27f6bae3b8f28199d9695d13bded275da8ffdbf9399465ff3a7" }, - "head": "286b48df78ba09ed5ea5f5335055e177b1249d30", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Doc comment and guide wording on AltGr and portability; skills state neither.", - "evidence": ["docs/reference/interfaces/HotkeyRecorderState.md"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/HotkeySequenceRecorderOptions.md": { - "fingerprint": "67feddf1cdbf22752228a6087a82aee4865404bf890e2c8ed09add306d996ff2", + "fingerprint": "f82c0755f74935787b22cfbb47183966172a244c7534b523ef89f763cac8fd9a", "snapshot": { - "docs/reference/interfaces/HotkeySequenceRecorderOptions.md": "89182810eae4eba757899438703339dc7ea28664867baa947a84297fa62a66a7" + "docs/reference/interfaces/HotkeySequenceRecorderOptions.md": "d3ee542445905dde4efef722e9acabe04342f284711f9aaca061eb8410b360b1" }, - "head": "286b48df78ba09ed5ea5f5335055e177b1249d30", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Doc comment and guide wording on AltGr and portability; skills state neither.", - "evidence": ["docs/reference/interfaces/HotkeySequenceRecorderOptions.md"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/HotkeySequenceRecorderValidationContext.md": { - "fingerprint": "8f033cd5ce78f689613418ae11d7ad1b429818105e8dcd4674c1fdb0de8e31d0", + "fingerprint": "e577ab8c58c0c073803b8cdb161870ae2d991cec8f8e7c46a7e9fafc1327c823", "snapshot": { - "docs/reference/interfaces/HotkeySequenceRecorderValidationContext.md": "5007d735f1755a618ffedb469715acbba15d51ee6f7e1b6df5451b836c0dfcc1" + "docs/reference/interfaces/HotkeySequenceRecorderValidationContext.md": "18259c65e7b18d9ea45d2ebd135d62674a967812b255383b19779eb74113316d" }, - "head": "286b48df78ba09ed5ea5f5335055e177b1249d30", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Doc comment and guide wording on AltGr and portability; skills state neither.", - "evidence": [ - "docs/reference/interfaces/HotkeySequenceRecorderValidationContext.md" - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/KeyStateTrackerState.md": { "fingerprint": "87b90f4eb9f326182eeeeb4f341d5cdffffb955972ecaf103ecf7906400f61ea", @@ -5165,24 +4998,24 @@ ] }, "source:docs/reference/interfaces/RecorderOptions.md": { - "fingerprint": "07d3fa4296cf77998bc36aaa593075c2a064d3c064371af94f1e1b668dd13da2", + "fingerprint": "96200fa9425a772c04ac9196ad0404ca77f02ea4464be5f544390558ca1f5465", "snapshot": { - "docs/reference/interfaces/RecorderOptions.md": "c47394a5e4ed6f5a938f501740343d8230e1392874a65914da04ad776d036fa3" + "docs/reference/interfaces/RecorderOptions.md": "2e18fae6224f2c9120ba0229570088d29902d34f538ac1deecd445f2bc096865" }, - "head": "286b48df78ba09ed5ea5f5335055e177b1249d30", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Doc comment and guide wording on AltGr and portability; skills state neither.", - "evidence": ["docs/reference/interfaces/RecorderOptions.md"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/RecorderRejection.md": { - "fingerprint": "f5d14f1cf99ff7bc7811d348b155635581cd0c416d20f114110d8ce93041ea6b", + "fingerprint": "a92aed819321843ae484bf432085542dd7db76ba55f1021e7e3ed39bed4bbd86", "snapshot": { - "docs/reference/interfaces/RecorderRejection.md": "6e3d5746393f80507c2d8523a3c2f6527076970e6414d6cb5a0aee953058daf7" + "docs/reference/interfaces/RecorderRejection.md": "a805c265d22b77d6acf5ec1567e5c6481676e9a84b39f544e5594073262ca407" }, - "head": "286b48df78ba09ed5ea5f5335055e177b1249d30", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Doc comment and guide wording on AltGr and portability; skills state neither.", - "evidence": ["docs/reference/interfaces/RecorderRejection.md"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/ValidationResult.md": { "fingerprint": "bf50351d2f5a5f1183873562205bcbdb5fb0f0ff818dcb82e0ff12a7dde09943", @@ -5195,46 +5028,44 @@ "evidence": ["docs/reference/interfaces/ValidationResult.md"] }, "source:docs/reference/type-aliases/HotkeyRecorderCommitKeys.md": { - "fingerprint": "900027a6ec4725981292b3fdeefe599e9e19e983b5d55a40e81022987a99441f", + "fingerprint": "55c574f649dacb9c4dfcdf3028496f428ac5edb48fb090d1d888d3b038f169ab", "snapshot": { - "docs/reference/type-aliases/HotkeyRecorderCommitKeys.md": "ddf9e82d7884d5cc3ccc2cff36dc43f5b288311e5cbc89e99a9f5ba547384f76" + "docs/reference/type-aliases/HotkeyRecorderCommitKeys.md": "54652ed491dc20b846845f9466f48afa5c5c0d74bd1453d2813860f471b67500" }, - "head": "286b48df78ba09ed5ea5f5335055e177b1249d30", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Doc comment and guide wording on AltGr and portability; skills state neither.", - "evidence": ["docs/reference/type-aliases/HotkeyRecorderCommitKeys.md"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/type-aliases/HotkeyRecorderOptions.md": { - "fingerprint": "56c17ed6b7f9a9de8af48b22e589b29795221c3affadb4466ab322c0c75dfd46", + "fingerprint": "de413fbd14dabf15093f27c68a71c318e7cbdc8dcb9afdac94b50b9b706453b6", "snapshot": { - "docs/reference/type-aliases/HotkeyRecorderOptions.md": "e9d11636827c99afec79acd2a161e3aa7a28797efcbb2610fe10714c257bd203" + "docs/reference/type-aliases/HotkeyRecorderOptions.md": "634a20ce976ff6442dd3b4acd5da4b08461b0105f8f16ae1275034a6b31ff533" }, - "head": "286b48df78ba09ed5ea5f5335055e177b1249d30", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Doc comment and guide wording on AltGr and portability; skills state neither.", - "evidence": ["docs/reference/type-aliases/HotkeyRecorderOptions.md"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/type-aliases/HotkeyRecorderValidationContext.md": { - "fingerprint": "8a6366c968b05697d1ef129bc778fa66d3e2ab65e6f4a617b78e28b9bf3351f2", + "fingerprint": "50277a157515f6d9a5091030abc038486cbc00aa8154f5aea9edf643fcd70cea", "snapshot": { - "docs/reference/type-aliases/HotkeyRecorderValidationContext.md": "73682596a9ad3055c166fa2ca8af787558eda375c7584f28e15699f8c5bc5b55" + "docs/reference/type-aliases/HotkeyRecorderValidationContext.md": "846e01d93875f9112e2230d7be528199931c25b80f7c89f77c20c80102390861" }, - "head": "286b48df78ba09ed5ea5f5335055e177b1249d30", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Doc comment and guide wording on AltGr and portability; skills state neither.", - "evidence": [ - "docs/reference/type-aliases/HotkeyRecorderValidationContext.md" - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/type-aliases/RecorderKeyMode.md": { - "fingerprint": "09216e5a32b79aa37e117e875ccc981124d8487b030b061850e2d8af3e0fa386", + "fingerprint": "b7fed9779623c38e58e6e1e07fce6e6eeaacd76f692cbdadf82b68094bc9a7cc", "snapshot": { - "docs/reference/type-aliases/RecorderKeyMode.md": "1dd9d84af5d9d4674cef545f3317fc77078c39a9101621e444a8e66d523eb486" + "docs/reference/type-aliases/RecorderKeyMode.md": "8c1ad041753db7f8ad185d6bf057ad7b6acc01ba327c7ca2561dbb0f71a25ebf" }, - "head": "05be1291a103f39c2570697d44e8df5e039f4497", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Covered by the app-hotkeys and hotkeys-core skill updates; generated reference, tests, e2e and guide edits need no other skill change.", - "evidence": ["docs/reference/type-aliases/RecorderKeyMode.md"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/alpine-hotkeys/tsconfig.docs.json": { "fingerprint": "2ae425b102b1ea8fdb67e00ada8c04eb02af8ce1b351a1efa37d6b54c1b580ac", @@ -5361,14 +5192,14 @@ ] }, "source:packages/hotkeys/src/_registration.ts": { - "fingerprint": "d9dc9105f034609474f7ac18c80ef93d7fb27e95678d58e504d83c9267d5d219", + "fingerprint": "9fe0d930846c041dfaab46275bbf3eb5bcea65ed3af6e535e4316948fab71cd2", "snapshot": { - "packages/hotkeys/src/_registration.ts": "962fbc1eb8f1f17cbac4e5ba8343d6dae8fa3a9b866ada9414e42bd001b4de88" + "packages/hotkeys/src/_registration.ts": "15226af6fc12d5d178de6a986d8614924d7e417a2034b0c430594acd9af62664" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Dispatch and sequence fixes, replace removal, and guide updates; no skill guidance changes.", - "evidence": ["Core, adapter and e2e suites; battery 159/159"] + "reason": "Internal change: the private constants move or the character-key classification behind suspendCharacterKeys. The core skill covers the public behavior.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/hotkeys/src/_store.ts": { "fingerprint": "01d160bae20ef0906e8cc1d503ff6ea509c970130a580d2bbb3e54201f5523af", @@ -5383,14 +5214,14 @@ ] }, "source:packages/hotkeys/src/adapter.ts": { - "fingerprint": "f61b0a10a80e52d175dbe5176e1ef7690f67c1705f7d639fc4717a2e95cab18e", + "fingerprint": "1fbe5a4af4201221ede858081a546aa5f9c916751d9a002ab9c70df543903819", "snapshot": { - "packages/hotkeys/src/adapter.ts": "2ae6363b5f756a93e01596dd3a9592c37d2016dad08d94ed957725993f63b534" + "packages/hotkeys/src/adapter.ts": "30978725bedbcc125f040f4ebcd9b59456cf5f165a177b72e040df3885bbeaba" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/hotkeys/src/key-state-tracker.ts": { "fingerprint": "4bb5661d06e5172a9a0723dbeb9347eda7f90977d3f03b837f81ef0419cc0694", @@ -5416,16 +5247,14 @@ ] }, "source:packages/hotkeys/tests/adapter.test.ts": { - "fingerprint": "ff08ebaedb6371a67779cb3192eff5b8d362e9eeb9a073ff7a3069f8a2ea3779", + "fingerprint": "815d02b3f5242a0e8b415d87b8d04ec88e5545b9cede8910fa3661a13025b7fd", "snapshot": { - "packages/hotkeys/tests/adapter.test.ts": "7095454a6953dbec1d9bd973c2f581b0099f06d7652882788d2fe22fc334acb2" + "packages/hotkeys/tests/adapter.test.ts": "3ffde2a608e42a7aecf8046a6b06f8f9b12d1b5b04b480541c5c4e7a9254a924" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/hotkeys/tests/adapter.test.ts"] }, "source:packages/hotkeys/tests/production-logs.test.ts": { "fingerprint": "4607bf044656b6822e7445c504eefa505a9a6ce6368e4daa273194fc5bf7d9c8", @@ -6001,27 +5830,24 @@ "evidence": ["docs/reference/variables/PUNCTUATION_KEYS.md"] }, "source:packages/hotkeys/src/_named-keys.ts": { - "fingerprint": "f04f88244144c7d7bfebcd364bdbd98458f0a0005515316bb9b1067751b39abd", + "fingerprint": "e6018037a6ef7143c0e94c686fb92cfa1111f871c57791c20390a044f975f1ab", "snapshot": { - "packages/hotkeys/src/_named-keys.ts": "995236e798755d69a30e9588e0378db1e0db50cbbf18f228098a75e1a97e54f0" + "packages/hotkeys/src/_named-keys.ts": null }, - "head": "f8a1f08596e7712addb6d514c7771fa61b78ca7e", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Internal matcher and helper modules: the macOS matching rules, helpers moved into _keyboard-event.ts, _keys.ts and _chord.ts, and the unused key Sets removed from constants.ts. The one change to what the skills teach, writing the Shift with Command on macOS, is recorded on the hotkeys-core skill. No skill names these internals or the removed exports.", - "evidence": [ - "packages/hotkeys/src/_named-keys.ts", - "packages/hotkeys/skills/hotkeys-core/SKILL.md" - ] + "reason": "Internal change: the private constants move or the character-key classification behind suspendCharacterKeys. The core skill covers the public behavior.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/hotkeys/src/constants.ts": { - "fingerprint": "1deaeddb6e88f50311f416c2972a9cde882eee741d79762d9be770616e54871d", + "fingerprint": "cd01f9a24ea5fb3cf2ef3cd301f487f32214c77dbc53ed7e386030a0c311df40", "snapshot": { - "packages/hotkeys/src/constants.ts": "278fe7a9d89fdeb1fb0f7ce40980eb14ee998257cae987bddbdd13c44dafe2af" + "packages/hotkeys/src/constants.ts": "e3a7c92cd01be18b0f66a4e24bc5b6ecb148b86e52e9ecc53a45134d20898bff" }, - "head": "64035d6dff014cf516a25c11430bb8d6bdfdf471", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Bug fix or regression test with no change to documented API or skill guidance.", - "evidence": ["packages/hotkeys/src/constants.ts"] + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/hotkeys/tests/key-tables.test.ts": { "fingerprint": "f962e6c6d44da554fbc725ec4d73ab29ce3a13fbe4a2beda639b1662e2c5b562", @@ -6034,16 +5860,14 @@ "evidence": ["packages/hotkeys/tests/key-tables.test.ts"] }, "source:docs/framework/alpine/guides/formatting-display.md": { - "fingerprint": "55e8e92644aa832a65dab45efb1e309587a114bd14507d25e7983f0f3888eeee", + "fingerprint": "259d5963a55b251e6a4508c1dd2a4920624dbd4d2a9ebce0b26c661d6fe4e86c", "snapshot": { - "docs/framework/alpine/guides/formatting-display.md": "27d6cabdf062916d451a38c0f8d66d5e2c75d1aad83e7ebc63bc4f35869a4934" + "docs/framework/alpine/guides/formatting-display.md": "20d4b3ba6ff23843f610a3d0c161ee78c22a5bdad82042afb0521aa22e043f8e" }, - "head": "7da3dfdc33d22180f6653527be96b779d8ded34c", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Addressed PR review findings in core and framework guides; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/alpine/guides/formatting-display.md at 7da3dfdc33d22180f6653527be96b779d8ded34c" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/guides/held-key-state-helpers.md": { "fingerprint": "a9bda175db06a57adac731b260d3265306d5b21fa0ff856e0c79f35653d81458", @@ -6058,16 +5882,14 @@ ] }, "source:docs/framework/angular/guides/formatting-display.md": { - "fingerprint": "875975b6017a7e1b6ce5fe94b11a9a91cb4b90c92a134cc9a0f3873764b873cd", + "fingerprint": "a938e930e5dce63538660940c3253c935163017a7817d6019eed7b459530247a", "snapshot": { - "docs/framework/angular/guides/formatting-display.md": "11f19ecc1f63639d09a6bb2955f2f6d5db47a0248271c8b2de09e3aea6106a70" + "docs/framework/angular/guides/formatting-display.md": "c046f1fa997e8209c5c3c00ef8d46eec72bd72963240cf457b76fa2e451a9b07" }, - "head": "b83a6d29f6e671c04ec1849209efa3eaa6abd2e6", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Docs-only wording clarification in formatting-display guides; no library API or skill changes.", - "evidence": [ - "Changed: docs/framework/angular/guides/formatting-display.md at b83a6d29f6e671c04ec1849209efa3eaa6abd2e6" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:docs/framework/angular/guides/held-key-state-helpers.md": { "fingerprint": "40d65ae645a404141b7585667e4da687ee2bb04ea683dd0dd15a2c74779ea00a", @@ -6082,16 +5904,14 @@ ] }, "source:docs/framework/ember/guides/formatting-display.md": { - "fingerprint": "fb2bda342c517cfa8291cff781cc9b0cffcef6b888383ba2b5a1c940b6bdedbd", + "fingerprint": "0cc835c9316f898994b541acb72f00522793a7650843613c9335d4b23d198b07", "snapshot": { - "docs/framework/ember/guides/formatting-display.md": "01a821e2e47042b1438fcdc27497d80139dcfcf103dc3ecf7d073d0fd01ad791" + "docs/framework/ember/guides/formatting-display.md": "91a79e1c3ac555145f81a267f8cad3139416155c300f687919aa98ee6b9ebb0c" }, - "head": "7da3dfdc33d22180f6653527be96b779d8ded34c", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Addressed PR review findings in core and framework guides; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/ember/guides/formatting-display.md at 7da3dfdc33d22180f6653527be96b779d8ded34c" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] }, "source:docs/framework/ember/guides/held-key-state-helpers.md": { "fingerprint": "f9d44ca56f6467b30bdb727225d6953af1f760f041ca635044147f33c98879e5", @@ -6106,28 +5926,24 @@ ] }, "source:docs/framework/lit/guides/formatting-display.md": { - "fingerprint": "95789be0e3562c1089d01558ba9b583064fecffb98fc7c1af723dc64e5d5f34f", + "fingerprint": "dfa524e7a594ac827bc93b88a168e738ab9072c784c44a3c9c0b3a0e0d819eb3", "snapshot": { - "docs/framework/lit/guides/formatting-display.md": "3ba695516f8998a62ac7ffe4e56a028ae48c95fa0ff4be9b0d0a1e147d169dc5" + "docs/framework/lit/guides/formatting-display.md": "4515dbcef78b7d65798c088df38cb4c49451779c66e3840a4f067c0427662d5f" }, - "head": "7da3dfdc33d22180f6653527be96b779d8ded34c", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Addressed PR review findings in core and framework guides; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/lit/guides/formatting-display.md at 7da3dfdc33d22180f6653527be96b779d8ded34c" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "source:docs/framework/octane/guides/formatting-display.md": { - "fingerprint": "d35d0e27c382248f6e8b0fa3b9c401e6b1826800b7a06d57e728f5776e16887b", + "fingerprint": "02c2a7565083a90bee70ac37e3b9d3ced73457d286837f03b8f73a419b6a2cd5", "snapshot": { - "docs/framework/octane/guides/formatting-display.md": "d0c204be2346899408df4eefe814d85c9a180f974b5146c4d600d8fdda6e676d" + "docs/framework/octane/guides/formatting-display.md": "69e5d8bd79f07d86b992b244aa88d0a1b77c5c3f9e01f5bbd69723a6af9c25cc" }, - "head": "b83a6d29f6e671c04ec1849209efa3eaa6abd2e6", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Docs-only wording clarification in formatting-display guides; no library API or skill changes.", - "evidence": [ - "Changed: docs/framework/octane/guides/formatting-display.md at b83a6d29f6e671c04ec1849209efa3eaa6abd2e6" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] }, "source:docs/framework/octane/guides/held-key-state-helpers.md": { "fingerprint": "e4feed5484b1c756066f859f2980e854ef0f1cacfd92190232997e087458bc6f", @@ -6142,16 +5958,14 @@ ] }, "source:docs/framework/preact/guides/formatting-display.md": { - "fingerprint": "dfcbbea4c56ceb5ab38c53e80a572a812ef8bccdfc5cd21fee744800a5cc0cec", + "fingerprint": "fc9520e07628c8de96be2dfc8d56bf7e43e127eb781e97c6f08e308e06bd6f26", "snapshot": { - "docs/framework/preact/guides/formatting-display.md": "0a127720af9085120186a4708d68921df001368305ff04be00a32b0aeef7283e" + "docs/framework/preact/guides/formatting-display.md": "07bfebd483a5e3dd4ea8cc42382475c7644ab5135a8a94a04da80d31089d035d" }, - "head": "b83a6d29f6e671c04ec1849209efa3eaa6abd2e6", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Docs-only wording clarification in formatting-display guides; no library API or skill changes.", - "evidence": [ - "Changed: docs/framework/preact/guides/formatting-display.md at b83a6d29f6e671c04ec1849209efa3eaa6abd2e6" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] }, "source:docs/framework/preact/guides/held-key-state-helpers.md": { "fingerprint": "38704c5184e8309ce4a8fd969d4ccfa1743742e423d148ae186dfa65b683ae32", @@ -6166,16 +5980,14 @@ ] }, "source:docs/framework/react/guides/formatting-display.md": { - "fingerprint": "ac43d250e7c35c5454ec8b3ebbe1c465d7f8b434b846e87994828aa8f51b53c5", + "fingerprint": "82f2ce5bced8b3498a27e68c5ef22f9a72d6da468e0a263076dec5a342692f50", "snapshot": { - "docs/framework/react/guides/formatting-display.md": "38a3798cbf78d10a1cc54e4dd7fe692cf7e9fc17f9feb9b2ab725a769d6a97bd" + "docs/framework/react/guides/formatting-display.md": "afc9a07509c0f0867c8cbd7ab16b734f17ed9014b0ef341f6325e842f33c4487" }, - "head": "b83a6d29f6e671c04ec1849209efa3eaa6abd2e6", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Docs-only wording clarification in formatting-display guides; no library API or skill changes.", - "evidence": [ - "Changed: docs/framework/react/guides/formatting-display.md at b83a6d29f6e671c04ec1849209efa3eaa6abd2e6" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] }, "source:docs/framework/react/guides/held-key-state-helpers.md": { "fingerprint": "a10fe202d6f4a145c850b417e08fab3a78a14100ba23aea9b7e73e4fa3e6e0cd", @@ -6190,16 +6002,14 @@ ] }, "source:docs/framework/solid/guides/formatting-display.md": { - "fingerprint": "18b81aa95458e5079bea0f089c1046fe3754e123b7abaf18f080aa0d6e316881", + "fingerprint": "8d941b27edab5d41ae093b949af5c726b6711662bd2961f54774847b56914131", "snapshot": { - "docs/framework/solid/guides/formatting-display.md": "8a275291f46b03b34af3a66697a4572c3e77472d174b22722bc9710f5a965b85" + "docs/framework/solid/guides/formatting-display.md": "70d9d9e025e3400536a1fbbc609eea4ea9d12e3913f882adfb3d4ad2e9f0c194" }, - "head": "b83a6d29f6e671c04ec1849209efa3eaa6abd2e6", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Docs-only wording clarification in formatting-display guides; no library API or skill changes.", - "evidence": [ - "Changed: docs/framework/solid/guides/formatting-display.md at b83a6d29f6e671c04ec1849209efa3eaa6abd2e6" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "source:docs/framework/solid/guides/held-key-state-helpers.md": { "fingerprint": "3ae96802f81cf9fba380168e49033d3f3bd642e35501309319143dcbe29bb602", @@ -6214,16 +6024,14 @@ ] }, "source:docs/framework/svelte/guides/formatting-display.md": { - "fingerprint": "6cb50e62b4a0521c4b0c1260a01b33ce354f566253be41180180ae6a1839d5cc", + "fingerprint": "a631469ad1a036ea8345a31405a9f989ac9ed81cbd6b59039b604a36d16a5233", "snapshot": { - "docs/framework/svelte/guides/formatting-display.md": "3c4d1e6167fd345af40cc1cb5407ec4e5a825f147a9e424f388de4f0e1d8de3b" + "docs/framework/svelte/guides/formatting-display.md": "9ba2fecca5ac57daa1c4c30d97c4ca40101db7153e18382458c27f3741292112" }, - "head": "b83a6d29f6e671c04ec1849209efa3eaa6abd2e6", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Docs-only wording clarification in formatting-display guides; no library API or skill changes.", - "evidence": [ - "Changed: docs/framework/svelte/guides/formatting-display.md at b83a6d29f6e671c04ec1849209efa3eaa6abd2e6" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/guides/held-key-state-helpers.md": { "fingerprint": "c7257bc46260fb06d32c215492035ff26ba012455f5d542c5aca09d5acd6c2f2", @@ -6238,16 +6046,14 @@ ] }, "source:docs/framework/vue/guides/formatting-display.md": { - "fingerprint": "afb6fdacd22c43907ec9d4bed138d21659236e6e5ea91d3031087ea1c376c55c", + "fingerprint": "34f47e2cffa11b50baf2a286b16f43186ab58c65d011f6eb811c5de5b79365d3", "snapshot": { - "docs/framework/vue/guides/formatting-display.md": "a6174b39351ea20dd9a29cc1acf3fdacf3106926ce0fbd4f1cb9fb0cecb4a798" + "docs/framework/vue/guides/formatting-display.md": "ea2e68904ddc043ab0f6f22203bb4aa38264629dc32bf194857d8b2e9bafef29" }, - "head": "b83a6d29f6e671c04ec1849209efa3eaa6abd2e6", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Docs-only wording clarification in formatting-display guides; no library API or skill changes.", - "evidence": [ - "Changed: docs/framework/vue/guides/formatting-display.md at b83a6d29f6e671c04ec1849209efa3eaa6abd2e6" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "source:docs/framework/vue/guides/held-key-state-helpers.md": { "fingerprint": "b73708d34bdb773b9b94b97bc7830b7097ef1ef2874584e0c2511ec61387a997", @@ -6262,16 +6068,14 @@ ] }, "source:docs/reference/functions/formatForDisplay.md": { - "fingerprint": "84e5bee8a8b25dc78f99e13dff077eadbe8117bed95485dad941f7e762927c1f", + "fingerprint": "c1ce5fac8aabf9b11e0324b21397327091e8bb955bb5b0909b0534a9772ead2f", "snapshot": { - "docs/reference/functions/formatForDisplay.md": "9881f3caf41d63df9cb89debe0e77c16b81b68099b0ef0c675aaf7c8a33c2397" + "docs/reference/functions/formatForDisplay.md": "118756518ac1f8c0d6226f14f2eab4073b50addfd5cd1a13937f7789c943ee30" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/functions/formatKeyForDisplay.md": { "fingerprint": "22f378a7170ecee1ae241e883a41bd6dc41fde438827d1d40be8a4d140488a45", @@ -6286,38 +6090,34 @@ ] }, "source:docs/reference/interfaces/FormatDisplayOptions.md": { - "fingerprint": "ae94d586b569889e65a125c72cbc484fc70ec8841f15bd8bea743871039cdb5b", + "fingerprint": "77d78ae87ed8e8a182d498740aad223fc274c2bb96436be9357b11556503a9ee", "snapshot": { - "docs/reference/interfaces/FormatDisplayOptions.md": "78cd97b02433f91d1643713190395eae5f9fb101c8cfdd006f5b00f06807c6a8" + "docs/reference/interfaces/FormatDisplayOptions.md": "f37927f9f0fcc1b6f85e5bd6f917ec27cc5a60936b18eed4f06529f62ac7f59a" }, - "head": "00bc7643c72d5de35b8f214f9be9cb20e5de421a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Crash and silent-failure fixes covered by tests; no skill guidance changes.", - "evidence": ["Core, adapter and e2e suites pass"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/type-aliases/DisplayHotkey.md": { - "fingerprint": "ece4a28d59986c3086d406b8e6cd7616da038632b8290b427f9b19c5d82c352b", + "fingerprint": "0cba586d38810fb777ed7a09ae6eff5a1fa5b7fc6834e2fa202c8566b7f4bfd6", "snapshot": { - "docs/reference/type-aliases/DisplayHotkey.md": "e7e7519fe1bd1ff0dd58915e55ec7a61d4279e8c26eed584aed607e1a1bc8f2a" + "docs/reference/type-aliases/DisplayHotkey.md": "135eff76351c91175a482d469abc22b259f839e5dd42dee9e947c31365c0df47" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/type-aliases/DisplayHotkeyChord.md": { - "fingerprint": "c61298a097d3599ca31fce7dcbda25b117eb27ae31aee807fa9bf125f7acc866", + "fingerprint": "f1e1a5612646d4bd22a02c4c9cb46cd11934fbe5c898ed4dea34d9bf742f2029", "snapshot": { - "docs/reference/type-aliases/DisplayHotkeyChord.md": "e0d59cadc28f5ac530d81ac13ab5fba8a9caa90ae99d61be00545e78c16ccc4d" + "docs/reference/type-aliases/DisplayHotkeyChord.md": "be19dafe2a67024dbc9090cd7ce61237729849f5c5b34379701594c26c81336d" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:examples/alpine/createHeldKeys/index.html": { "fingerprint": "4a65deb60dfbc956d3eb7e6b565966dc57429a110551577e775d06f7160ead3b", @@ -6543,24 +6343,24 @@ ] }, "source:packages/hotkeys/src/_keyboard-event.ts": { - "fingerprint": "47f5d6956afb80209f1af7f52422718cff5570e9788d8a6ac0c6789a09c2dd96", + "fingerprint": "555b55885ef105724a8ff2565d527fef75abcc0dac52d91f26d9b85c53841e89", "snapshot": { - "packages/hotkeys/src/_keyboard-event.ts": "9cee8e89bfecd8ac174e8bd0ccebfcc60dcb8cb77dd4e9a341d89450baef0dfc" + "packages/hotkeys/src/_keyboard-event.ts": "3388457a173eba36d419d8e703d5daa5360610f8d9d3d766a9a918211b629b11" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Internal change: the private constants move or the character-key classification behind suspendCharacterKeys. The core skill covers the public behavior.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/hotkeys/src/format.ts": { - "fingerprint": "a1b5e5de70aa8d427c9b07d130fa903fdd356695ba76bc1065fa4c410efe1e5c", + "fingerprint": "22853875a48ceb97c1afe49f8b6a3bd97bcaed4dd18db160c5143c46257bdc0d", "snapshot": { - "packages/hotkeys/src/format.ts": "fb19fe1a57ae4f33ee798071530528ed94c12cebe18fe49e7eb6d1195841969d" + "packages/hotkeys/src/format.ts": "52e23fe7617bf7d36f5cc36461f400940ca428912c988e4bd6566aeb28a309b7" }, - "head": "00bc7643c72d5de35b8f214f9be9cb20e5de421a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Crash and silent-failure fixes covered by tests; no skill guidance changes.", - "evidence": ["Core, adapter and e2e suites pass"] + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/hotkeys/tests/format.test.ts": { "fingerprint": "8baf2eeb2a45aee3187a0e72cc1113af6c5aefb61102d419849ec71cdd4e3382", @@ -6573,13 +6373,13 @@ "evidence": ["Core, adapter and e2e suites pass"] }, "source:packages/hotkeys/tests/key-coverage.test.ts": { - "fingerprint": "a2a7f6b2b4befc43241369c4bba46a4fa58dddc9e38d36453b37f903791ef695", + "fingerprint": "d7d20f11eab2618f750ce752f7a1cdce5e9d655d0802111d5563abf8566f1079", "snapshot": { - "packages/hotkeys/tests/key-coverage.test.ts": "29a5e925768bde8ef93c3b41cd5f0546bc2f47097270b1899385c00945590031" + "packages/hotkeys/tests/key-coverage.test.ts": "0c28ab8d800fd4b4c47a82b4391c48a7d73cb7713626e8ad186c65d22bd916c1" }, - "head": "f8a1f08596e7712addb6d514c7771fa61b78ca7e", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "out-of-scope", - "reason": "Test code for the macOS Option and Cmd+Shift matching rules, AltGr in sequences, and the removed key Sets; it carries no guidance for library users.", + "reason": "Test change; it describes no library behavior the guidance covers.", "evidence": ["packages/hotkeys/tests/key-coverage.test.ts"] }, "source:packages/hotkeys/tests/parse.test.ts": { @@ -6593,13 +6393,13 @@ "evidence": ["packages/hotkeys/tests/parse.test.ts"] }, "source:packages/hotkeys/tests/typed-behavior.test.ts": { - "fingerprint": "8f6c63bdbf1e092640f0d7266ad8137a3fe5bcba33d26656cc4d95b7e923b8e0", + "fingerprint": "8f869b20aa1309bda7f64f292ca0c358d273212e42cd769f0281b9d1791a32b2", "snapshot": { - "packages/hotkeys/tests/typed-behavior.test.ts": "4e46444245348175599088d8c0524b8051f68ea55aa819670ec651f018082494" + "packages/hotkeys/tests/typed-behavior.test.ts": "c34ee7173f260d4ffa0ed1c2d8ed30e463ab67efb617f284acceba3b2b5ee89f" }, - "head": "5bcd4898b0e990c8d96442fd585623ceed6e9009", - "outcome": "no-change", - "reason": "Guide wording and an AltGr recorder fix; no other skill states these details.", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", "evidence": ["packages/hotkeys/tests/typed-behavior.test.ts"] }, "source:packages/hotkeys/tests/unified-hotkeys.test.ts": { @@ -6912,74 +6712,74 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/vue/reference/variables/HotkeysProvider.md": { - "fingerprint": "0d69137a7cf208c5b17cef4c6b7d741d8b361489ae7ac8235cd37d8ad37bde14", + "fingerprint": "48c59901f71bede18a8a6d4d8a8fc229590d90fb162d226907582d7d0f2d2c50", "snapshot": { - "docs/framework/vue/reference/variables/HotkeysProvider.md": "f6c2ec412da42e50dd5dd7a3f12f5008f0bf2f75755c570601ee5e5ffb95ef4e" + "docs/framework/vue/reference/variables/HotkeysProvider.md": "9f03df8de7e1f6ea0bda3516a2370cd6e99a86ff2324dcd3bca161f4e12b3f0e" }, - "head": "cb07b6e30afe73eb13ea4f2ad08eaaeed387e0d7", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Regenerated TypeDoc page: Defined-in links follow source line shifts, and the Vue pages show the new provider type, read-only return types and overload order.", - "evidence": ["pnpm generate-docs"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "source:docs/reference/adapter/functions/definedOptions.md": { - "fingerprint": "43a8abfc4e579b84c8e2d2c23a051171c756a7ab267250dd5e850bc62d074655", + "fingerprint": "253d202445717b5a9620edb9de2d48c9d47bf79f91c95f92f7cdbfc4f9ef7662", "snapshot": { - "docs/reference/adapter/functions/definedOptions.md": "d251d88194b8973151328226470717e163b8614c412e54f380b4c77cc5740a61" + "docs/reference/adapter/functions/definedOptions.md": "db2fa613d68c320d18a2602c78a58cd21d2fecff3610e5011d870be2235ac82b" }, - "head": "f8a1f08596e7712addb6d514c7771fa61b78ca7e", - "outcome": "out-of-scope", - "reason": "Generated TypeDoc reference page. Source line numbers moved, the JSDoc of matchesKeyboardEvent, normalizeHotkey and isModifierKey was corrected, and the pages for the removed key Sets and the KeyboardEventMatch type are gone.", - "evidence": ["docs/reference/adapter/functions/definedOptions.md"] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/functions/withDefaults.md": { - "fingerprint": "9c2704b532fcdbc7799425eb20fa52857ab2cbf6bcf9c61a8b669f89e775bafd", + "fingerprint": "6f48b5bad11a0542cf378cf46e3f5e8bdeba65959990fe8b7938ccc302225e8c", "snapshot": { - "docs/reference/adapter/functions/withDefaults.md": "579c016891395324d0bc7e286b509cced8462dcd5f7ae60f70b9fa2c32de9431" + "docs/reference/adapter/functions/withDefaults.md": "0f673fecc58fb03943e1972839a8c0b12f413267debc73fac53dc04c41be45f6" }, - "head": "f8a1f08596e7712addb6d514c7771fa61b78ca7e", - "outcome": "out-of-scope", - "reason": "Generated TypeDoc reference page. Source line numbers moved, the JSDoc of matchesKeyboardEvent, normalizeHotkey and isModifierKey was corrected, and the pages for the removed key Sets and the KeyboardEventMatch type are gone.", - "evidence": ["docs/reference/adapter/functions/withDefaults.md"] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/functions/areHotkeysEqual.md": { - "fingerprint": "b5cf0644243cf5baa7d446f5a38917b0eb9de1ac12cba67d81908e0629f8da69", + "fingerprint": "0d7c2d4129c5d3f03bdaa9db91a9a0a752e2582c6a86d419163325b3caf4964f", "snapshot": { - "docs/reference/functions/areHotkeysEqual.md": "c26275146ef5b4578f771b2ed2a7207bde1daeb80f64952db937f85393ceda61" + "docs/reference/functions/areHotkeysEqual.md": "43df9ee7a372fab61e02aad35d5cecf2653fd8dd228f784d0b201270eacb12c9" }, - "head": "26983f5ef5c3fb0c158c02f5442937f8669c412c", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Matching fixes covered by unit, e2e and real-layout tests; no skill guidance changes.", - "evidence": ["Docker real-layout suite 238/238, core 1,954 tests"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/functions/createHotkeyChordHandler.md": { - "fingerprint": "9c7b88e373ae5b88afdef616aafd8d57633ce9c05691b56bc8a1c6eff6ab509c", + "fingerprint": "e8eeee356eb8bc18dba199f6d00bd487dcd6b27ef0fc74ca2261f47ec334e727", "snapshot": { - "docs/reference/functions/createHotkeyChordHandler.md": "b1286776c37b83ef6159c8a664c8ab792fd5116ed02b05c628435c68be9a4b09" + "docs/reference/functions/createHotkeyChordHandler.md": "199e5d420af60e57f5bdba721a5286801534c4ac6d4c494c7dc25ed09db95e12" }, - "head": "26983f5ef5c3fb0c158c02f5442937f8669c412c", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Matching fixes covered by unit, e2e and real-layout tests; no skill guidance changes.", - "evidence": ["Docker real-layout suite 238/238, core 1,954 tests"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/functions/createMultiHotkeyChordHandler.md": { - "fingerprint": "5a588203e74d27734febf38a22758f6cb353da076e3ce28f4c440cf23fc162a3", + "fingerprint": "7124351f0b702ea4dc49bb21a3bf3025968d76f9f2269266c5394cc35d198edc", "snapshot": { - "docs/reference/functions/createMultiHotkeyChordHandler.md": "7a1d3c481ce09c5deddeaad7048d659050ffa3f412963dfbafec41136aaccdf9" + "docs/reference/functions/createMultiHotkeyChordHandler.md": "9dac2a0af3971978a8b6fbbbbd81f1016f8b558fae881ea3e523b886a1c0087c" }, - "head": "26983f5ef5c3fb0c158c02f5442937f8669c412c", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Matching fixes covered by unit, e2e and real-layout tests; no skill guidance changes.", - "evidence": ["Docker real-layout suite 238/238, core 1,954 tests"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/functions/createSequenceMatcher.md": { - "fingerprint": "96bbf148c4d7179059903ef9acf27cf5712c87d8bc7cd0a17cb0916e9d02d916", + "fingerprint": "0e5973e727a40bf06cfdd5268bd7843f0143279ffa047887cc88e5847ab22c3b", "snapshot": { - "docs/reference/functions/createSequenceMatcher.md": "a484bfffee2fcaa814b1a4a4ecf7c1fca02473033ac67aa0b6ee7b37f95974d1" + "docs/reference/functions/createSequenceMatcher.md": "b37bb5a42c372b8a955b5c3e99c89e9203e5860e7d4f3faadc77388dae2de116" }, - "head": "26983f5ef5c3fb0c158c02f5442937f8669c412c", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Matching fixes covered by unit, e2e and real-layout tests; no skill guidance changes.", - "evidence": ["Docker real-layout suite 238/238, core 1,954 tests"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/functions/matchesHeldModifiers.md": { "fingerprint": "a70c6c565dd2cff22ec4cf8a99fe3df975e838587412de2f06c02bcf77d2fea9", @@ -6994,24 +6794,24 @@ ] }, "source:docs/reference/functions/matchesKeyboardEvent.md": { - "fingerprint": "9ca8952eb44524c3eb3298fd9468f1a12d2b2a15707c6bfef280287a73d7284e", + "fingerprint": "b5fd8d59fe05dbbaef652270e2e66f36a918a55fdf27258ffff28da333e6992c", "snapshot": { - "docs/reference/functions/matchesKeyboardEvent.md": "c9eab443061013b1e2d8c5600d24ee5ac389040840645615a231c282dad7473e" + "docs/reference/functions/matchesKeyboardEvent.md": "c5e17611e16608a3f5aa62ea2dc1209a9e6e749c2ad84105eb5c38a530685d8b" }, - "head": "26983f5ef5c3fb0c158c02f5442937f8669c412c", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Matching fixes covered by unit, e2e and real-layout tests; no skill guidance changes.", - "evidence": ["Docker real-layout suite 238/238, core 1,954 tests"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/CreateHotkeyChordHandlerOptions.md": { - "fingerprint": "50a6bf94ac701e13b7ede7408ac5015a2d4fee06483d15138429ef429c593892", + "fingerprint": "260f57b259923669c4e4ea196dcd811f174fb2af603958127f1485e27b0ba4e6", "snapshot": { - "docs/reference/interfaces/CreateHotkeyChordHandlerOptions.md": "59eaf105ab4767dd06e65e1f50864f93bec34898688eeb96b3e2d0397693e55f" + "docs/reference/interfaces/CreateHotkeyChordHandlerOptions.md": "b7a84be9618a1952f02bd4d7bcf7e69419bda2c5584fc81192186da614f50b02" }, - "head": "26983f5ef5c3fb0c158c02f5442937f8669c412c", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Matching fixes covered by unit, e2e and real-layout tests; no skill guidance changes.", - "evidence": ["Docker real-layout suite 238/238, core 1,954 tests"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/KeyboardEventMatch.md": { "fingerprint": "4a8764a1b65b56b9d147493ec86d100f492b1981ffc21ad7073179cc761fef8e", @@ -7024,24 +6824,24 @@ "evidence": ["docs/reference/interfaces/KeyboardEventMatch.md"] }, "source:docs/reference/type-aliases/MultiHotkeyChordHandler.md": { - "fingerprint": "1a79044c994594d9ac4397816100c6635bea4fbac9ee6239d1c2913312059cd0", + "fingerprint": "1b6271f3c8b5c202291beda1d3a61a42ef537149a22f7a6a2f5033033f943e52", "snapshot": { - "docs/reference/type-aliases/MultiHotkeyChordHandler.md": "ba74a56fa712bd88464ee04d852dbc583c94c64d327bd47ca41134ac57f48868" + "docs/reference/type-aliases/MultiHotkeyChordHandler.md": "f7d311e6492967ce49e615e5b7893a71d5b881d18688d5522503c48dadd59642" }, - "head": "26983f5ef5c3fb0c158c02f5442937f8669c412c", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Matching fixes covered by unit, e2e and real-layout tests; no skill guidance changes.", - "evidence": ["Docker real-layout suite 238/238, core 1,954 tests"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/variables/DEFAULT_SEQUENCE_TIMEOUT.md": { - "fingerprint": "912801290695ebfbc82095dcd0bad2b731181cb22280bbb0509a8c76fae7f126", + "fingerprint": "1f81e78de54f4f270bfec13da5d7152c01d5b697e00a723193634b01997eee67", "snapshot": { - "docs/reference/variables/DEFAULT_SEQUENCE_TIMEOUT.md": "f9c607018b005e15c560eeab6cb8153ea65ef24757dfed88a5db7978ab58081b" + "docs/reference/variables/DEFAULT_SEQUENCE_TIMEOUT.md": "44cc6657a0fd41204b57488280834ce7346d726096cea9fcdbfd013dfcc2efc5" }, - "head": "26983f5ef5c3fb0c158c02f5442937f8669c412c", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Matching fixes covered by unit, e2e and real-layout tests; no skill guidance changes.", - "evidence": ["Docker real-layout suite 238/238, core 1,954 tests"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/alpine-hotkeys/src/createHotkeyRecorder.ts": { "fingerprint": "fa4414336c960632c262b4d13e54de02ef630c600024c1c5349285c4baf9546f", @@ -7121,14 +6921,14 @@ ] }, "source:packages/hotkeys/tests/app-hotkeys.test.ts": { - "fingerprint": "eaaee5355902d769c5fab487b43203016a88b24a9f485c8c1f012d5d40b0e756", + "fingerprint": "a4174eb13810776169f4c8543a0502423b6b21fe0b554cd3f0cf9fc05e59dac1", "snapshot": { - "packages/hotkeys/tests/app-hotkeys.test.ts": "6e49b1cec7b3bb1d23150c7ae140d866c87bd8af49198d31818a279b3bda227f" + "packages/hotkeys/tests/app-hotkeys.test.ts": "aa985f4095f6fa2baea2106c8319c08e50d05203874ae1441a95b286b547e080" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", - "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/hotkeys/tests/app-hotkeys.test.ts"] }, "source:packages/hotkeys/tests/unset-values.test.ts": { "fingerprint": "f928c9450c2f2f916cf639f3cc0a81e3a49effda3b8e90c51002bda9422539ca", @@ -7353,14 +7153,14 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/alpine/reference/index.md": { - "fingerprint": "b194d3230da948a9a61b8ec95978f0fa37399b99a9c111b0f8bfcb48a31bb4a7", + "fingerprint": "ba2a3f4be74682b370e266438875a6f778a17232607eae4e15eebcc669e4b9c2", "snapshot": { - "docs/framework/alpine/reference/index.md": "9ff0228c3b2d39fc10b33676e848be30f7f02d487ce07eb2a8c846d4922a9696" + "docs/framework/alpine/reference/index.md": "35561b8e9da4d9a28677ea72b271998373d87c95f5c255fc2fe69f2000f67a02" }, - "head": "a0d13335f6d9976ac25ead467b4658185c741b51", - "outcome": "out-of-scope", - "reason": "Source, test, CI, or generated docs change; the skills that cover it were reviewed in their own items.", - "evidence": ["docs/framework/alpine/reference/index.md"] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/angular/reference/functions/injectHeldKeyCodes.md": { "fingerprint": "1efff674856f6bc630b76ab066be37b9652a8e8880ede5d099a4d28c1759b707", @@ -7607,14 +7407,14 @@ "evidence": ["knip.json"] }, "source:packages/alpine-hotkeys/src/index.ts": { - "fingerprint": "01dee7d5937b6f9f44e6b5ceeb1149f741438304d8ad0c32ea291e59bb6f22e6", + "fingerprint": "99c597488bf376bf3299f80d9fbf52ce5341446fd775b40a789f48ec9d1a87b0", "snapshot": { - "packages/alpine-hotkeys/src/index.ts": "271395ed12723450a1247172aa7f4db0ba0cb57173944f4fee37a18f90757db4" + "packages/alpine-hotkeys/src/index.ts": "725dbdfdf1bda11a71a9d6c10f8c6fbcb9314211767c23f77f4e5b651341084a" }, - "head": "a0d13335f6d9976ac25ead467b4658185c741b51", - "outcome": "out-of-scope", - "reason": "Source, test, CI, or generated docs change; the skills that cover it were reviewed in their own items.", - "evidence": ["packages/alpine-hotkeys/src/index.ts"] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:packages/alpine-hotkeys/tests/effect-errors.test.ts": { "fingerprint": "87c77797e849ee672ca0662e839bdf35a31183c03b68b076bbaba1e946ef029e", @@ -7912,16 +7712,14 @@ ] }, "source:docs/framework/ember/reference/functions/useFormatForDisplay.md": { - "fingerprint": "c1445775c534da4ce53721eed6d66a37bce5947917e66fb51141d1e37845a081", + "fingerprint": "3a9a73f28a2fd519c77b6763477b14624613aa99a4bc1c099324a54166de5493", "snapshot": { - "docs/framework/ember/reference/functions/useFormatForDisplay.md": "5e1f1b8dc6beddcde963671e0a57ac3d50b42c7d4d62614fd40cbad81064f86b" + "docs/framework/ember/reference/functions/useFormatForDisplay.md": "b359f2c6a7d182ef2900b64ed3dbd2c506a566f9768f30825f203651818b8bbb" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] }, "source:docs/framework/ember/reference/interfaces/DefaultHotkeysOptions.md": { "fingerprint": "f84ff7fd68855b5ce13cd39f95b1ec93c17afe6ab073f6ac29f16e3f45ddefa9", @@ -7936,16 +7734,14 @@ ] }, "source:docs/framework/octane/reference/functions/useFormatForDisplay.md": { - "fingerprint": "c93bb13ae45bb0f655b1642d8cf98fc46184375adbd53edf986825d6b0ed1455", + "fingerprint": "2ce8b0c78949c6549ef8be60097e10fc8da6e1f0e658051b31e580cf8a77a252", "snapshot": { - "docs/framework/octane/reference/functions/useFormatForDisplay.md": "2c8a2fe2f0e995870363c3eaf6fcef43d3de70fa8c5369bb58fb7fe38914e6ed" + "docs/framework/octane/reference/functions/useFormatForDisplay.md": "e4eb148cb4628342e8a5cbab617711b385a65179fadaf789d6016eb8cd08b171" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] }, "source:docs/framework/preact/reference/functions/useFormatForDisplay.md": { "fingerprint": "cb70338254dffbcb81986d400b90584feef5b2d6ea00a981e71ac063bf44b069", @@ -7998,14 +7794,14 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/reference/adapter/functions/getServerPlatformSnapshot.md": { - "fingerprint": "ff17fbb6175b860d713f4ef1a12ec0fd776b1740ae1c9d38775782b8e9552e1b", + "fingerprint": "4e6a3d51a52683210c380bb32ea642e85a7d26dfa579357f3f8d9205085c5015", "snapshot": { - "docs/reference/adapter/functions/getServerPlatformSnapshot.md": "f834f5e15b1d3694e24272a9ff4e7fab33ef1dd9e0e44e4719483174c8d89ebd" + "docs/reference/adapter/functions/getServerPlatformSnapshot.md": "0e4cd6dd614522ec7afa4d90611ce20711c585f146df4f050377fd43caeb2b1d" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/functions/detectPlatform.md": { "fingerprint": "50e5480c7ebb159db9ef8163e4adb22517ab4f5e7687e7bf9ca98c82d1636ed8", @@ -8018,16 +7814,14 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/reference/functions/formatHotkey.md": { - "fingerprint": "7ea0ca0d8c6a9d8f5befd9f066c8c0e4ccc1cf8f432b1ab38cbb148b62027c16", + "fingerprint": "35f4b59519b99abdd5fe97b427447a0316925dd6625fa2dad15ed896195d2a89", "snapshot": { - "docs/reference/functions/formatHotkey.md": "47cb81f93e1568dc71ea676e3cbb1a1114ee0ff9e4e54bb4861f84d741f817e5" + "docs/reference/functions/formatHotkey.md": "5dfdcfcfd13da4a91feaae5c00cb8b9d86cae17c07b7860222ceda06a7fff0a6" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/functions/resolveModifier.md": { "fingerprint": "7b66f2945817cd1707a44bb0ddeed5107b8500b5eb63119fa8642a5f6e6822cc", @@ -8064,17 +7858,14 @@ ] }, "source:packages/angular-hotkeys/tests/platform.test.ts": { - "fingerprint": "21ec26dbf9baf7505952154b66dc7f409c551371563b5378e1e2be72f1e9b916", + "fingerprint": "eb52e9f5d98a0d5b7f93f8116b67fdbafc698a87fa1da27fa371c2293fdafadf", "snapshot": { - "packages/angular-hotkeys/tests/platform.test.ts": "9d02060478a6530381c8c0049262e7070179adfd8dd4f2a8c0c44b0aecea9c08" + "packages/angular-hotkeys/tests/platform.test.ts": "325c340a0d5f7c4fb56b2317b69ce0873ba2bda1caba7b3729fc215027d2b4dc" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", - "outcome": "no-change", - "reason": "Test only: covers the deprecated export, the new label primitives, or the renamed label function. No guidance changes beyond the skills already updated.", - "evidence": [ - "packages/angular-hotkeys/tests/platform.test.ts", - "git diff 7d9cccc3 -- packages/angular-hotkeys/tests/platform.test.ts" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/angular-hotkeys/tests/platform.test.ts"] }, "source:packages/ember-hotkeys/src/types.ts": { "fingerprint": "32f91bcf27f7a968fd072153aaef29959362a46c6629811cde9399553ee0cd68", @@ -8089,39 +7880,34 @@ ] }, "source:packages/ember-hotkeys/src/useFormatForDisplay.ts": { - "fingerprint": "1619d356521eb0250bb20cb5bd2689bf00fad47ad22f986e77db4a09c1f61e93", + "fingerprint": "fd8f3e842900132074f3660ebfb3386056acb86811760b70e0996412a40302a0", "snapshot": { - "packages/ember-hotkeys/src/useFormatForDisplay.ts": "026c22827151e9c9d2fb4e357d7627acb18843fd476bf3d982d1fd635ceda2ab" + "packages/ember-hotkeys/src/useFormatForDisplay.ts": "79dbb8d4f3e3516f41583a1cc75c120e32d14725e448d789805ba0dd20358306" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] }, "source:packages/ember-hotkeys/tests/integration/platform.test.gts": { - "fingerprint": "940d550d8d194c8d76c6cfc126521c086dbf3da33f732ce2b3f39a588952840d", + "fingerprint": "91e98cdda6bfdbce15088cc67abbb916e579c61b77b02cf7ea74ef68899e5ef9", "snapshot": { - "packages/ember-hotkeys/tests/integration/platform.test.gts": "adf79398be5c9235b3adc646665b6d2d44bdbc4a33b2e37769ad20143c152071" + "packages/ember-hotkeys/tests/integration/platform.test.gts": "86567d61f4681ce41ae88a1d425530752ab37fd4c33ebf10535661b96ed203fe" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", - "outcome": "no-change", - "reason": "Test only: covers the deprecated export, the new label primitives, or the renamed label function. No guidance changes beyond the skills already updated.", - "evidence": [ - "packages/ember-hotkeys/tests/integration/platform.test.gts", - "git diff 7d9cccc3 -- packages/ember-hotkeys/tests/integration/platform.test.gts" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/ember-hotkeys/tests/integration/platform.test.gts"] }, "source:packages/hotkeys/src/_server.ts": { - "fingerprint": "52df25ddc5209085265668cfdd170107cba4ac5f0e598f349e5fb614bb1cbce9", + "fingerprint": "bc86b8ff13895eee20119358a56971b67d60487eb563518048c2a70a47542dd3", "snapshot": { - "packages/hotkeys/src/_server.ts": "37e06c62b7f8959e65ef19e0bcf7c0770419fbed17d2a54f10c020906c048e92" + "packages/hotkeys/src/_server.ts": "673a6916ba4f63e393b184027c599652fdfff30d82791e351a2d87386c6bf8c2" }, - "head": "2a213433c30909be875835beb9224c70d6da5eaa", - "outcome": "out-of-scope", - "reason": "Internal development-only console guard. It changes where warnings print, not an API or behavior the skills describe.", - "evidence": ["packages/hotkeys/src/_server.ts"] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Internal change: the private constants move or the character-key classification behind suspendCharacterKeys. The core skill covers the public behavior.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/hotkeys/src/platform.ts": { "fingerprint": "74b842f6b305edfd2148839683314c5bab092797931c8a648efe75abd8614fd1", @@ -8148,16 +7934,14 @@ ] }, "source:packages/octane-hotkeys/src/useFormatForDisplay.ts": { - "fingerprint": "e4628a5bea4d2989c82cedd906e61579e2732ba9745c7a9ca6f6830e485f6653", + "fingerprint": "f2e4d1e290e24829f7fc8f66ee1078336e67c78894733a685d5726b30aa98d54", "snapshot": { - "packages/octane-hotkeys/src/useFormatForDisplay.ts": "43b916a1aac6542afb3fd047afb8881e1ec724193558cd402a6391196aaaa502" + "packages/octane-hotkeys/src/useFormatForDisplay.ts": "e671a0b4597d736320bba412610c550c79af387db6dac74118d280b6bbbb6f8a" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] }, "source:packages/octane-hotkeys/tests/ssr/useFormatForDisplay.test.ts": { "fingerprint": "89ebfdbe60ed76f636a381f7a4911356085a18652a1b14320e8698e15d93df9d", @@ -8173,16 +7957,14 @@ ] }, "source:packages/octane-hotkeys/tests/useFormatForDisplay.test.ts": { - "fingerprint": "8c75f0564970229d7263b3f3b3b97f6232dc0461dbc9b57d893ae3ca8406452b", + "fingerprint": "3405e4b62d4a95a6734ebc91c517e1f3fe5c6a2abcb54549a51b74939ae62895", "snapshot": { - "packages/octane-hotkeys/tests/useFormatForDisplay.test.ts": "3bd4a6767454ded07cc86c6d8ca3ae973e0cbd1acde28b004a2b1d439c193a56" + "packages/octane-hotkeys/tests/useFormatForDisplay.test.ts": "b5e2bb202e9e9b31d2a0c9c7d7c6bb60b6c243b724b193898ac96a2205296359" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/octane-hotkeys/tests/useFormatForDisplay.test.ts"] }, "source:packages/preact-hotkeys/src/useFormatForDisplay.ts": { "fingerprint": "b1b37fc2fda9839ee21a9c2ef08eb0d2006c31bbd8c6248756a6c03af68edb4b", @@ -8197,16 +7979,14 @@ ] }, "source:packages/preact-hotkeys/tests/useFormatForDisplay.test.tsx": { - "fingerprint": "75f728368cd744be5b62a7af0507e677eec5fdf316d990aa4ec25d5124459b24", + "fingerprint": "7ed3a4a54aed9818a30703cd9e9488767c0fa3d685640b72393f86e82781a8e4", "snapshot": { - "packages/preact-hotkeys/tests/useFormatForDisplay.test.tsx": "e6759314676b3e3d725ee3ee761b0100e3ea7163664987a265557edea8ab3db5" + "packages/preact-hotkeys/tests/useFormatForDisplay.test.tsx": "274695df71a8e5ae757b7b6ca1c3d241598dae5d4a9b5aab40c4198dc0d82ff0" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/preact-hotkeys/tests/useFormatForDisplay.test.tsx"] }, "source:packages/react-hotkeys/src/_usePlatform.ts": { "fingerprint": "7052b92f5c1c2e7c3909be1e948ebc5fbf077280fb92e2807be7cf381dddd2ef", @@ -8234,16 +8014,14 @@ ] }, "source:packages/react-hotkeys/tests/useFormatForDisplay.test.tsx": { - "fingerprint": "ec251afaca64eda9e32a537ae98896909bb6d5f50c5d99fcc8715bca72a408b3", + "fingerprint": "7aa45a19db5f6a8a04d0e539ee3268896b4041b319b60565f9f011eb4170342d", "snapshot": { - "packages/react-hotkeys/tests/useFormatForDisplay.test.tsx": "724f8e5b762cfdc2724081000b44e2f241fa7c9a6f67357636786576c959c8fc" + "packages/react-hotkeys/tests/useFormatForDisplay.test.tsx": "78459059c43efad7ae42b4ba61d6c3255101d05c5749a46ec4c45a75c19e6871" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/react-hotkeys/tests/useFormatForDisplay.test.tsx"] }, "source:packages/solid-hotkeys/src/createFormatForDisplay.ts": { "fingerprint": "7c92a81260ee56fbcaf2f4860f6bc0b916003841ef00abd1d48309d580123547", @@ -8268,14 +8046,14 @@ "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "source:packages/solid-hotkeys/tests/platform.test.tsx": { - "fingerprint": "a625a0998232d5a6f2d2752c1036eb33afac818f29503b9bbef11bf6c85bc522", + "fingerprint": "fab3fc7b6c2132c7bdba37d30c2b05f656f5edba6c346a3573b127d870947d02", "snapshot": { - "packages/solid-hotkeys/tests/platform.test.tsx": "529d48d6c042619ce0ef698764b7f2208fdeb509c083528dc671cf51c142819f" + "packages/solid-hotkeys/tests/platform.test.tsx": "16dc2321dfd635f89dd467c19ff3a15d93e66116261bf9ffdf4ec409198eace1" }, - "head": "56348ac9b038be0fd612a8d895f49db991466190", - "outcome": "no-change", - "reason": "Solid 2 port of this file (imports, effects, attributes, versions), a formatting change, or a regenerated reference page. The solid-hotkeys skill covers the guidance change.", - "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/solid-hotkeys/tests/platform.test.tsx"] }, "source:packages/solid-hotkeys/vitest.config.ts": { "fingerprint": "dafa12ab0f152a7678c7a6146cccfb1b2d0cc705ed7f7b86a2d8f8c0d1b90034", @@ -8356,16 +8134,14 @@ "evidence": ["packages/svelte-hotkeys/tests/platform.server.test.ts"] }, "source:packages/svelte-hotkeys/tests/platform.test.ts": { - "fingerprint": "d3ae804a5c2fa5717115a95dbab8c91c726f5beb12949ccd2e61cae088b3989d", + "fingerprint": "1d691c6ba340e9d3beb78105c55830f9b9897ef0ddc5267dd4d2d147b8d159c6", "snapshot": { - "packages/svelte-hotkeys/tests/platform.test.ts": "10d4b277c318ad17ee64cc092e8b089159af5f4af0b24a55c666a19ad512c866" + "packages/svelte-hotkeys/tests/platform.test.ts": "e054f248fa0907272fa378a1d2c4051b7a2d2c980b244bce002599b19a4c55d6" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/svelte-hotkeys/tests/platform.test.ts"] }, "source:packages/vue-hotkeys/src/useFormatForDisplay.ts": { "fingerprint": "212d3fffd95d5a42f3f32f054687831c8f233838ed24ff3283624453a3ddb595", @@ -8380,16 +8156,14 @@ ] }, "source:packages/vue-hotkeys/tests/platform.test.ts": { - "fingerprint": "9cdd0be0a469a26e508eed26d0a89d5ef40d135a259777bcf92be7d1009dffb0", + "fingerprint": "948ddc88c92a7ed139a18c426bc685364b93b121f64fec83bb087b22246db394", "snapshot": { - "packages/vue-hotkeys/tests/platform.test.ts": "5d69ab5b76d3a312cca20a9c8e1c0c5cf7c407826cf4fd343fcca9eb763abfb0" + "packages/vue-hotkeys/tests/platform.test.ts": "867edd9cb4bd4add5c68be5eefca319daba8ec0231f3b06a6d030a8980abb8eb" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/vue-hotkeys/tests/platform.test.ts"] }, "source:.github/workflows/e2e.yml": { "fingerprint": "655273267b82fd303ff283293c9ee4e30fd8524217b787c756b233d2f298c58d", @@ -11704,16 +11478,14 @@ "evidence": ["No skill references this file"] }, "source:packages/hotkeys/src/key.types.ts": { - "fingerprint": "3149e7d31cf73e70330322f977d40c3a82e6d9392c23ad3a984de214a17fdc51", + "fingerprint": "ad6f1ff7cab316e9c7388736746326f295b66a04e6a57b21970dd184c8ad5829", "snapshot": { - "packages/hotkeys/src/key.types.ts": "cf09c6b5a99e4fbd72dc7c7c277daed9a1404ecaaff1ad368719a1efd3666df6" + "packages/hotkeys/src/key.types.ts": "e531cd9f41fbd1704047f35041459ab5cb14a9ea3ad345cf03993fd0f53f9206" }, - "head": "a7c7ddcf89fac99790eb60372fc440fcc34f1b07", - "outcome": "updated", - "reason": "Layout key types through Register.keys; the core skill now covers registering layouts and when to prefer US bindings.", - "evidence": [ - "packages/hotkeys/skills/hotkeys-core/SKILL.md: pitfall \"Keys of other layouts need a registration\"" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/hotkeys/src/parse.ts": { "fingerprint": "25686bc50f40d98b252588f79cc5000a533211ee68a14fbb7db144bca3a5b8b6", @@ -12010,14 +11782,14 @@ "evidence": ["docs/reference/type-aliases/HotkeyIssueReason.md"] }, "source:docs/reference/type-aliases/RecorderRejectionReason.md": { - "fingerprint": "3b141c4194d3d210fa67f69e18da61736125641efcfd64ed677c529d7bfeb7f1", + "fingerprint": "59a0c79f4fa32f67be117b4f68ebc10d8d3312989f11d8fea7edc7fae1d06a12", "snapshot": { - "docs/reference/type-aliases/RecorderRejectionReason.md": "d449385f3be82c0d3eed6d2c308168b68b95ad97e8653c0d647c62ef16e0a44a" + "docs/reference/type-aliases/RecorderRejectionReason.md": "d778e0aa505ad6c037127f7a63ceaffdd8a4e4ca531ae4edb069caf20100d398" }, - "head": "b6df86ecbe091533369f326371ffc01b536bc37a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Wording on how the recorder treats Windows AltGr; skills do not state it.", - "evidence": ["docs/reference/type-aliases/RecorderRejectionReason.md"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:examples/ember/useHotkeys/app/templates/application.gts": { "fingerprint": "16779627970d0c79bb13ec3a1895540a6ca8d2f5624e1521f9e523b8447fa5ad", @@ -12119,14 +11891,14 @@ "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "source:packages/hotkeys/src/_recorder-chord.ts": { - "fingerprint": "28ecc6da9e0a5d06877dc0f53488808422867ca33368c7b74a49477718a998b2", + "fingerprint": "f417ba679826ef475a7d66c586c75c39585b812bf2e51fe59f026183f827c42b", "snapshot": { - "packages/hotkeys/src/_recorder-chord.ts": "a7b169f130ce1ba712607cc41533a5add5a2de9fd5745de6a6139bebdefebb08" + "packages/hotkeys/src/_recorder-chord.ts": "7d009e493ea0f2a83a5d608c809fdc2585528073063c6ac066222332da2eccf8" }, - "head": "5bcd4898b0e990c8d96442fd585623ceed6e9009", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Guide wording and an AltGr recorder fix; no other skill states these details.", - "evidence": ["packages/hotkeys/src/_recorder-chord.ts"] + "reason": "Internal change: the private constants move or the character-key classification behind suspendCharacterKeys. The core skill covers the public behavior.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/hotkeys/tests/recording-and-display.test.ts": { "fingerprint": "38b5b292f0b5970d80856bdac43e365f06b9a371b85094ee392a944d61b72d22", @@ -16920,14 +16692,14 @@ ] }, "source:packages/hotkeys-devtools/src/HotkeysContextProvider.tsx": { - "fingerprint": "353c0054cc284af7987dd35ea4dbf641f287b39881ff2539dc5bedf71b2fc19b", + "fingerprint": "c7891ff0b3a27e40a9cf03c267fb4dd948037d3c691811158a21a7134e7a63f5", "snapshot": { - "packages/hotkeys-devtools/src/HotkeysContextProvider.tsx": "2df52c0a12976d7378c5e39b2c758fc8d58dddd0f7ad4fa73a1366f2c84f6eec" + "packages/hotkeys-devtools/src/HotkeysContextProvider.tsx": "c903867d43db5491b0b32f495604e99e7ac543a5299b340729a8da34301c4c02" }, - "head": "62484c0a986018704e1ebe3a7f7c93061fa90942", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Solid 2 port of this file (imports, effects, attributes, versions) or a regenerated reference page. The solid-hotkeys skill covers the guidance change; no other skill guidance depends on it.", - "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/hotkeys-devtools/src/_registrations.ts": { "fingerprint": "7811d44c24c341e818002ddde305f48c71b751783a8686bf3c1d8c356cb09ae4", @@ -17527,16 +17299,14 @@ ] }, "source:packages/svelte-hotkeys/src/internal.svelte.ts": { - "fingerprint": "3912726240f13b75c82e4838e2e63ea1c9b48fd4758af992c0ee2eec00195552", + "fingerprint": "cfc45ff4f9e487a12d3da60a710163a25207bb97c65ccc6f0c082b3c92735919", "snapshot": { - "packages/svelte-hotkeys/src/internal.svelte.ts": "da0e4bef54d75fd7665aafc7a3fa0f39e359d8e24fd66251a2803980fbf7c00a" + "packages/svelte-hotkeys/src/internal.svelte.ts": "8158452c7292d2a661a8f6d5a3abce465933b8ac9dcaa7f0f9ba530d451ccb44" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:packages/svelte-hotkeys/tests/ScopesHarness.svelte": { "fingerprint": "0e463b611a4784a699c472376f897f0c22b18820a3c31fbb893d7be3bae4d98e", @@ -18832,14 +18602,14 @@ ] }, "source:packages/hotkeys/tests/invariants/fixtures.ts": { - "fingerprint": "be15e0c5ef99ead69128bca52ffe28e7789431f487a0295fda72f5d6ad201641", + "fingerprint": "c208b93d176cd8dda42d811bd554ca749eaa175c0343ea99b4778d1357df7862", "snapshot": { - "packages/hotkeys/tests/invariants/fixtures.ts": "5a5b6aa0f21b99ed4cf775336a6d9ee4fee689364f818c259e4489d26414d960" + "packages/hotkeys/tests/invariants/fixtures.ts": "cf2dc51845325b3d254107786f47c478f0e35f0cdd874284f046246a5395e385" }, - "head": "7d7987cd3aa0a01565debdc06bcfb104a59d0889", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "out-of-scope", - "reason": "Test fixtures, invariant tests, the layout table generator, or formatter config; no skill guidance depends on them, and library behavior is unchanged.", - "evidence": ["No skill references this file"] + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/hotkeys/tests/invariants/fixtures.ts"] }, "source:packages/hotkeys/tests/invariants/matching.test.ts": { "fingerprint": "060462d610627263728e7343ea9f23f8e4e4e9659729cc0ad5f8ebb0cc45e541", @@ -19190,136 +18960,116 @@ ] }, "source:packages/alpine-hotkeys/tests/conformance.test.ts": { - "fingerprint": "d2a45119e96e74faebe22af8a842ad99cc9f917a02178812b311408c1162ace5", + "fingerprint": "7f0d1820fb56b9a3db24794c87e77f967dec8cc156d5e615621974a1abc34e60", "snapshot": { - "packages/alpine-hotkeys/tests/conformance.test.ts": "978ad30b824a7415c962a83389b31bcd89c2fe1200cc5c0e35aa9a566f32dee7" + "packages/alpine-hotkeys/tests/conformance.test.ts": "c2a85c4d1530d9114217a2d40296d05258f21c3c5620b9386459c3757a11eb45" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", - "outcome": "no-change", - "reason": "Test only: covers the deprecated export, the new label primitives, or the renamed label function. No guidance changes beyond the skills already updated.", - "evidence": [ - "packages/alpine-hotkeys/tests/conformance.test.ts", - "git diff 7d9cccc3 -- packages/alpine-hotkeys/tests/conformance.test.ts" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/alpine-hotkeys/tests/conformance.test.ts"] }, "source:packages/angular-hotkeys/tests/conformance.test.ts": { - "fingerprint": "a4c1286bf15b0b7e753bd26310973f8392a30ff06985c6053d4ba3a8c9f9ea68", + "fingerprint": "5d298a8fc3ee473cd85854974884d6af6ddc036c7e4197d9ba17830d28b1d694", "snapshot": { - "packages/angular-hotkeys/tests/conformance.test.ts": "763654c9575015a9d7dc5cc26097da83ad2f44aa903eae575e4b57d7ec7a2dde" + "packages/angular-hotkeys/tests/conformance.test.ts": "3ef4f9d66332a087580f1a8849d5fbe8e2db14c863e68fb4391c1330ef8e7dfa" }, - "head": "e7cbe578686100589221c8a0b6140496985e6c45", - "outcome": "no-change", - "reason": "Bug fixes for app hotkeys that arrive after the provider renders, Lit server rendering under the DOM shim, and Escape with dialogs in shadow roots, plus doc corrections. The skills don't describe these cases, so no guidance changed", - "evidence": [ - "Changed: packages/angular-hotkeys/tests/conformance.test.ts at e7cbe578686100589221c8a0b6140496985e6c45" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/angular-hotkeys/tests/conformance.test.ts"] }, "source:packages/ember-hotkeys/tests/integration/conformance.test.gts": { - "fingerprint": "2cc115c9f5c8ca571a2d5a41653c618c8ecde53478c2a5966af729d3ced5cac2", + "fingerprint": "d8e8b21199a9f1f6134a9de470f0d3ceeee6c525752eed5dd4cff95a7152d127", "snapshot": { - "packages/ember-hotkeys/tests/integration/conformance.test.gts": "11f49394b4ea9bdfc40db4bfdee5e039e40fed2c62302dd7c5c034488020fa7e" + "packages/ember-hotkeys/tests/integration/conformance.test.gts": "159fa66b39f23f8b7dc6d4935cca6a2ec65b5c154f027fcc70755cf10b511048" }, - "head": "63e54fdad498b1f48cf5e0c65b30271d0b4fefb3", - "outcome": "no-change", - "reason": "Test harness guard and a Solid docs example; no guidance changed", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", "evidence": [ - "Changed: packages/ember-hotkeys/tests/integration/conformance.test.gts at 63e54fdad498b1f48cf5e0c65b30271d0b4fefb3" + "packages/ember-hotkeys/tests/integration/conformance.test.gts" ] }, "source:packages/lit-hotkeys/tests/conformance.test.ts": { - "fingerprint": "84e08ac6a13d3506e8186288ad2eb981780ccab059770381774ca5490d78d318", + "fingerprint": "9de3dc4f9e65001d467448937ec9b95dd03b1f87627253cae8846d1a0b50438e", "snapshot": { - "packages/lit-hotkeys/tests/conformance.test.ts": "7dbd2fc7bca619fff7906d83eeb95b6bb3e763ad80311c04e8249358dacd1965" + "packages/lit-hotkeys/tests/conformance.test.ts": "04c92c36c3313d64df00660ce66223eaae42da57e6a84c056bde4035b43e9530" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", - "outcome": "no-change", - "reason": "Test only: covers the deprecated export, the new label primitives, or the renamed label function. No guidance changes beyond the skills already updated.", - "evidence": [ - "packages/lit-hotkeys/tests/conformance.test.ts", - "git diff 7d9cccc3 -- packages/lit-hotkeys/tests/conformance.test.ts" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/lit-hotkeys/tests/conformance.test.ts"] }, "source:packages/octane-hotkeys/tests/conformance.test.ts": { - "fingerprint": "426d99a32f48e36a2ca8f78783f98644994dc6bcd8e40a5013858021747a7af4", + "fingerprint": "61de9d35f3b193bf15bd22d7cc1fc4989c7556a11a355acaebee2846eba79f90", "snapshot": { - "packages/octane-hotkeys/tests/conformance.test.ts": "b681ac627be1ef8e967e0aedfc91268e0e27ae527d584cd7911d95e56ae21d97" + "packages/octane-hotkeys/tests/conformance.test.ts": "1e9066ccb3c8d467de540079fcc09e07c83d4e7afbd6828bf8617d3c2f63ace0" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/octane-hotkeys/tests/conformance.test.ts"] }, "source:packages/octane-hotkeys/tests/conformance.tsrx": { - "fingerprint": "387ba6bc048ef0741138d870b45d763ab4608792ec25e3e210733259a48252b5", + "fingerprint": "2090be1c5e5ae4a1806d3797cac4fbbec6534bb357dbdd36d2720046f871a620", "snapshot": { - "packages/octane-hotkeys/tests/conformance.tsrx": "72f3cfd9d09241943e087013e5d26af5e02c87dfd80dae2b7e495eface4dde92" + "packages/octane-hotkeys/tests/conformance.tsrx": "de836cf23203fc2b04a07f2e13208604592ec4dd434e13a69081460dc6e8b691" }, - "head": "8fe6e81b5696979beb1c663ce4aac6c7d6696b77", - "outcome": "no-change", - "reason": "Shared adapter conformance suite: test-utils cases and per-adapter test harnesses only; no API or guidance change.", - "evidence": [ - "Changed: packages/octane-hotkeys/tests/conformance.tsrx at 8fe6e81b5696979beb1c663ce4aac6c7d6696b77" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/octane-hotkeys/tests/conformance.tsrx"] }, "source:packages/preact-hotkeys/tests/conformance.test.tsx": { - "fingerprint": "c3b2c8701ff05561e886fdd635edc0ad69ed7b49c39804f315c0ac1ba5fcea7b", + "fingerprint": "e765db6164cb832d1271470cf43d42fbe48442da65e9e0e9bc0cc07b30c1d484", "snapshot": { - "packages/preact-hotkeys/tests/conformance.test.tsx": "839f1574eb893317ebaf3cae82cc0aaa7d541ca88c30cfde9c4533f51eba5322" + "packages/preact-hotkeys/tests/conformance.test.tsx": "d2e00005a274197416ebb4594b16656656e516a4ec3f7c6eb426731295cf57a6" }, - "head": "e7cc01367db32b74b489084bb35e173126664d39", - "outcome": "updated", - "reason": "Merged test/coverage-overhaul: tests from #256 and skill guidance from #257/#258, reviewed in those PRs", - "evidence": [ - "Changed: packages/preact-hotkeys/tests/conformance.test.tsx at e7cc01367db32b74b489084bb35e173126664d39" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/preact-hotkeys/tests/conformance.test.tsx"] }, "source:packages/react-hotkeys/tests/conformance.test.tsx": { - "fingerprint": "7c3160c807ff6d2cd3145ec564308b0656754407d017ebfa185ab040834c5176", + "fingerprint": "4a63c9b746b0bec139fa55f4c8639024ef1d882e2f5136867c153f1490dd3c26", "snapshot": { - "packages/react-hotkeys/tests/conformance.test.tsx": "09afac5a0f06e91c79f092589bb0d6445f4f46bddca85d800f18184f37fefca5" + "packages/react-hotkeys/tests/conformance.test.tsx": "e311261e9adb2e97faaa9244105e262b6bb98ad41b98880f065182b7c2249708" }, - "head": "e7cc01367db32b74b489084bb35e173126664d39", - "outcome": "updated", - "reason": "Merged test/coverage-overhaul: tests from #256 and skill guidance from #257/#258, reviewed in those PRs", - "evidence": [ - "Changed: packages/react-hotkeys/tests/conformance.test.tsx at e7cc01367db32b74b489084bb35e173126664d39" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/react-hotkeys/tests/conformance.test.tsx"] }, "source:packages/solid-hotkeys/tests/conformance.test.tsx": { - "fingerprint": "3c53593512431edcfa8e3ea971aff38dfe6e42629eaefd2a598f2654c4c0f5a2", + "fingerprint": "6b9383bb3ac0dea98c97eba9628ccfdfa505ce5019ce644d0d35c51aaa232eef", "snapshot": { - "packages/solid-hotkeys/tests/conformance.test.tsx": "59419ea7aa018ca3e79e2c788ff0b794902a1f355adbb11c3aaa30a7fc282167" + "packages/solid-hotkeys/tests/conformance.test.tsx": "d03dec1e4498766408b4e659c609e5b0d6288d4d9f2efdb7e0ca516c13fa6cd2" }, - "head": "56348ac9b038be0fd612a8d895f49db991466190", - "outcome": "no-change", - "reason": "Solid 2 port of this file (imports, effects, attributes, versions), a formatting change, or a regenerated reference page. The solid-hotkeys skill covers the guidance change.", - "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/solid-hotkeys/tests/conformance.test.tsx"] }, "source:packages/svelte-hotkeys/tests/conformance.test.ts": { - "fingerprint": "80ac32fa2d8132883144edcc6401120bf1e3b16102580a8e7b951942c29f2c2b", + "fingerprint": "3220309f04971e52101c3bfe609fce10315e4cad4dce678b449f17e31f396009", "snapshot": { - "packages/svelte-hotkeys/tests/conformance.test.ts": "87e4cd0914335811fdaa71c34c4c41cc330b4778b075b85606be35339e4c57a9" + "packages/svelte-hotkeys/tests/conformance.test.ts": "f4b623feaad7888d8c7b7cfec2e8f03c40fa6f87983993cbb898828aeb542586" }, - "head": "e7cc01367db32b74b489084bb35e173126664d39", - "outcome": "updated", - "reason": "Merged test/coverage-overhaul: tests from #256 and skill guidance from #257/#258, reviewed in those PRs", - "evidence": [ - "Changed: packages/svelte-hotkeys/tests/conformance.test.ts at e7cc01367db32b74b489084bb35e173126664d39" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/svelte-hotkeys/tests/conformance.test.ts"] }, "source:packages/svelte-hotkeys/tests/conformance/Format.svelte": { - "fingerprint": "2bbaee1629410ce3fa428564dcbbb356f9a0018092548581b9cb56985e385326", + "fingerprint": "6ba9a8f22a050fb26cb4f4f26e9b82dc6396ce9e8bab9f4caa14e4c5f39b9ef6", "snapshot": { - "packages/svelte-hotkeys/tests/conformance/Format.svelte": "22380c804391db59cf70e4439101e816648b55832c65cb561109a14c29bc983a" + "packages/svelte-hotkeys/tests/conformance/Format.svelte": "065b114522253fc8c53fc810b56b866053117ff8c70a8edd4e6d4198a409bd9f" }, - "head": "8fe6e81b5696979beb1c663ce4aac6c7d6696b77", - "outcome": "no-change", - "reason": "Shared adapter conformance suite: test-utils cases and per-adapter test harnesses only; no API or guidance change.", - "evidence": [ - "Changed: packages/svelte-hotkeys/tests/conformance/Format.svelte at 8fe6e81b5696979beb1c663ce4aac6c7d6696b77" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/svelte-hotkeys/tests/conformance/Format.svelte"] }, "source:packages/svelte-hotkeys/tests/conformance/HeldKeysView.svelte": { "fingerprint": "579e4da97e254a73a1fc785fc7db60a615cc31fda8ed116e0cd5c077024974cf", @@ -19382,16 +19132,14 @@ ] }, "source:packages/svelte-hotkeys/tests/conformance/Provider.svelte": { - "fingerprint": "0667b9c52c23dd2164903df5e51431e9fd54f74e0eff554ba2d8e26199dbfdab", + "fingerprint": "7d1ea63ac0d67a44c096f8649a4af9d6dae06a5f67c4644194f50fe4e10b6bf6", "snapshot": { - "packages/svelte-hotkeys/tests/conformance/Provider.svelte": "c9484c9a162f4292cd2b8e252e49d12aebf77280bc2e5720dad54cb23ebdcf05" + "packages/svelte-hotkeys/tests/conformance/Provider.svelte": "a3370ff502be9650e46a10bd012e76206d51b9593f3eeae38c4e7ce80e299b65" }, - "head": "8fe6e81b5696979beb1c663ce4aac6c7d6696b77", - "outcome": "no-change", - "reason": "Shared adapter conformance suite: test-utils cases and per-adapter test harnesses only; no API or guidance change.", - "evidence": [ - "Changed: packages/svelte-hotkeys/tests/conformance/Provider.svelte at 8fe6e81b5696979beb1c663ce4aac6c7d6696b77" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/svelte-hotkeys/tests/conformance/Provider.svelte"] }, "source:packages/svelte-hotkeys/tests/conformance/Recorder.svelte": { "fingerprint": "73ab14a50b4aa49f014d122c5ce7f84902c5e1f3befead76def9c78ec045afa0", @@ -19442,16 +19190,14 @@ ] }, "source:packages/vue-hotkeys/tests/conformance.test.ts": { - "fingerprint": "090d41717774ff4e46e9e858f6434ad4b9b3c32428bffe7ef08e8048e6bfc4ed", + "fingerprint": "e4b2ca200f897ad8e8195bf91955a736ad2ef88d40325e022f6c0a0058683083", "snapshot": { - "packages/vue-hotkeys/tests/conformance.test.ts": "bb9d919826bd6ef72cb7dab5122236467b7eb7d9e4e0cbd49573578929aea430" + "packages/vue-hotkeys/tests/conformance.test.ts": "db20cac7445bbef3615e5735708ee919d5e66d616fefea6f1fbc60a194cf683e" }, - "head": "e7cc01367db32b74b489084bb35e173126664d39", - "outcome": "updated", - "reason": "Merged test/coverage-overhaul: tests from #256 and skill guidance from #257/#258, reviewed in those PRs", - "evidence": [ - "Changed: packages/vue-hotkeys/tests/conformance.test.ts at e7cc01367db32b74b489084bb35e173126664d39" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/vue-hotkeys/tests/conformance.test.ts"] }, "source:test-utils/src/conformance/cases/held-keys.ts": { "fingerprint": "1e32abafbd1b4d9e2382a621f325e522fbc0000cb7c5a9266017cc7d2163337c", @@ -19478,25 +19224,23 @@ ] }, "source:test-utils/src/conformance/cases/provider.ts": { - "fingerprint": "837069b77e8b4ac555e6137e5963c2ea6687e598594dffb2e67ac2846b49d524", + "fingerprint": "9e4c80644ec59c9e30f4c10a3a44865d053c17c34d6b4d4231ca249283231a6d", "snapshot": { - "test-utils/src/conformance/cases/provider.ts": "96e774cd054329a402146394054eedb5d23aa890625fd08370d96fce45c576aa" + "test-utils/src/conformance/cases/provider.ts": "9cb66368637a22b2b2df0ea31f9cd8a7d85972107d94b28abc55ada2e188f8f5" }, - "head": "e7cbe578686100589221c8a0b6140496985e6c45", - "outcome": "no-change", - "reason": "Bug fixes for app hotkeys that arrive after the provider renders, Lit server rendering under the DOM shim, and Escape with dialogs in shadow roots, plus doc corrections. The skills don't describe these cases, so no guidance changed", - "evidence": [ - "Changed: test-utils/src/conformance/cases/provider.ts at e7cbe578686100589221c8a0b6140496985e6c45" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["test-utils/src/conformance/cases/provider.ts"] }, "source:test-utils/src/conformance/cases/recorder-hint-format.ts": { - "fingerprint": "fd3ad01ad3d527bbb3dfbb9f46eda9928d9622091c364c9525a231727cdaf474", + "fingerprint": "4625dda2e3a176dcd911f5c86d3d385810242f580b4d704157ed0fd796ddbdcf", "snapshot": { - "test-utils/src/conformance/cases/recorder-hint-format.ts": "422059f5d8bdd03e0124a91f3c031fa362ef68186d9585b548f99b3a8c3c03fb" + "test-utils/src/conformance/cases/recorder-hint-format.ts": "1e345cf92682f755ba2fcf77e34cbe9503b82978f3ddfb041ea91a996084341d" }, - "head": "94358d54fd72a38952b6fb68560b48043a3f8277", - "outcome": "no-change", - "reason": "Tests for the recorder's new default and the conflict check context. Skills don't describe the test suites.", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", "evidence": ["test-utils/src/conformance/cases/recorder-hint-format.ts"] }, "source:test-utils/src/conformance/cases/registrations.ts": { @@ -19560,16 +19304,14 @@ ] }, "source:test-utils/src/conformance/types.ts": { - "fingerprint": "a7bb0487f315696572528d25fe51271b862b3e10e1d773102b42079e9117303d", + "fingerprint": "6922086b06ed1d4c0c92fdae116e662805d40c40b16b73faeece0e0f029b3f08", "snapshot": { - "test-utils/src/conformance/types.ts": "a1a2e59ed00220a40b550853b1d6f189dead311b8d294128cc89295cb2e9e20c" + "test-utils/src/conformance/types.ts": "817fccb20ff9105d25db5dde8fc799f7df70e433fa064bd7d426dc2d087982a2" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["test-utils/src/conformance/types.ts"] }, "source:test-utils/src/conformance/vitest.ts": { "fingerprint": "67e75595da8728fc251afdd3b5a4ffd1dd28a3bf937ee52166454f134e3090aa", @@ -19761,13 +19503,13 @@ ] }, "source:packages/hotkeys/tests/typed-keys.ts": { - "fingerprint": "792c4a47d5836082f3fa378a60d6b9deeeec7c02e7cc7c9a0f2a14556043563c", + "fingerprint": "52a33dccd9d3df6858f123ba8954fba917030919e7c23733936d8c85c16290ca", "snapshot": { - "packages/hotkeys/tests/typed-keys.ts": "997537dccfac3158a527b76ebe28916f2ca5b088df2dbd234cb7a80635bbf3de" + "packages/hotkeys/tests/typed-keys.ts": "71aaae0a0750ff78d9c12e238742ec1104a6744da823ebd22b48e72a7d1d909b" }, - "head": "f8a1f08596e7712addb6d514c7771fa61b78ca7e", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "out-of-scope", - "reason": "Test code for the macOS Option and Cmd+Shift matching rules, AltGr in sequences, and the removed key Sets; it carries no guidance for library users.", + "reason": "Test change; it describes no library behavior the guidance covers.", "evidence": ["packages/hotkeys/tests/typed-keys.ts"] }, "source:packages/hotkeys/tests/app-hotkeys-type-performance.test.ts": { @@ -20009,14 +19751,14 @@ ] }, "source:docs/reference/adapter/functions/namesPhysicalKey.md": { - "fingerprint": "3e0c1f54162d7104acf5a1b5a6c3bfde2fc799ddf5dc0567af9cf323485e9366", + "fingerprint": "f090b22c0cbbe3fbf22ff6ff9b94bcc14c1cc18b62d8031e09ad9b8514e8bd45", "snapshot": { - "docs/reference/adapter/functions/namesPhysicalKey.md": "d903e444118226f24edaeb37202bc49a1812d4c39fdf5147b1477ddbc8421582" + "docs/reference/adapter/functions/namesPhysicalKey.md": "debbc1c3c3ffb2cc179c7a52b94f6bbb4ca85b32fe77a8eb17c0a1cde1d88a3c" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/functions/getKeyboardLayoutStore.md": { "fingerprint": "51a3d7c7789bf6ea541edd695f2b946c09016f1b74e068b8b89305a4e9a23261", @@ -20446,16 +20188,14 @@ ] }, "source:docs/agent-skills.md": { - "fingerprint": "8b60b9927b3235f92b6d760bd8663bdf511540a8a67beff357fda620ad09811d", + "fingerprint": "3c0d1de65c11667732cda05132ca53fbe4556f289074fe2dd3e2289cc38afb08", "snapshot": { - "docs/agent-skills.md": "2c123339f8acf64ae1b4c96478ac0f32296ae98dae98a4007d5006251443c1a1" + "docs/agent-skills.md": "392bda510e600aa8bce6f4643e8e2c838ed2c27629e53be72e589a0921859149" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Reorganized and rewrote core and framework guides and extracted dedicated SSR and testing guides; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/agent-skills.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/framework/alpine/reference/variables/formatForDisplay.md": { "fingerprint": "22c2a80ea7bab2912d2d2512301e9a7b4931b2412ce5fad69f3376f8f15a7490", @@ -20488,16 +20228,14 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/lit/reference/classes/FormatForDisplayController.md": { - "fingerprint": "137a7cd837fbda5e71a7753fbe03ef38c9b494a78c6ffb102e144f69e75fa936", + "fingerprint": "65899a67d17b4f8757073a732cc6b02e84981e41f5cfb4068de8cb58af276779", "snapshot": { - "docs/framework/lit/reference/classes/FormatForDisplayController.md": "a3c0bbf7c231cbb0832efc327c341e362c772d211cb6d5d7fae262a4e0c90d32" + "docs/framework/lit/reference/classes/FormatForDisplayController.md": "4a55efb3b4d9636e967f3a32f4930f814238a416f3974fa80ada02c2a44916b7" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "source:docs/framework/lit/reference/interfaces/FormatForDisplayControllerOptions.md": { "fingerprint": "366093346466e18c240f7998be362ca30506dfc6e484bd3db70c42172bab6d7c", @@ -20893,17 +20631,14 @@ ] }, "source:packages/alpine-hotkeys/tests/format-for-display.test.ts": { - "fingerprint": "42b357e874535b24d4133af5b01dd3d53a94619cc6604948352ac7c15a8a9d88", + "fingerprint": "7eacbb67e2fb939dccd355232b078e02f06209bc847354f2db1ed49f29903d99", "snapshot": { - "packages/alpine-hotkeys/tests/format-for-display.test.ts": "ba9767ee21e978c38cf6696514172da8f4b708c8d65ced7c0e67ad306af81960" + "packages/alpine-hotkeys/tests/format-for-display.test.ts": "604a5ce5210839f7ca81fe30326cb8189d6baf5722a2882b0f2a3e01bf977d9a" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", - "outcome": "no-change", - "reason": "Test only: covers the deprecated export, the new label primitives, or the renamed label function. No guidance changes beyond the skills already updated.", - "evidence": [ - "packages/alpine-hotkeys/tests/format-for-display.test.ts", - "git diff 7d9cccc3 -- packages/alpine-hotkeys/tests/format-for-display.test.ts" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/alpine-hotkeys/tests/format-for-display.test.ts"] }, "source:packages/angular-hotkeys/src/formatForDisplay.ts": { "fingerprint": "e05fc35965fc6eb94568a33cd71fa08bc1862c87250a6449da92dd3cb7ac149f", @@ -20932,16 +20667,14 @@ ] }, "source:packages/lit-hotkeys/src/controllers/format-for-display.ts": { - "fingerprint": "32b0c53e87921c29ae3f85161dbcedbc69d9ab46abc8e05cc6380317f086dccf", + "fingerprint": "c8cd5fff083246f8bdbc2026a38685679498fc8d5e41809e3afec4e6140da7dc", "snapshot": { - "packages/lit-hotkeys/src/controllers/format-for-display.ts": "faf5d9de7deff34ad3fac7b40d6f52f062f5208b6b334a80b4a050800ec8e92c" + "packages/lit-hotkeys/src/controllers/format-for-display.ts": "98c1bab455420390ccd4f758049ad16a95a5bbe36672d72c21b2039cf55d262f" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", - "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." - ] + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "source:packages/lit-hotkeys/src/format-for-display.ts": { "fingerprint": "17ed7a91106681a350537dabef195953eddbef33ed75f1a1a2badd2587fb8640", @@ -20957,30 +20690,24 @@ ] }, "source:packages/lit-hotkeys/src/index.ts": { - "fingerprint": "9a278abb50b9ae4995af534abbba6ee6639a423cdd8533f2b54795d61d20e5ca", + "fingerprint": "59640ffd2cf1a2cb21d075caf0ad855001ad692b7f1214717227ad27a9d3c557", "snapshot": { - "packages/lit-hotkeys/src/index.ts": "50d5f57574b6048070ffd10bbb0981df5956efcd94b0dada36569d222da20a77" + "packages/lit-hotkeys/src/index.ts": "a7bf120ec7d966592a8fb9d308b4d7cc8a749ea9ae4c54c114558029a004d51e" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", - "outcome": "updated", - "reason": "Source of the deprecated formatForDisplay export, a new label primitive, or JSDoc for them. The framework skill describes the label primitive and the deprecation.", - "evidence": [ - "packages/lit-hotkeys/src/index.ts", - "git diff 7d9cccc3 -- packages/lit-hotkeys/src/index.ts" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "source:packages/lit-hotkeys/tests/format-for-display.test.ts": { - "fingerprint": "75e9b0892763fd62ec2a237c45d8287a35928a0f67c09b4a9e264de56e3892eb", + "fingerprint": "3c9483dec42cd8863a7d1f9b8124abd5cbf9cecc09ebfcf844e1a7bee0ef30c3", "snapshot": { - "packages/lit-hotkeys/tests/format-for-display.test.ts": "9d25b51951b3688ed4c239a66a3b8a373c7a71d28ea67109508e7349d6528378" + "packages/lit-hotkeys/tests/format-for-display.test.ts": "ae38534203d5c8adce14e797d6cfb60f95561116b860c2f1832d5fda0a6c0d2a" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", - "outcome": "no-change", - "reason": "Test only: covers the deprecated export, the new label primitives, or the renamed label function. No guidance changes beyond the skills already updated.", - "evidence": [ - "packages/lit-hotkeys/tests/format-for-display.test.ts", - "git diff 7d9cccc3 -- packages/lit-hotkeys/tests/format-for-display.test.ts" - ] + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/lit-hotkeys/tests/format-for-display.test.ts"] }, "source:packages/octane-hotkeys/src/formatForDisplay.ts": { "fingerprint": "9d59bb6581e5eb7f1c409e19adc0bf09511856f3f23e6bb65269fdd96ff561a2", @@ -21061,74 +20788,74 @@ ] }, "source:docs/reference/adapter/functions/bindCustomHotkeyActions.md": { - "fingerprint": "36d6d4e9751fa54aab5c20b01beb9fb7c2d4d1eababc30b66aa37b51adbf56a8", + "fingerprint": "adb3f44d87aa04109f3a8adba6a618e6e0c17f1cf1d419e50f57be0d4ce5cc9a", "snapshot": { - "docs/reference/adapter/functions/bindCustomHotkeyActions.md": "b669e24afa79a7dc5509a070f2f8225bcf80ccc32fc9a30162e27c8af982c74e" + "docs/reference/adapter/functions/bindCustomHotkeyActions.md": "f2985c1348b452bf3a026f3a0e6b217f824540e7ed57ac125bcf4e7d4c019cf5" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/functions/createFormatForDisplay.md": { - "fingerprint": "ffee0018b35c493878464354b42daa8f80b881a6e0cd6fb5518c4122754490a2", + "fingerprint": "e6a3f3f8e6adadbcb4a9a5539c3b1aeee5a0ff456bb2dbfc5d342a4df06fb263", "snapshot": { - "docs/reference/adapter/functions/createFormatForDisplay.md": "49a58aadc75c8fc3382a506291e9cde30cd9ca5eda6ccc8b9e77c5b88cc9fccf" + "docs/reference/adapter/functions/createFormatForDisplay.md": "e87f86f54fed4f463bc8bc0995e30ed57c564bf659b2f29fb12c727ea1fcfa3a" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/functions/followKeyboardLayout.md": { - "fingerprint": "25e982cad4520cb559a51acd81338e8c832aa066d103f77345306c87966d5cdd", + "fingerprint": "71c2bca96f21b584eb3a20ebbffe3a6e6cb0478da005b952f33c8fd8d8323ba0", "snapshot": { - "docs/reference/adapter/functions/followKeyboardLayout.md": "ba2f399de7a5aea33cd7810969ef8b2e702e4e68644f1d0c556a1cc71eb2bb46" + "docs/reference/adapter/functions/followKeyboardLayout.md": "ac33a1daedb1fe5ef227a87ae888a3cfd9bdd683804e3ab3bca3dab1fd817c69" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/functions/getHotkeyRegistrationViews.md": { - "fingerprint": "c229e1f20fb442bd2c380a3b918d3dc98b7e1950b466fc4b26a7b9dc6abeeb13", + "fingerprint": "48d495c7b8c32f7836610b6f218bb7ca4d7661a7ca0e5971a53213baa3d8dc85", "snapshot": { - "docs/reference/adapter/functions/getHotkeyRegistrationViews.md": "3723df870db99b7132dc3b0fc7a2f19ce4a9cb5c2ad145bb0a23c8b0021d8099" + "docs/reference/adapter/functions/getHotkeyRegistrationViews.md": "fb39d0119f6e242096de6b6e7d6e4456ff2a233ee6b7d0ba3c752fd4ff906848" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/functions/getPublishedAppHotkeysStore.md": { - "fingerprint": "b9aa5288bcb95a5f63068ba96604dd2f2de646c033ebb201a722b5ebd97ef2ae", + "fingerprint": "81b79eee1c3a506df1305b3f31d1eccadd608670f7d79b371aebe980affdca21", "snapshot": { - "docs/reference/adapter/functions/getPublishedAppHotkeysStore.md": "63ff8af4a0dba81b8439d449db084a083478a4f9604f1fb6a28ed7d35af89a7e" + "docs/reference/adapter/functions/getPublishedAppHotkeysStore.md": "c80ce01ccd66e4c89b088cd94e6807d34b7d2f3c898c4061a053dc6db558e72b" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/functions/isHotkeyHintVisible.md": { - "fingerprint": "609f3ea60f74e11c2a919e06b53cd58a42059d090752313a1a27dc6681126831", + "fingerprint": "110be93765cec3dfd818c19b8ce81a52de5e3f7728a142c3a4e1d0fdee67cc45", "snapshot": { - "docs/reference/adapter/functions/isHotkeyHintVisible.md": "7a66fa488ab46a189c7d6a500fab2b565ad016dd8d898c2b17de4e9c4832c167" + "docs/reference/adapter/functions/isHotkeyHintVisible.md": "eea11a7b3049b0c620c7873e13f4231596b223a7f89114d956047ac15b322ac6" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/functions/requireAppHotkeysStore.md": { - "fingerprint": "4e4ce17399d82dc692e9a5489dfdfe2e0403a7566736815ce0dbcf4e8b3d1150", + "fingerprint": "21c2540cf60bc03896bf325e1b4a21cb393892a8a302c0c8b015f341f65febb6", "snapshot": { - "docs/reference/adapter/functions/requireAppHotkeysStore.md": "9e3b300b3348ac1277f30e37513d2f04c0479248f9ef46578ed7ffd12169ff80" + "docs/reference/adapter/functions/requireAppHotkeysStore.md": "6d920a8ab09456abafacc12fa900027d9f80cd7248b8401fc6b96f87cc84e9b9" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/functions/resolveMaybeGetter.md": { "fingerprint": "f79fd1c027fbdb9d00ce04eb30fe7f74658c1f986eb711e3027e2383f1db7647", @@ -21143,86 +20870,84 @@ ] }, "source:docs/reference/adapter/functions/resolveRefTarget.md": { - "fingerprint": "2ba1288fa91fbe574b4d8a06b1d595cf50abcc5bdfe527d5045de9aa1e1ebb7e", + "fingerprint": "3c48737a2c2dc1734dd4ee6ed541f6e24660af7c47e2ddf7c92dbdee8e8a7add", "snapshot": { - "docs/reference/adapter/functions/resolveRefTarget.md": "a154ad1bf6c2da0f97b86d1ca6f5b178e91136d87f133ac38dc52939b7b0d55f" + "docs/reference/adapter/functions/resolveRefTarget.md": "1592da6f4a18e365197d24e367e1b30941ec64f3d924569b7ce5a18946a8a298" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/interfaces/HotkeysContextValue.md": { - "fingerprint": "b158981cf02bd525c746d80f737211c5ab1cf48c5da080c1ba7dfbebc22b8999", + "fingerprint": "fc28f7a2db12e2461af6d2344cf581102b26fc80e524d6fc4f98d7bc9fca5e98", "snapshot": { - "docs/reference/adapter/interfaces/HotkeysContextValue.md": "a84daa48a235c62bace2d63644eb1b065b68f8ae50200e5454feadc03328a247" + "docs/reference/adapter/interfaces/HotkeysContextValue.md": "3ae98b7d6ff5d20edfaa34f4fa6caadfd294958c16b1389e4ba2372dd3157ee2" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/interfaces/HotkeysDefaultOptions.md": { - "fingerprint": "8e56106e383b2f516b55f9323344550f9e8f62e9636adfd818b92612e1eaf615", + "fingerprint": "fa37500c89502c70007dcf2e9b9649424b3818fd8165050623a638b06ac70595", "snapshot": { - "docs/reference/adapter/interfaces/HotkeysDefaultOptions.md": "2440a03a5796ca09b06c9127e4b7091dc4f0c0b88c031500f0a9ad0ed3ec8667" + "docs/reference/adapter/interfaces/HotkeysDefaultOptions.md": "dc9f4d3b137a593ec279a42a570b6fbc4c84fba4f1cd0a9360c7b84788e8ae96" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/type-aliases/HotkeyRecorderDefaults.md": { - "fingerprint": "19f26acd9c6766cd442e79ec6f55564fe45857ef76824643aebc23c74f70637d", + "fingerprint": "883f9ffbbeb12171e621bfcfa5e00657e9abefe3196233bdd2b7861943ee008e", "snapshot": { - "docs/reference/adapter/type-aliases/HotkeyRecorderDefaults.md": "8139902d98b79a3f81efd0bafafb55c530698d1573404428bd46ba7725a6934c" + "docs/reference/adapter/type-aliases/HotkeyRecorderDefaults.md": "9c908d649992e3d517b56f1bdf1de89fb747c16c54bb8e6966b35cb97bd13195" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/adapter/type-aliases/RefTarget.md": { - "fingerprint": "4dd35fb845c629a7d3bd6520ace4a534b95ad15a4031343e80938cce779e7cb5", + "fingerprint": "46a3b91fe8420ff318d4237f6843d4bb41d5c4eff343ac54221a54434d5df4e2", "snapshot": { - "docs/reference/adapter/type-aliases/RefTarget.md": "1518f0132ff5ece2036b173020b5abcad54dae0a1933c29466a05a4e8d4fbf5b" + "docs/reference/adapter/type-aliases/RefTarget.md": "ba93f3737ad74245cada115f78387575e6bd2ba1224bd811baa6e75fb36604b2" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/CustomHotkeyActions.md": { - "fingerprint": "1f3ad8b7a7e059df892d8a38dbafb10725b18a0c2e72583fac5cda78d127c080", + "fingerprint": "e56521ab19f7ea9d8b12993777dc25907a4f90072f64925b65e919d759bff601", "snapshot": { - "docs/reference/interfaces/CustomHotkeyActions.md": "aecd0c777e789268e965ed68469751a92315116c9ae56069c1534c192d12da50" + "docs/reference/interfaces/CustomHotkeyActions.md": "a541f66cec4103043eeb69c6237cb1500f262a24b88be23fed2ec604428d625a" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/HotkeyRecorderActions.md": { - "fingerprint": "f1108c33474062e068f45fcc6eff0682205bf8ac0d3117ab99c3446ba53a7c1a", + "fingerprint": "2aeefdedab9d46b9cdc15bfc543502e5aa8ea404b114b1cf306cab75617dfd22", "snapshot": { - "docs/reference/interfaces/HotkeyRecorderActions.md": "1f5c9badf9c7225dd8b7db03c43c8138f8e85542b60c46fe5d30ce5e6c64dfa3" + "docs/reference/interfaces/HotkeyRecorderActions.md": "d87be1bca835982cc00ff2a82890d31e49a5d12c1051400bb2177080adc6e36f" }, - "head": "286b48df78ba09ed5ea5f5335055e177b1249d30", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Doc comment and guide wording on AltGr and portability; skills state neither.", - "evidence": ["docs/reference/interfaces/HotkeyRecorderActions.md"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/HotkeyRegistrationsResult.md": { - "fingerprint": "7918003d1f9c7f2b8f7596d384408697210a4a4a42f42daba14e27f0b0f0748f", + "fingerprint": "ff6392c2f03f62ba975264d6ab2c09a2f42471ed6ba260aa3f5663a8a11b5ca9", "snapshot": { - "docs/reference/interfaces/HotkeyRegistrationsResult.md": "7c2f0ea95e2f07f06cc5930e34fc79eab3b5dc3b4ee98b16d43a449343386724" + "docs/reference/interfaces/HotkeyRegistrationsResult.md": "96b2c82c28c983cf735346b3e5e83e7017a11ab94b0beac31077f45ff322fc2f" }, - "head": "75b6c798a9a07d3f902d5899b5536220ea30ceec", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Docs, tests, and the ignoreInputs auto resolution for function and media keys; the core skill covers the rule.", - "evidence": [ - "hotkeys-core SKILL.md defaults row updated in the same change" - ] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/KeyIdentity.md": { "fingerprint": "46885e2ce6f4b0697372e058a902f4df9526f7a9c0141ea4a5c48ce2996ae2d2", @@ -21269,14 +20994,14 @@ "evidence": ["Core, adapter and e2e suites; battery 159/159"] }, "source:docs/reference/type-aliases/RegisteredAppHotkeyListItem.md": { - "fingerprint": "73798e8f09cab64b6355ba96f1d02250fe1130ea3d40ad54f657897b43a4a3ca", + "fingerprint": "d4becc16f9f77bf55d4400bbc09ebf3ead5ffd984f6ea7d41ef32472909ab9fc", "snapshot": { - "docs/reference/type-aliases/RegisteredAppHotkeyListItem.md": "baa77d61c0444d50050e02f64d0becd9f2fe45cde853a21d5b87eac0ce20aefb" + "docs/reference/type-aliases/RegisteredAppHotkeyListItem.md": "acbbcd5120729cf3138850c25ad6f6d01e2c06242970e56c6ce1765255cb9add" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/type-aliases/ResolvableModifier.md": { "fingerprint": "fcb4596a0b2b6fea6a50fc233100d68908142fd1c1c40254655601e6cce29489", @@ -21579,124 +21304,104 @@ ] }, "source:docs/framework/alpine/guides/keyboard-layouts.md": { - "fingerprint": "253ea4e8fb5d80dde8409f5fc4b5bf914746ba0e7c51959cfd4cc3a75eb761a9", + "fingerprint": "c020741d838804d38460febf4899b2e33e3e9e2a71955106c9330afaf9462553", "snapshot": { - "docs/framework/alpine/guides/keyboard-layouts.md": "aced1af0117a785893e3f98da19e99301087e741eedfd48c704f3d3385e53cc0" + "docs/framework/alpine/guides/keyboard-layouts.md": "b56eb2037a30686bea36e4232f546c794b1ce04d2717f4472a055b1c3f42fbd7" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/alpine/guides/keyboard-layouts.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/angular/guides/keyboard-layouts.md": { - "fingerprint": "9d00d87f1ce4978a755064bf8d6f1a8669a5a9128c901b2cfc2cfe924acb49f7", + "fingerprint": "c0b8d094d6b62161103bc875f77756f5c7ee8c12356e9a424df9a63b6ed50287", "snapshot": { - "docs/framework/angular/guides/keyboard-layouts.md": "f5a33f1ce82e0ba9a0b22e3fc4c1ac142ce4039150b97cd40f67fc11235efa25" + "docs/framework/angular/guides/keyboard-layouts.md": "f7103ecb6af00db12783872678911525a7c165200af4b15511ce8ee599922f6d" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/angular/guides/keyboard-layouts.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:docs/framework/ember/guides/keyboard-layouts.md": { - "fingerprint": "cd86ccb77cc93a26a9ffb717f1aa58cd1f49496f563d6351ce19cb944e3996f3", + "fingerprint": "b84a93bfc7d5d6e78070e440d59b7e252ae326bd6f8c98943895a6f895e4d9f0", "snapshot": { - "docs/framework/ember/guides/keyboard-layouts.md": "ca39ae71b508cc807020c741121f41cf7625768d71040ffffcbfe64034a03667" + "docs/framework/ember/guides/keyboard-layouts.md": "9cacfddd9e3938bff55a5cc70c4ea4c08b995b4a374058627b9c84c294a91b43" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/ember/guides/keyboard-layouts.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] }, "source:docs/framework/lit/guides/keyboard-layouts.md": { - "fingerprint": "bfd50a8d321b35a5d93d9229ab6393796775a921359f50aed6b409b2100a910e", + "fingerprint": "8ee304370e7a83605bd8980df37f4eed15ae8eefc552289fb9f9f5fa9047eb3b", "snapshot": { - "docs/framework/lit/guides/keyboard-layouts.md": "d899c6e207e7256231d7f7da265aac2f9439af4593eb29032a4c63c4808dc889" + "docs/framework/lit/guides/keyboard-layouts.md": "17b93123e833510d321e8c0da511734059d56aa26d9c1f339a5b0055750b9de9" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/lit/guides/keyboard-layouts.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "source:docs/framework/octane/guides/keyboard-layouts.md": { - "fingerprint": "29b215a5cacfc0eff6ac80ef47c15e6192ad4959a057a357bfc9617cca84f21e", + "fingerprint": "1239aedbe4f9da8735ffa938a1012081207b4f476dfa32770b2c9b2281cc50e8", "snapshot": { - "docs/framework/octane/guides/keyboard-layouts.md": "84eb30c654781524a591cd334e68cbf17a2ec2a84cee3eebe477ec47b53a5038" + "docs/framework/octane/guides/keyboard-layouts.md": "962fa8962851bba4680274ef9eb5fe51ea442cce86b55455a7a4f53c6c5fe334" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/octane/guides/keyboard-layouts.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] }, "source:docs/framework/preact/guides/keyboard-layouts.md": { - "fingerprint": "d136a201d0cbed1888cdb805d637faf1d6ae85599663e6b32763122129526996", + "fingerprint": "bb44bb22283d8cc4f515a56294be2aaa88e8f4d3d087058e8b8f9ae770f49227", "snapshot": { - "docs/framework/preact/guides/keyboard-layouts.md": "a24bbaba323af079701377279a270188568bb2ac04b799bab95f87b741d599be" + "docs/framework/preact/guides/keyboard-layouts.md": "5cc804ffe00bb55f1a2c98728900214b3900217f305e2412f427ac15839a3c76" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/preact/guides/keyboard-layouts.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] }, "source:docs/framework/react/guides/keyboard-layouts.md": { - "fingerprint": "b3c4be764bf4e44b1e6edb5472c2f2f52a43d293bea4f59e8aeff72f876d1783", + "fingerprint": "38bd1fc827d955f3b409bf13ba30807af91b615d0c962e191913e7cf976efb91", "snapshot": { - "docs/framework/react/guides/keyboard-layouts.md": "0fe7d4325d3c8c8c225c1b1f0dd46256e462459fdfe4d18b886059352a600882" + "docs/framework/react/guides/keyboard-layouts.md": "6811311ff3662da0f72dc487aff26b2e085172f66a32c19e18deb52cee0ff76e" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/react/guides/keyboard-layouts.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] }, "source:docs/framework/solid/guides/keyboard-layouts.md": { - "fingerprint": "3fd7a45497db9797dbf36d5f69b4f622d472750d6afa03386072dba15fade966", + "fingerprint": "4f41d201f19bcdcd083dbe681b47e91895f99c965e8608723aea88789b9122d6", "snapshot": { - "docs/framework/solid/guides/keyboard-layouts.md": "35227ada773d0b310ad92261e226a2f2e3bad3ba5150d905064bd495b7be5dbc" + "docs/framework/solid/guides/keyboard-layouts.md": "bf909bc1b5e8cb387fe67427096ffbd3041d8812ed352568f4f7f36c3eafafda" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/solid/guides/keyboard-layouts.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/guides/keyboard-layouts.md": { - "fingerprint": "15730ebdec60482a177ed612deea9efdf17136955b9323585368584045e21b5e", + "fingerprint": "48a08a69cfdea5e06487545141b5bf2a03144741702c50e59bc7c40b777962f8", "snapshot": { - "docs/framework/svelte/guides/keyboard-layouts.md": "8a6cb5ed90288e0389a89625a7d87b0b4684075799aacc27ace86e333cbeb672" + "docs/framework/svelte/guides/keyboard-layouts.md": "0cf8a94700b04b4c6b3369519963f46f347e191ca24dac728ee5fc1cc0537c04" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/svelte/guides/keyboard-layouts.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/vue/guides/keyboard-layouts.md": { - "fingerprint": "4fbcd08dc1f26f94d218621df6512b68e8b6d64b33741148c64a74431648e2ee", + "fingerprint": "e917922a37d5fc81c564771524c46982449136cea7150e78e06eb487b8c677fd", "snapshot": { - "docs/framework/vue/guides/keyboard-layouts.md": "552e50c2fa171785b211f230c9e836cd0c43b6de8b7f3374aa33b5a5a42919f6" + "docs/framework/vue/guides/keyboard-layouts.md": "7fec196c6ed029509dfbd1916b5b42948180a4c7214511a8907e7de66dacfa3e" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Documentation reorganization and prose rewrite only; no public API, option, or runtime behavior changes, so skill guidance remains accurate.", - "evidence": [ - "Changed: docs/framework/vue/guides/keyboard-layouts.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "source:docs/reference/type-aliases/AustrianKeys.md": { "fingerprint": "27b4af312d84c395f3b407576e87b723e52185b5e0d52ea54174b9059271a0fd", @@ -23761,14 +23466,14 @@ "evidence": ["Internal file, not exported"] }, "source:docs/reference/adapter/functions/syncRecorderOptions.md": { - "fingerprint": "d4a3c9efa98cb76cfa16c4e2249dd4fb08b771474a7deafe50f1ad56f4fd0933", + "fingerprint": "7a513d83fb5db5530344074abf381d9521058b25efeb60fe1f689ed589353cae", "snapshot": { - "docs/reference/adapter/functions/syncRecorderOptions.md": "44e774550383a77daa878ba63a4dae18708674a5fe794c1da12d32dabaa56f5e" + "docs/reference/adapter/functions/syncRecorderOptions.md": "d8e5696dfdb8c74728d394440b01127bed721d186b311135145f6b242e46231c" }, - "head": "fc48fc09f82cd285da5e0991948d604cec2a3263", + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", "outcome": "no-change", - "reason": "Recorder lifecycle fixes, examples and guides; covered by tests.", - "evidence": ["Core 2,001 tests, adapter suites, e2e"] + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:examples/alpine/createHotkeyRecorder/index.html": { "fingerprint": "41b5dacf9525c20d9cfc3cbd7ced828fee057327261012a22b675433f8356550", @@ -23931,6 +23636,606 @@ "outcome": "out-of-scope", "reason": "Source, test, CI, or generated docs change; the skills that cover it were reviewed in their own items.", "evidence": ["packages/ember-hotkeys/src/tracked.ts"] + }, + "source:docs/framework/alpine/guides/accessibility.md": { + "fingerprint": "d5eb308b46048f32d0d392688113d0fb0e4864ee3d28613bf580f51e181cada8", + "snapshot": { + "docs/framework/alpine/guides/accessibility.md": "4cf9282ea9bf8320fa4367351bda13141d2ba2643b63f38dbab0fce4ffa2c5c8" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] + }, + "source:docs/framework/alpine/reference/variables/formatForAria.md": { + "fingerprint": "92de8fb3e13f1cc795b8a61b36a67a832184936d5d7878a8517ccd44dd736926", + "snapshot": { + "docs/framework/alpine/reference/variables/formatForAria.md": "d1084ef50b1e83f25c89c33fe6baad202f8b5072abf24ee5edcf1a5c1183c9d8" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] + }, + "source:docs/framework/angular/guides/accessibility.md": { + "fingerprint": "832ef7d04675e3472b74a0fc28aa833dfbc1e148265c1fc452d840622520583b", + "snapshot": { + "docs/framework/angular/guides/accessibility.md": "a038f64752498cb2276ae91ba2170c9d7f2e5626b7bda7298f777c14fd4e6350" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] + }, + "source:docs/framework/angular/reference/functions/injectFormatForAria.md": { + "fingerprint": "0d46058c1dd7eaf59e43a97b6d24f256fb8a987f04d4e9ef03a4e53ea2a54ceb", + "snapshot": { + "docs/framework/angular/reference/functions/injectFormatForAria.md": "92c698f3a3051895d92b173b2d89db1470a3fd3000f73088c667690d33f855d3" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] + }, + "source:docs/framework/angular/reference/variables/formatForAria.md": { + "fingerprint": "0fc4c115b6056422159fbd0631452fdd36b2717f4c422fb2db25d97f21a44a46", + "snapshot": { + "docs/framework/angular/reference/variables/formatForAria.md": "ebc6008021d4e956ffb7bf3b1ede395b9982dd1f4505b76ba7274e98ef059911" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] + }, + "source:docs/framework/ember/guides/accessibility.md": { + "fingerprint": "6b893c03529296e4313346919d1fa3ca8781f1f062303c98f908777089741a18", + "snapshot": { + "docs/framework/ember/guides/accessibility.md": "480c6eb526efd587f7b2e155d3e642095a8048a327c4007f940e8aa117e10d10" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] + }, + "source:docs/framework/ember/reference/functions/useFormatForAria.md": { + "fingerprint": "bcb8150341631306fff4952cdc417b7fa45fe7dcd41ef7282ef8c377898a2f61", + "snapshot": { + "docs/framework/ember/reference/functions/useFormatForAria.md": "6c1ca21283466c34bcd32d3d88b8cbb3a66a78406182724a1e12e76033c0198d" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] + }, + "source:docs/framework/ember/reference/variables/formatForAria.md": { + "fingerprint": "179ef93cc90820cc3714c376d4cfe0fd7ce6ef1ace0a4a7cb1208900a8ed3d96", + "snapshot": { + "docs/framework/ember/reference/variables/formatForAria.md": "33297e90a2930e5f8cc922264e722f04fee1a56c5b456d8a488c4c216af00c4e" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] + }, + "source:docs/framework/lit/guides/accessibility.md": { + "fingerprint": "eb20b5b4224a39dce4bd8e5d2ef44880abf893ba9a870e20350273cf83b0dd34", + "snapshot": { + "docs/framework/lit/guides/accessibility.md": "4e8d78648586763c11d9f585315ce1a11aab09f3294b7bebbf9e571cf263d6c8" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] + }, + "source:docs/framework/lit/reference/classes/FormatForAriaController.md": { + "fingerprint": "17ff8724fdcf1559246da9adeebd87f7f5b057f6447c9fef275314f74b1404aa", + "snapshot": { + "docs/framework/lit/reference/classes/FormatForAriaController.md": "a47b80847a76bf2869896c35856bbb2b77200e0295a47fd71435c4254be625f4" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] + }, + "source:docs/framework/lit/reference/interfaces/FormatForAriaControllerOptions.md": { + "fingerprint": "b5f0b0ff2c2f2f35d3ddb26222decbd86f892cd5ae32042f84c44f49aa9729ad", + "snapshot": { + "docs/framework/lit/reference/interfaces/FormatForAriaControllerOptions.md": "6706454f0c4beaf667609e19c538e6e9efcb6858fb1fe7ba66db3608c89f7cfa" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] + }, + "source:docs/framework/lit/reference/variables/formatForAria.md": { + "fingerprint": "1df4be43e65e6247fdc1234ad228fa57783ed307c62f93dce99a5661b3b8617e", + "snapshot": { + "docs/framework/lit/reference/variables/formatForAria.md": "9695c997982a397627f1a33c434024e19b5a23f09d9b2688d2143a56924a9c28" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] + }, + "source:docs/framework/octane/guides/accessibility.md": { + "fingerprint": "74baebd825dc169786c8dd968badf6a9f99f6b1713ccf9baa650c0c8ed1444da", + "snapshot": { + "docs/framework/octane/guides/accessibility.md": "3be7dbbe45709dc393d15ef76dfd13a8b6cba20fa6b8a41856f6ce61474956e4" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] + }, + "source:docs/framework/octane/reference/functions/useFormatForAria.md": { + "fingerprint": "96a9e316c5669f1c06a32f0a3947b9a509d4e065cf08acd6e389cf8a6e811946", + "snapshot": { + "docs/framework/octane/reference/functions/useFormatForAria.md": "1cfffca44cafa8b6e3749bfd808bec39e5a86f84203c1bf348974d9a92c68a77" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] + }, + "source:docs/framework/octane/reference/variables/formatForAria.md": { + "fingerprint": "9bf09d55635c32a4a52eac8d4472a92504dd1ec2c55fef0bac049349b435c74d", + "snapshot": { + "docs/framework/octane/reference/variables/formatForAria.md": "f22323fa1ec897af5dc733e4fb88249f94f16f6bf5741e7406f341dd717bb02b" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] + }, + "source:docs/framework/preact/guides/accessibility.md": { + "fingerprint": "370ac18a4e05c3f7a5d1a2d19cd331c30fd29dfe1fb440e5d079cc42e48302ab", + "snapshot": { + "docs/framework/preact/guides/accessibility.md": "b3c49869976cbc2e63129e4443245b881d8614fa8d6e575814f67315e65efe44" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] + }, + "source:docs/framework/preact/reference/functions/useFormatForAria.md": { + "fingerprint": "4ba2373218c1ece7541ad48767d1fd78acdf5fcec5d4664a8d4a71470b33f836", + "snapshot": { + "docs/framework/preact/reference/functions/useFormatForAria.md": "e700b92366cf0a7c92989da3f0265df1471f5265ddac3e55950ad1dcf5f5395b" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] + }, + "source:docs/framework/preact/reference/variables/formatForAria.md": { + "fingerprint": "211ed7c26a85d64457d6ad80d0d3420b030a08ee33edd1b87beef33f72ee1acf", + "snapshot": { + "docs/framework/preact/reference/variables/formatForAria.md": "f22323fa1ec897af5dc733e4fb88249f94f16f6bf5741e7406f341dd717bb02b" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] + }, + "source:docs/framework/react/guides/accessibility.md": { + "fingerprint": "c63bf6af0080e07bb793587a8954ee7c3126b2b0e736f9fdae9b6b1094e1ddb5", + "snapshot": { + "docs/framework/react/guides/accessibility.md": "92fdec1ed4173f95ac2cb5e3790740eb137347f10d5b194fa95a87c93038cba4" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] + }, + "source:docs/framework/react/reference/functions/useFormatForAria.md": { + "fingerprint": "aa06bb2e99c59d878e2bff188bedc5a33fa9e2f67118eef77386654c6f85f864", + "snapshot": { + "docs/framework/react/reference/functions/useFormatForAria.md": "631e747991600e12cf98fd38909af7dd0e6d76a788c3146a3f39dcd30a03fa26" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] + }, + "source:docs/framework/react/reference/variables/formatForAria.md": { + "fingerprint": "187c1958448f9f2a370a9cb214820610fbb0ccc0133ff6aa4ad1d1adf4c89edb", + "snapshot": { + "docs/framework/react/reference/variables/formatForAria.md": "f22323fa1ec897af5dc733e4fb88249f94f16f6bf5741e7406f341dd717bb02b" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] + }, + "source:docs/framework/solid/guides/accessibility.md": { + "fingerprint": "b3c317edaa4424cd1f8bd850a8dee1be813574421def46f74fbae4891b6a6f88", + "snapshot": { + "docs/framework/solid/guides/accessibility.md": "96393b5388d291990e8fd127efcb2788c36b0adb05a4d4cccf8dd8ae80ea3f3b" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] + }, + "source:docs/framework/solid/reference/functions/createFormatForAria.md": { + "fingerprint": "1b163c3599ee87f8cade77a6aa89533247b470599142ce90011d2662c62dfbf2", + "snapshot": { + "docs/framework/solid/reference/functions/createFormatForAria.md": "49f309c0ea46d9423921e8d214dc7cb24d3e4e6520ffb19d4898cfe01aa369b9" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] + }, + "source:docs/framework/solid/reference/variables/formatForAria.md": { + "fingerprint": "78f4eff9b1bf93b5c82b586c704eb21bd4098980c7808d9f23c8d6e0abe54888", + "snapshot": { + "docs/framework/solid/reference/variables/formatForAria.md": "23e2f41d87c28c950397ac5ba6fdf55c04728e3dcb90b7f8d811c356ae30c7af" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] + }, + "source:docs/framework/svelte/guides/accessibility.md": { + "fingerprint": "51044a5b7f269e8193ac7a578a84207761b07865eb69cdfc063d814eb9498e61", + "snapshot": { + "docs/framework/svelte/guides/accessibility.md": "33dc227eb879ca8a67976657c7b0cd5d3fb93474a896c03e16efbcd1c650a805" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] + }, + "source:docs/framework/svelte/reference/functions/getFormatForAria.md": { + "fingerprint": "4eb713b0cf89372b76cb509b61eebbc7a2fc2d580c0c1202aa13960b88443122", + "snapshot": { + "docs/framework/svelte/reference/functions/getFormatForAria.md": "0f4bc6f18a336b684b28a7e0d176498bc8a37d8704676a83e8bf727a55ed7935" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] + }, + "source:docs/framework/svelte/reference/variables/formatForAria.md": { + "fingerprint": "1ed9d8404b0a98422f6a30fdb778fb86f53a6567e58258b8bea50d26ee10ed15", + "snapshot": { + "docs/framework/svelte/reference/variables/formatForAria.md": "d6f9b400f738be9fd533e6f768f648524b88fd4ab464c04914684b5a40254b58" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] + }, + "source:docs/framework/vue/guides/accessibility.md": { + "fingerprint": "98b204126d70a8a5c3adf05efee7494ba191caae4c325c810c6d2fa28fa07eaf", + "snapshot": { + "docs/framework/vue/guides/accessibility.md": "b4fcbf09393139823ff44c77588b88421c41d0a58e85e830b991add96fbc9de3" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Guide change for formatForAria, suspendCharacterKeys, the Accessibility guide, or list wording. The skill reflects the API changes.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] + }, + "source:docs/framework/vue/reference/functions/useFormatForAria.md": { + "fingerprint": "8a2ecb829f38ccb927a7dabdcff4f75435458d897136fc0990c0cebaa5ece294", + "snapshot": { + "docs/framework/vue/reference/functions/useFormatForAria.md": "d7456becf080cced82b7ca74ca7e91f68c56b8cddc3db8b0aaaf78099ef83157" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] + }, + "source:docs/framework/vue/reference/variables/formatForAria.md": { + "fingerprint": "6107dc0d21805de6acce7d42f4afa8ec97de21aab425183d8bfce110014043b3", + "snapshot": { + "docs/framework/vue/reference/variables/formatForAria.md": "f22323fa1ec897af5dc733e4fb88249f94f16f6bf5741e7406f341dd717bb02b" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] + }, + "source:docs/reference/adapter/functions/createFormatter.md": { + "fingerprint": "d62db71d21a3822264cc84c91e69a83f431e0ab51dc41a691665abcdfeacd00a", + "snapshot": { + "docs/reference/adapter/functions/createFormatter.md": "1ce2b36f8cc604a25e6c05c3ca398508d0b2b3c4463483a9764ffff72ffb1e35" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] + }, + "source:docs/reference/functions/formatForAria.md": { + "fingerprint": "ff7be307254f159234fdd8bb1a4f73bf122697e3d09d5e766c5eb339b1c12fa5", + "snapshot": { + "docs/reference/functions/formatForAria.md": "f35ba0801e7ed2f69e418385ae9a774c65936796d2d08539d64ff23d46ff8c55" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] + }, + "source:docs/reference/interfaces/FormatAriaOptions.md": { + "fingerprint": "61fb1fa90e0f9ccd6d7f0d162268fe50097cda11e3d4a49a986ae0a6fca948b6", + "snapshot": { + "docs/reference/interfaces/FormatAriaOptions.md": "764a2dce82318ea09f14f97db9be125ca1ffc2f821c74731c85d817afeb997f2" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] + }, + "source:packages/alpine-hotkeys/src/createFormatForAria.ts": { + "fingerprint": "c3a80076b68117afa2d89e4fff7771d2a4b33cff8b1bdcaa03a15027d987889d", + "snapshot": { + "packages/alpine-hotkeys/src/createFormatForAria.ts": "a869a04c473ad43bb93321f68bbc98902e9dbaa8404ab6dc1d0d59067abb5487" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] + }, + "source:packages/alpine-hotkeys/src/formatForAria.ts": { + "fingerprint": "61b2fd1d52404373c5ce966d819f36d2745ae5415246367fb30c73b5a76c7992", + "snapshot": { + "packages/alpine-hotkeys/src/formatForAria.ts": "63bcee76264e6dda1876981b4b105db9d966c2841a13f2f5af52523f1d554a5a" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] + }, + "source:packages/angular-hotkeys/src/formatForAria.ts": { + "fingerprint": "31bb4a5eb70d2858d8c8b636fc64501fc2681076349677110a7bc2b54b1a7468", + "snapshot": { + "packages/angular-hotkeys/src/formatForAria.ts": "338c41d41e116ae16ae4027c16aaa6c269b85a847af6d5d3d8aaaeccebb7bb6b" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] + }, + "source:packages/angular-hotkeys/src/injectFormatForAria.ts": { + "fingerprint": "574c9626668ff6294b07da48421d38fae7cbf8d629013782a1cf5b51791e050d", + "snapshot": { + "packages/angular-hotkeys/src/injectFormatForAria.ts": "6e33051a6606bdca8b174fa2b7cd4839b20867e3017ce93d15c4d3deb5e88115" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] + }, + "source:packages/ember-hotkeys/src/_formatter.ts": { + "fingerprint": "b405c286b96b79adecf4ecc1c3bd5bb6053ebc2609a37ec1105cd75e75070218", + "snapshot": { + "packages/ember-hotkeys/src/_formatter.ts": "67e5325dfb7a7333ab856ef8190f5aae5c8e2e9435ac20ff15a39df87c246c4a" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] + }, + "source:packages/ember-hotkeys/src/formatForAria.ts": { + "fingerprint": "d48a8200307a8542711ac4efdf6350fedd39cda00c898c953acee9e630373793", + "snapshot": { + "packages/ember-hotkeys/src/formatForAria.ts": "9f74496a4b0dbe18f480a2ff2aa9e53922ae59e1d445f07e89f9ed4ce07a1b1b" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] + }, + "source:packages/ember-hotkeys/src/useFormatForAria.ts": { + "fingerprint": "b5728308e8a148cc766c90a2dda47154753cbdae16d73b14427e76f21e93fbc7", + "snapshot": { + "packages/ember-hotkeys/src/useFormatForAria.ts": "af75261400ac137e34466d7dacf26e4828c60adc1d78ebc7ab0c3257ee23b005" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] + }, + "source:packages/hotkeys-devtools/tests/scopes.test.ts": { + "fingerprint": "5047ab50b4d81f98c28e1008bfcab4d4d52490b382714c68213f7a0ddfa9c13e", + "snapshot": { + "packages/hotkeys-devtools/tests/scopes.test.ts": "3d0f9c2bd1f1646c1f936d51d07e3dfd5b9a4f4ba07ce94df41af85e5a51a40d" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/hotkeys-devtools/tests/scopes.test.ts"] + }, + "source:packages/hotkeys/src/_constants.ts": { + "fingerprint": "e93c3fbf892b223519c4b2dd925f18d2316f61325ac6e6bb1f4f16faa281d055", + "snapshot": { + "packages/hotkeys/src/_constants.ts": "46d87732561d2fd1e223a6d32926ef685f3d203d41a3581e639c99b9e3442b06" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Internal change: the private constants move or the character-key classification behind suspendCharacterKeys. The core skill covers the public behavior.", + "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] + }, + "source:packages/hotkeys/tests/character-keys.test.ts": { + "fingerprint": "bb7d60b2c5fee7916c952b6bfab5c60437773dfd700a3ed95d7132983b309886", + "snapshot": { + "packages/hotkeys/tests/character-keys.test.ts": "30fe57e0f30c65f70b86d1392639acc5e15507d0eefc47542cda5a7b6ee3f953" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/hotkeys/tests/character-keys.test.ts"] + }, + "source:packages/hotkeys/tests/format-aria.test.ts": { + "fingerprint": "936683399d967688a30fe507bc842c3b904dc06263c0ee2d04ac11efa80961af", + "snapshot": { + "packages/hotkeys/tests/format-aria.test.ts": "28764fdd66d041f8d423bba3f8b43e0d1bb238c38b9fe5e1fb8b288a605aef67" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "out-of-scope", + "reason": "Test change; it describes no library behavior the guidance covers.", + "evidence": ["packages/hotkeys/tests/format-aria.test.ts"] + }, + "source:packages/lit-hotkeys/src/controllers/_formatter-layout.ts": { + "fingerprint": "4616ce6fbdf571f407f289cbcaae2a7f559c5c86242b1e7a7df23492ccc97ff7", + "snapshot": { + "packages/lit-hotkeys/src/controllers/_formatter-layout.ts": "ac3f0bc2dccb18fb0d09ebd8e13a7a00d8025e5d03e1bbf0e900b1ea3e85e06b" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] + }, + "source:packages/lit-hotkeys/src/controllers/format-for-aria.ts": { + "fingerprint": "7ef0e62e48363fe38a8ff1e1e8036a402ec48ee032356666b6055d7991f40538", + "snapshot": { + "packages/lit-hotkeys/src/controllers/format-for-aria.ts": "e3b007c95c843fd16f5b589740782c814ad71f791a4ae6422da183741f057ae2" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] + }, + "source:packages/lit-hotkeys/src/format-for-aria.ts": { + "fingerprint": "f65577d2b3a3f95263e0a99053f98ded79235826c8eb9c151d29e7b1b9538926", + "snapshot": { + "packages/lit-hotkeys/src/format-for-aria.ts": "d753255b3ecf379a776c786aea40e154e6c30ddf4617aa2f923db37f20caa7e3" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] + }, + "source:packages/octane-hotkeys/src/_useFormatter.ts": { + "fingerprint": "7da8bb4bf8e55f885fedf4a82570718b669ce437b6161a564d2e58b80e0a05e6", + "snapshot": { + "packages/octane-hotkeys/src/_useFormatter.ts": "1bd481fb85c7cb4a2b4d1f7e201e60cd2da5c672a119fe9f5bdd4637afb9f853" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] + }, + "source:packages/octane-hotkeys/src/formatForAria.ts": { + "fingerprint": "23ab277d126bc85c261680cfc3cabf85b36c83d69f44b2b822221bfdbae985b1", + "snapshot": { + "packages/octane-hotkeys/src/formatForAria.ts": "6bb0ec44d0efa9ca16bce502f4e011f4fbd9847e26fd2d07a674a47200ef92d4" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] + }, + "source:packages/octane-hotkeys/src/useFormatForAria.ts": { + "fingerprint": "4724b430d7dff1e35e1f59733959651bfc9656e23f01aca2d54d2b8a10615ed5", + "snapshot": { + "packages/octane-hotkeys/src/useFormatForAria.ts": "9607c4e4b334b3bab57e69c26355f34d281a413fa9d919e2a1368b2b7af81b9c" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] + }, + "source:packages/preact-hotkeys/src/formatForAria.ts": { + "fingerprint": "4d109e51e1d68403460d4b58de1fab61fd4b6ed45c8142cfab2c5f17c307eacf", + "snapshot": { + "packages/preact-hotkeys/src/formatForAria.ts": "6bb0ec44d0efa9ca16bce502f4e011f4fbd9847e26fd2d07a674a47200ef92d4" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] + }, + "source:packages/preact-hotkeys/src/useFormatForAria.ts": { + "fingerprint": "19e5bd0760f2dd57a82635f50b0adf8ed15b8404a39794288320e36bfb6de54b", + "snapshot": { + "packages/preact-hotkeys/src/useFormatForAria.ts": "36ab3b5af441ac5b095c9899fd0ba1687cf89cef7bbca711666bf8044c83c320" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] + }, + "source:packages/react-hotkeys/src/formatForAria.ts": { + "fingerprint": "54b187d7738d5c9f3d60d0a068ae595bc396c308bb30108887fbd39c1b37e284", + "snapshot": { + "packages/react-hotkeys/src/formatForAria.ts": "6bb0ec44d0efa9ca16bce502f4e011f4fbd9847e26fd2d07a674a47200ef92d4" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] + }, + "source:packages/react-hotkeys/src/useFormatForAria.ts": { + "fingerprint": "215b7f00a193e0b4f27825efc5e1796b5eba541e2b34bc6ae58bed977de8422b", + "snapshot": { + "packages/react-hotkeys/src/useFormatForAria.ts": "41b026b42f6927f42cbc518e557fcfce30eb52599f76f1441ace4c5d7735cefa" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] + }, + "source:packages/solid-hotkeys/src/createFormatForAria.ts": { + "fingerprint": "2bcd8d7cb47e89db84ef08bf527dbad1208d9f64397c6e9c2d4cfe2b355dc8c1", + "snapshot": { + "packages/solid-hotkeys/src/createFormatForAria.ts": "4f72521a71ca59f036baa0727164a7f389abbfdc7186fe20aa370eef877194ed" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] + }, + "source:packages/solid-hotkeys/src/formatForAria.ts": { + "fingerprint": "4bdbe76d2531d0664b9e8cf32ab63df86325791fb0c1904a711e3dde6e8c5c47", + "snapshot": { + "packages/solid-hotkeys/src/formatForAria.ts": "b93cbd426610f7da3ff59907cc0c7856d840911c8cf2f552bace04c1d040c3e6" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] + }, + "source:packages/svelte-hotkeys/src/formatForAria.ts": { + "fingerprint": "02a35c623c5de1f998208662f36abd9f6f36c2d885a1f22f2c4187d472568a81", + "snapshot": { + "packages/svelte-hotkeys/src/formatForAria.ts": "2302f456c8cd63ac5c408284c9ac313367995132fd635cfaad4bbac7be17d23a" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] + }, + "source:packages/svelte-hotkeys/src/getFormatForAria.ts": { + "fingerprint": "9cba30301cd04e94b963b48201b2f22b573f720ae3c76b1ccacd9c05c13175f6", + "snapshot": { + "packages/svelte-hotkeys/src/getFormatForAria.ts": "a00409cf405346f91e90aba28a1f7ca6cfca43a100af44627304fe3f71e7c960" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] + }, + "source:packages/vue-hotkeys/src/formatForAria.ts": { + "fingerprint": "752b6edcb7222c7aded06395c0565cd1b0954ce7608473100fd6f49086d4ab77", + "snapshot": { + "packages/vue-hotkeys/src/formatForAria.ts": "6bb0ec44d0efa9ca16bce502f4e011f4fbd9847e26fd2d07a674a47200ef92d4" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] + }, + "source:packages/vue-hotkeys/src/useFormatForAria.ts": { + "fingerprint": "1087ff3ce3ff543d6602b63fc5c1cbba8bd2ed48033e4ae55f6bd5e71f151244", + "snapshot": { + "packages/vue-hotkeys/src/useFormatForAria.ts": "6275f7ce0f365ab3793d67dd3bb87ec021ba8b519c0ccf4fd65115fac49a060f" + }, + "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "outcome": "no-change", + "reason": "Source for formatForAria, createFormatter, or suspendCharacterKeys. The skill's updated rows cover the change.", + "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] } } } diff --git a/_artifacts/skill_tree.yaml b/_artifacts/skill_tree.yaml index c5523473a..4ca3eeaa9 100644 --- a/_artifacts/skill_tree.yaml +++ b/_artifacts/skill_tree.yaml @@ -109,7 +109,6 @@ skills: - src/useHotkeys.ts - src/HotkeysProvider.tsx - src/useAppHotkeys.ts - - src/utils.ts - TanStack/hotkeys:docs/framework/preact/quick-start.md - TanStack/hotkeys:docs/framework/preact/guides/hotkeys-provider-and-scopes.md requires: From 4c73ae775cc52a41a1ba05a60750cfed3de991a1 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 28 Nov 2026 00:32:31 +0000 Subject: [PATCH 05/13] ci: apply automated fixes --- .../alpine/reference/variables/formatForAria.md | 2 +- .../reference/functions/injectFormatForAria.md | 2 +- .../angular/reference/variables/formatForAria.md | 2 +- .../ember/reference/functions/useFormatForAria.md | 2 +- .../ember/reference/variables/formatForAria.md | 2 +- .../lit/reference/classes/FormatForAriaController.md | 12 ++++++------ .../interfaces/FormatForAriaControllerOptions.md | 6 +++--- .../lit/reference/variables/formatForAria.md | 2 +- .../octane/reference/functions/useFormatForAria.md | 2 +- .../octane/reference/variables/formatForAria.md | 2 +- .../preact/reference/functions/useFormatForAria.md | 2 +- .../preact/reference/variables/formatForAria.md | 2 +- .../react/reference/functions/useFormatForAria.md | 2 +- .../react/reference/variables/formatForAria.md | 2 +- .../solid/reference/functions/createFormatForAria.md | 2 +- .../solid/reference/variables/formatForAria.md | 2 +- .../svelte/reference/functions/getFormatForAria.md | 2 +- .../svelte/reference/variables/formatForAria.md | 2 +- .../vue/reference/functions/useFormatForAria.md | 2 +- .../vue/reference/variables/formatForAria.md | 2 +- 20 files changed, 27 insertions(+), 27 deletions(-) diff --git a/docs/framework/alpine/reference/variables/formatForAria.md b/docs/framework/alpine/reference/variables/formatForAria.md index b644549d9..4257de2a6 100644 --- a/docs/framework/alpine/reference/variables/formatForAria.md +++ b/docs/framework/alpine/reference/variables/formatForAria.md @@ -9,7 +9,7 @@ title: formatForAria const formatForAria: typeof coreFormatForAria = coreFormatForAria; ``` -Defined in: formatForAria.ts:12 +Defined in: [formatForAria.ts:12](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/formatForAria.ts#L12) Formats a hotkey for `aria-keyshortcuts`, without the scope's platform or the user's keyboard layout. diff --git a/docs/framework/angular/reference/functions/injectFormatForAria.md b/docs/framework/angular/reference/functions/injectFormatForAria.md index d8be732fa..0ce5f2c58 100644 --- a/docs/framework/angular/reference/functions/injectFormatForAria.md +++ b/docs/framework/angular/reference/functions/injectFormatForAria.md @@ -9,7 +9,7 @@ title: injectFormatForAria function injectFormatForAria(): (hotkey, options) => string | undefined; ``` -Defined in: injectFormatForAria.ts:36 +Defined in: [injectFormatForAria.ts:36](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/injectFormatForAria.ts#L36) Returns `formatForAria` with the provider's `platform` as the default. Use its value for `aria-keyshortcuts`, so screen readers announce the shortcut. diff --git a/docs/framework/angular/reference/variables/formatForAria.md b/docs/framework/angular/reference/variables/formatForAria.md index 08dfe3a2b..5e0176bb7 100644 --- a/docs/framework/angular/reference/variables/formatForAria.md +++ b/docs/framework/angular/reference/variables/formatForAria.md @@ -9,7 +9,7 @@ title: formatForAria const formatForAria: typeof coreFormatForAria = coreFormatForAria; ``` -Defined in: formatForAria.ts:12 +Defined in: [formatForAria.ts:12](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/formatForAria.ts#L12) Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or the user's keyboard layout. diff --git a/docs/framework/ember/reference/functions/useFormatForAria.md b/docs/framework/ember/reference/functions/useFormatForAria.md index 1ca8d5d5e..7aac0e7c1 100644 --- a/docs/framework/ember/reference/functions/useFormatForAria.md +++ b/docs/framework/ember/reference/functions/useFormatForAria.md @@ -9,7 +9,7 @@ title: useFormatForAria function useFormatForAria(scope?): (hotkey, options) => string | undefined; ``` -Defined in: packages/ember-hotkeys/src/useFormatForAria.ts:35 +Defined in: [packages/ember-hotkeys/src/useFormatForAria.ts:35](https://github.com/TanStack/hotkeys/blob/main/packages/ember-hotkeys/src/useFormatForAria.ts#L35) Returns `formatForAria` with the scope's `platform` as the default. Use its value for `aria-keyshortcuts`, so screen readers announce the shortcut. It diff --git a/docs/framework/ember/reference/variables/formatForAria.md b/docs/framework/ember/reference/variables/formatForAria.md index ef9dada41..3856f68bb 100644 --- a/docs/framework/ember/reference/variables/formatForAria.md +++ b/docs/framework/ember/reference/variables/formatForAria.md @@ -9,7 +9,7 @@ title: formatForAria const formatForAria: typeof coreFormatForAria = coreFormatForAria; ``` -Defined in: packages/ember-hotkeys/src/formatForAria.ts:11 +Defined in: [packages/ember-hotkeys/src/formatForAria.ts:11](https://github.com/TanStack/hotkeys/blob/main/packages/ember-hotkeys/src/formatForAria.ts#L11) Formats a hotkey for `aria-keyshortcuts`, without the scope's platform or the user's keyboard layout. diff --git a/docs/framework/lit/reference/classes/FormatForAriaController.md b/docs/framework/lit/reference/classes/FormatForAriaController.md index a5ded53c0..d032e1350 100644 --- a/docs/framework/lit/reference/classes/FormatForAriaController.md +++ b/docs/framework/lit/reference/classes/FormatForAriaController.md @@ -5,7 +5,7 @@ title: FormatForAriaController -Defined in: controllers/format-for-aria.ts:52 +Defined in: [controllers/format-for-aria.ts:52](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-aria.ts#L52) A Lit ReactiveController whose `format` is `formatForAria` with the controller's `platform` option, or the detected platform without one. A @@ -48,7 +48,7 @@ class SearchButton extends LitElement { new FormatForAriaController(_host, _options?): FormatForAriaController; ``` -Defined in: controllers/format-for-aria.ts:71 +Defined in: [controllers/format-for-aria.ts:71](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-aria.ts#L71) #### Parameters @@ -76,7 +76,7 @@ Options or a getter. `platform` is read for each value. `keyboardLayout` is read format: (hotkey, options) => string | undefined; ``` -Defined in: controllers/format-for-aria.ts:61 +Defined in: [controllers/format-for-aria.ts:61](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-aria.ts#L61) Formats a hotkey for `aria-keyshortcuts`, with the controller's platform and the user's keyboard layout filled in. It takes the same options as @@ -141,7 +141,7 @@ formatForAria(['G', 'H']) // undefined dispose(): void; ``` -Defined in: controllers/format-for-aria.ts:97 +Defined in: [controllers/format-for-aria.ts:97](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-aria.ts#L97) Releases the controller now and removes it from its host, with the layout controller it added. Use this method to remove a controller early, @@ -159,7 +159,7 @@ because Lit's `removeController` alone leaves it active. hostConnected(): void; ``` -Defined in: controllers/format-for-aria.ts:83 +Defined in: [controllers/format-for-aria.ts:83](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-aria.ts#L83) Starts reading the layout, unless `keyboardLayout` is false. @@ -181,7 +181,7 @@ ReactiveController.hostConnected hostUpdate(): void; ``` -Defined in: controllers/format-for-aria.ts:88 +Defined in: [controllers/format-for-aria.ts:88](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-aria.ts#L88) Follows a `keyboardLayout` option that a host property changed. diff --git a/docs/framework/lit/reference/interfaces/FormatForAriaControllerOptions.md b/docs/framework/lit/reference/interfaces/FormatForAriaControllerOptions.md index 52bfa38d4..216cd4160 100644 --- a/docs/framework/lit/reference/interfaces/FormatForAriaControllerOptions.md +++ b/docs/framework/lit/reference/interfaces/FormatForAriaControllerOptions.md @@ -5,7 +5,7 @@ title: FormatForAriaControllerOptions -Defined in: controllers/format-for-aria.ts:8 +Defined in: [controllers/format-for-aria.ts:8](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-aria.ts#L8) Options for `FormatForAriaController`. @@ -17,7 +17,7 @@ Options for `FormatForAriaController`. optional keyboardLayout?: boolean; ``` -Defined in: controllers/format-for-aria.ts:20 +Defined in: [controllers/format-for-aria.ts:20](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-aria.ts#L20) Whether physical bindings follow the user's keyboard layout, so `[KeyQ]` is `A` on a French AZERTY keyboard. The layout loads from the browser @@ -32,7 +32,7 @@ when the first host connects. Only Chromium browsers report one. Set optional platform?: HotkeyPlatform; ``` -Defined in: controllers/format-for-aria.ts:13 +Defined in: [controllers/format-for-aria.ts:13](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-aria.ts#L13) The user's platform, for every value from `format`. Detected when unset. On a server, set it from the request with `detectPlatform(userAgent)`. diff --git a/docs/framework/lit/reference/variables/formatForAria.md b/docs/framework/lit/reference/variables/formatForAria.md index 0a094bc8f..eae62c55d 100644 --- a/docs/framework/lit/reference/variables/formatForAria.md +++ b/docs/framework/lit/reference/variables/formatForAria.md @@ -9,7 +9,7 @@ title: formatForAria const formatForAria: typeof coreFormatForAria = coreFormatForAria; ``` -Defined in: format-for-aria.ts:12 +Defined in: [format-for-aria.ts:12](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/format-for-aria.ts#L12) Formats a hotkey for `aria-keyshortcuts`, without a controller's platform or the user's keyboard layout. diff --git a/docs/framework/octane/reference/functions/useFormatForAria.md b/docs/framework/octane/reference/functions/useFormatForAria.md index 7a24caf4d..bddc4f2d8 100644 --- a/docs/framework/octane/reference/functions/useFormatForAria.md +++ b/docs/framework/octane/reference/functions/useFormatForAria.md @@ -9,7 +9,7 @@ title: useFormatForAria function useFormatForAria(): (hotkey, options) => string | undefined; ``` -Defined in: useFormatForAria.ts:31 +Defined in: [useFormatForAria.ts:31](https://github.com/TanStack/hotkeys/blob/main/packages/octane-hotkeys/src/useFormatForAria.ts#L31) Returns `formatForAria` with the platform from `HotkeysProvider`, or the detected platform without one. A `platform` passed to the returned function diff --git a/docs/framework/octane/reference/variables/formatForAria.md b/docs/framework/octane/reference/variables/formatForAria.md index 21f20d47b..0f9ce92ea 100644 --- a/docs/framework/octane/reference/variables/formatForAria.md +++ b/docs/framework/octane/reference/variables/formatForAria.md @@ -9,7 +9,7 @@ title: formatForAria const formatForAria: typeof coreFormatForAria = coreFormatForAria; ``` -Defined in: formatForAria.ts:12 +Defined in: [formatForAria.ts:12](https://github.com/TanStack/hotkeys/blob/main/packages/octane-hotkeys/src/formatForAria.ts#L12) Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or the user's keyboard layout. diff --git a/docs/framework/preact/reference/functions/useFormatForAria.md b/docs/framework/preact/reference/functions/useFormatForAria.md index b7131421c..417c12487 100644 --- a/docs/framework/preact/reference/functions/useFormatForAria.md +++ b/docs/framework/preact/reference/functions/useFormatForAria.md @@ -9,7 +9,7 @@ title: useFormatForAria function useFormatForAria(): (hotkey, options) => string | undefined; ``` -Defined in: useFormatForAria.ts:39 +Defined in: [useFormatForAria.ts:39](https://github.com/TanStack/hotkeys/blob/main/packages/preact-hotkeys/src/useFormatForAria.ts#L39) Returns `formatForAria` with the platform from `HotkeysProvider`, or the detected platform without one. A `platform` passed to the returned function diff --git a/docs/framework/preact/reference/variables/formatForAria.md b/docs/framework/preact/reference/variables/formatForAria.md index 21f20d47b..c6e9d8cb6 100644 --- a/docs/framework/preact/reference/variables/formatForAria.md +++ b/docs/framework/preact/reference/variables/formatForAria.md @@ -9,7 +9,7 @@ title: formatForAria const formatForAria: typeof coreFormatForAria = coreFormatForAria; ``` -Defined in: formatForAria.ts:12 +Defined in: [formatForAria.ts:12](https://github.com/TanStack/hotkeys/blob/main/packages/preact-hotkeys/src/formatForAria.ts#L12) Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or the user's keyboard layout. diff --git a/docs/framework/react/reference/functions/useFormatForAria.md b/docs/framework/react/reference/functions/useFormatForAria.md index 5fd2061fb..a619c0b01 100644 --- a/docs/framework/react/reference/functions/useFormatForAria.md +++ b/docs/framework/react/reference/functions/useFormatForAria.md @@ -9,7 +9,7 @@ title: useFormatForAria function useFormatForAria(): (hotkey, options) => string | undefined; ``` -Defined in: useFormatForAria.ts:41 +Defined in: [useFormatForAria.ts:41](https://github.com/TanStack/hotkeys/blob/main/packages/react-hotkeys/src/useFormatForAria.ts#L41) Returns `formatForAria` with the platform from `HotkeysProvider`, or the detected platform without one. A `platform` passed to the returned function diff --git a/docs/framework/react/reference/variables/formatForAria.md b/docs/framework/react/reference/variables/formatForAria.md index 21f20d47b..3153feaa1 100644 --- a/docs/framework/react/reference/variables/formatForAria.md +++ b/docs/framework/react/reference/variables/formatForAria.md @@ -9,7 +9,7 @@ title: formatForAria const formatForAria: typeof coreFormatForAria = coreFormatForAria; ``` -Defined in: formatForAria.ts:12 +Defined in: [formatForAria.ts:12](https://github.com/TanStack/hotkeys/blob/main/packages/react-hotkeys/src/formatForAria.ts#L12) Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or the user's keyboard layout. diff --git a/docs/framework/solid/reference/functions/createFormatForAria.md b/docs/framework/solid/reference/functions/createFormatForAria.md index 4f81e1af6..0156cc271 100644 --- a/docs/framework/solid/reference/functions/createFormatForAria.md +++ b/docs/framework/solid/reference/functions/createFormatForAria.md @@ -9,7 +9,7 @@ title: createFormatForAria function createFormatForAria(): (hotkey, options) => string | undefined; ``` -Defined in: createFormatForAria.ts:34 +Defined in: [createFormatForAria.ts:34](https://github.com/TanStack/hotkeys/blob/main/packages/solid-hotkeys/src/createFormatForAria.ts#L34) Returns `formatForAria` with the provider's `platform` as the default. Use its value for `aria-keyshortcuts`, so screen readers announce the shortcut. diff --git a/docs/framework/solid/reference/variables/formatForAria.md b/docs/framework/solid/reference/variables/formatForAria.md index 42aee3ec3..a895d89f4 100644 --- a/docs/framework/solid/reference/variables/formatForAria.md +++ b/docs/framework/solid/reference/variables/formatForAria.md @@ -9,7 +9,7 @@ title: formatForAria const formatForAria: typeof coreFormatForAria = coreFormatForAria; ``` -Defined in: formatForAria.ts:12 +Defined in: [formatForAria.ts:12](https://github.com/TanStack/hotkeys/blob/main/packages/solid-hotkeys/src/formatForAria.ts#L12) Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or the user's keyboard layout. diff --git a/docs/framework/svelte/reference/functions/getFormatForAria.md b/docs/framework/svelte/reference/functions/getFormatForAria.md index 52794917e..fbf15da9b 100644 --- a/docs/framework/svelte/reference/functions/getFormatForAria.md +++ b/docs/framework/svelte/reference/functions/getFormatForAria.md @@ -9,7 +9,7 @@ title: getFormatForAria function getFormatForAria(): (hotkey, options) => string | undefined; ``` -Defined in: packages/svelte-hotkeys/src/getFormatForAria.ts:33 +Defined in: [packages/svelte-hotkeys/src/getFormatForAria.ts:33](https://github.com/TanStack/hotkeys/blob/main/packages/svelte-hotkeys/src/getFormatForAria.ts#L33) Returns `formatForAria` with the provider's `platform` as the default. Use its value for `aria-keyshortcuts`, so screen readers announce the shortcut. diff --git a/docs/framework/svelte/reference/variables/formatForAria.md b/docs/framework/svelte/reference/variables/formatForAria.md index 757452cd0..7aaa032f4 100644 --- a/docs/framework/svelte/reference/variables/formatForAria.md +++ b/docs/framework/svelte/reference/variables/formatForAria.md @@ -9,7 +9,7 @@ title: formatForAria const formatForAria: typeof coreFormatForAria = coreFormatForAria; ``` -Defined in: packages/svelte-hotkeys/src/formatForAria.ts:12 +Defined in: [packages/svelte-hotkeys/src/formatForAria.ts:12](https://github.com/TanStack/hotkeys/blob/main/packages/svelte-hotkeys/src/formatForAria.ts#L12) Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or the user's keyboard layout. diff --git a/docs/framework/vue/reference/functions/useFormatForAria.md b/docs/framework/vue/reference/functions/useFormatForAria.md index cd6cdf8a1..866cd172a 100644 --- a/docs/framework/vue/reference/functions/useFormatForAria.md +++ b/docs/framework/vue/reference/functions/useFormatForAria.md @@ -9,7 +9,7 @@ title: useFormatForAria function useFormatForAria(): (hotkey, options?) => string | undefined; ``` -Defined in: useFormatForAria.ts:35 +Defined in: [useFormatForAria.ts:35](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/useFormatForAria.ts#L35) Returns `formatForAria` with the provider's `platform` as the default. Use its value for `aria-keyshortcuts`, so screen readers announce the shortcut. diff --git a/docs/framework/vue/reference/variables/formatForAria.md b/docs/framework/vue/reference/variables/formatForAria.md index 21f20d47b..1bfb57d97 100644 --- a/docs/framework/vue/reference/variables/formatForAria.md +++ b/docs/framework/vue/reference/variables/formatForAria.md @@ -9,7 +9,7 @@ title: formatForAria const formatForAria: typeof coreFormatForAria = coreFormatForAria; ``` -Defined in: formatForAria.ts:12 +Defined in: [formatForAria.ts:12](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/formatForAria.ts#L12) Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or the user's keyboard layout. From 25eb7d7b486c02840aa9bbf24903729b6608edfe Mon Sep 17 00:00:00 2001 From: Kevin Van Cott Date: Fri, 27 Nov 2026 18:34:37 -0600 Subject: [PATCH 06/13] chore: Record the Intent review for the regenerated reference links --- .intent/review-state.json | 160 +++++++++++++++++++------------------- 1 file changed, 80 insertions(+), 80 deletions(-) diff --git a/.intent/review-state.json b/.intent/review-state.json index 56354f865..a0be39fd3 100644 --- a/.intent/review-state.json +++ b/.intent/review-state.json @@ -23648,13 +23648,13 @@ "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/reference/variables/formatForAria.md": { - "fingerprint": "92de8fb3e13f1cc795b8a61b36a67a832184936d5d7878a8517ccd44dd736926", + "fingerprint": "5e0f2fb7181690020e55001c1a3596c4a94ef68ce8d14cc77f7034862ba80bbf", "snapshot": { - "docs/framework/alpine/reference/variables/formatForAria.md": "d1084ef50b1e83f25c89c33fe6baad202f8b5072abf24ee5edcf1a5c1183c9d8" + "docs/framework/alpine/reference/variables/formatForAria.md": "33a3bd1274b64b3f02e84b33aafcba0c4e639cb54af205a1afd0cb821edbcd17" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/angular/guides/accessibility.md": { @@ -23668,23 +23668,23 @@ "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:docs/framework/angular/reference/functions/injectFormatForAria.md": { - "fingerprint": "0d46058c1dd7eaf59e43a97b6d24f256fb8a987f04d4e9ef03a4e53ea2a54ceb", + "fingerprint": "bfe89bfbfd66e5297d3cb1918ab46debe7541b402cdbdfaae5c3cf0915de31ec", "snapshot": { - "docs/framework/angular/reference/functions/injectFormatForAria.md": "92c698f3a3051895d92b173b2d89db1470a3fd3000f73088c667690d33f855d3" + "docs/framework/angular/reference/functions/injectFormatForAria.md": "f51785c742b9cd03fba891404223a0f8c51cf0d5ee91aab228db07fbfc03fabe" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:docs/framework/angular/reference/variables/formatForAria.md": { - "fingerprint": "0fc4c115b6056422159fbd0631452fdd36b2717f4c422fb2db25d97f21a44a46", + "fingerprint": "8e2918f3f714ee73879c92b19fabfdc80206ff89af3f3cd75f8d985a56417c76", "snapshot": { - "docs/framework/angular/reference/variables/formatForAria.md": "ebc6008021d4e956ffb7bf3b1ede395b9982dd1f4505b76ba7274e98ef059911" + "docs/framework/angular/reference/variables/formatForAria.md": "8390aca16d0dbf92577117ec3539666f67f8af111228b91835a852626828cb1d" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:docs/framework/ember/guides/accessibility.md": { @@ -23698,23 +23698,23 @@ "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] }, "source:docs/framework/ember/reference/functions/useFormatForAria.md": { - "fingerprint": "bcb8150341631306fff4952cdc417b7fa45fe7dcd41ef7282ef8c377898a2f61", + "fingerprint": "9a7e6765075841376fb45e63bc77965eacf773d6c3fb4a62dac1e3f9bb199bb6", "snapshot": { - "docs/framework/ember/reference/functions/useFormatForAria.md": "6c1ca21283466c34bcd32d3d88b8cbb3a66a78406182724a1e12e76033c0198d" + "docs/framework/ember/reference/functions/useFormatForAria.md": "3f932e923e7ea385423b226c8375d4500f9eac90024d56c8b13fe8ad035faefd" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] }, "source:docs/framework/ember/reference/variables/formatForAria.md": { - "fingerprint": "179ef93cc90820cc3714c376d4cfe0fd7ce6ef1ace0a4a7cb1208900a8ed3d96", + "fingerprint": "0a7dacc42c2a8a3da95501911b03db5f723210bb025906747c9e6c8b43c32065", "snapshot": { - "docs/framework/ember/reference/variables/formatForAria.md": "33297e90a2930e5f8cc922264e722f04fee1a56c5b456d8a488c4c216af00c4e" + "docs/framework/ember/reference/variables/formatForAria.md": "4a89a2db67785acfca6df5ca5b79556b59cdd28a3dbe09ce0414db383b236eba" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] }, "source:docs/framework/lit/guides/accessibility.md": { @@ -23728,33 +23728,33 @@ "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "source:docs/framework/lit/reference/classes/FormatForAriaController.md": { - "fingerprint": "17ff8724fdcf1559246da9adeebd87f7f5b057f6447c9fef275314f74b1404aa", + "fingerprint": "ab381f258794285b4d5a2b250da809c4dfd45ad17f4cbaca2c08e7f227b08b83", "snapshot": { - "docs/framework/lit/reference/classes/FormatForAriaController.md": "a47b80847a76bf2869896c35856bbb2b77200e0295a47fd71435c4254be625f4" + "docs/framework/lit/reference/classes/FormatForAriaController.md": "bf1a40ccb419f802059d4e523b9a6cf7318068063efc3ebbf1aaf6d61ff2207f" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "source:docs/framework/lit/reference/interfaces/FormatForAriaControllerOptions.md": { - "fingerprint": "b5f0b0ff2c2f2f35d3ddb26222decbd86f892cd5ae32042f84c44f49aa9729ad", + "fingerprint": "408839d5dc01e31cf9af05ec7bfe89eb1667a11850cc90b440077b86034c09d8", "snapshot": { - "docs/framework/lit/reference/interfaces/FormatForAriaControllerOptions.md": "6706454f0c4beaf667609e19c538e6e9efcb6858fb1fe7ba66db3608c89f7cfa" + "docs/framework/lit/reference/interfaces/FormatForAriaControllerOptions.md": "3b08766eba74f304a0fee3bc498d91de6459f3bf7ebb03a5c9d91dcc86403d2a" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "source:docs/framework/lit/reference/variables/formatForAria.md": { - "fingerprint": "1df4be43e65e6247fdc1234ad228fa57783ed307c62f93dce99a5661b3b8617e", + "fingerprint": "8ca78f6928e9790d6ec1ea52b8741d92695a00d4f72fba5e5107d458deb30a87", "snapshot": { - "docs/framework/lit/reference/variables/formatForAria.md": "9695c997982a397627f1a33c434024e19b5a23f09d9b2688d2143a56924a9c28" + "docs/framework/lit/reference/variables/formatForAria.md": "9bc944853cca1050ba7b3ccdeffc7545033ddeb921a54e95d15b37220d46e3c4" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "source:docs/framework/octane/guides/accessibility.md": { @@ -23768,23 +23768,23 @@ "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] }, "source:docs/framework/octane/reference/functions/useFormatForAria.md": { - "fingerprint": "96a9e316c5669f1c06a32f0a3947b9a509d4e065cf08acd6e389cf8a6e811946", + "fingerprint": "3102df2b721779c7dbff03b18ad0e73e4982c8695b44801644866fdf594e8dd2", "snapshot": { - "docs/framework/octane/reference/functions/useFormatForAria.md": "1cfffca44cafa8b6e3749bfd808bec39e5a86f84203c1bf348974d9a92c68a77" + "docs/framework/octane/reference/functions/useFormatForAria.md": "1c5731232dfd9dcf17a340711b6d160d1a84ec2fcf8cc0305947899b8e27d369" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] }, "source:docs/framework/octane/reference/variables/formatForAria.md": { - "fingerprint": "9bf09d55635c32a4a52eac8d4472a92504dd1ec2c55fef0bac049349b435c74d", + "fingerprint": "bca71673d7ccde8327838da6e7a6266452ad0529f7f4a09fd58a7982a691b466", "snapshot": { - "docs/framework/octane/reference/variables/formatForAria.md": "f22323fa1ec897af5dc733e4fb88249f94f16f6bf5741e7406f341dd717bb02b" + "docs/framework/octane/reference/variables/formatForAria.md": "580aaa978e536de662e9828953205440daf995be2796dbc9510a62c634550947" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] }, "source:docs/framework/preact/guides/accessibility.md": { @@ -23798,23 +23798,23 @@ "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] }, "source:docs/framework/preact/reference/functions/useFormatForAria.md": { - "fingerprint": "4ba2373218c1ece7541ad48767d1fd78acdf5fcec5d4664a8d4a71470b33f836", + "fingerprint": "3013a1b9d40187707b02d0e8474601fe3974c1409c0ac0c6d2213e1f4fd000e5", "snapshot": { - "docs/framework/preact/reference/functions/useFormatForAria.md": "e700b92366cf0a7c92989da3f0265df1471f5265ddac3e55950ad1dcf5f5395b" + "docs/framework/preact/reference/functions/useFormatForAria.md": "f5ab76a12415cad476d70b89985715e896da7c392924c40648054554656b0a95" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] }, "source:docs/framework/preact/reference/variables/formatForAria.md": { - "fingerprint": "211ed7c26a85d64457d6ad80d0d3420b030a08ee33edd1b87beef33f72ee1acf", + "fingerprint": "a2ee4f41245515eb3b3ac39b1c6cca6605cd39637d0080b6f8ef08bc5878fb83", "snapshot": { - "docs/framework/preact/reference/variables/formatForAria.md": "f22323fa1ec897af5dc733e4fb88249f94f16f6bf5741e7406f341dd717bb02b" + "docs/framework/preact/reference/variables/formatForAria.md": "8500f275aafc3a169a4e5a6988e78dcbee926eebf983034365fe2b3a93ac13bf" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] }, "source:docs/framework/react/guides/accessibility.md": { @@ -23828,23 +23828,23 @@ "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] }, "source:docs/framework/react/reference/functions/useFormatForAria.md": { - "fingerprint": "aa06bb2e99c59d878e2bff188bedc5a33fa9e2f67118eef77386654c6f85f864", + "fingerprint": "35f8929b1df49589f51d13a557c4fd2ab44f13bf83f07dfec85c41716e4980c9", "snapshot": { - "docs/framework/react/reference/functions/useFormatForAria.md": "631e747991600e12cf98fd38909af7dd0e6d76a788c3146a3f39dcd30a03fa26" + "docs/framework/react/reference/functions/useFormatForAria.md": "a5d511e415e1edcb25aed074cf16aa9a26af9b7a2b4a4e04c280592d0d5b8b76" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] }, "source:docs/framework/react/reference/variables/formatForAria.md": { - "fingerprint": "187c1958448f9f2a370a9cb214820610fbb0ccc0133ff6aa4ad1d1adf4c89edb", + "fingerprint": "54e315dede60cddbe97de93f2a1b0d69c18710312384a0911809c50bdbdb0982", "snapshot": { - "docs/framework/react/reference/variables/formatForAria.md": "f22323fa1ec897af5dc733e4fb88249f94f16f6bf5741e7406f341dd717bb02b" + "docs/framework/react/reference/variables/formatForAria.md": "9ead2f7e2de168e2dd69f91571946921027cb58b8ab28139072a5981cdd49b5e" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] }, "source:docs/framework/solid/guides/accessibility.md": { @@ -23858,23 +23858,23 @@ "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "source:docs/framework/solid/reference/functions/createFormatForAria.md": { - "fingerprint": "1b163c3599ee87f8cade77a6aa89533247b470599142ce90011d2662c62dfbf2", + "fingerprint": "9b26413d8e5678f3a201de397783379da228782cd8a8b4dc88f9748508060e4b", "snapshot": { - "docs/framework/solid/reference/functions/createFormatForAria.md": "49f309c0ea46d9423921e8d214dc7cb24d3e4e6520ffb19d4898cfe01aa369b9" + "docs/framework/solid/reference/functions/createFormatForAria.md": "df0853d940dddd21556e2c2c3ccc3663b39d2f85640f8cd87aa7fe8efc1f7cc2" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "source:docs/framework/solid/reference/variables/formatForAria.md": { - "fingerprint": "78f4eff9b1bf93b5c82b586c704eb21bd4098980c7808d9f23c8d6e0abe54888", + "fingerprint": "b40d70d15fe79eb443b0c39c4bd17680cecb64ad6a9bcf571768b5c0b37f8398", "snapshot": { - "docs/framework/solid/reference/variables/formatForAria.md": "23e2f41d87c28c950397ac5ba6fdf55c04728e3dcb90b7f8d811c356ae30c7af" + "docs/framework/solid/reference/variables/formatForAria.md": "aacaa104d1aa892e43c9f910ca5092a9ffae7b76f69ef31bca56bd0c0d14b113" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/guides/accessibility.md": { @@ -23888,23 +23888,23 @@ "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/reference/functions/getFormatForAria.md": { - "fingerprint": "4eb713b0cf89372b76cb509b61eebbc7a2fc2d580c0c1202aa13960b88443122", + "fingerprint": "0aee463e013e3ef4499f705685ae8619eded477a1a52a693bc70dca5bc69a596", "snapshot": { - "docs/framework/svelte/reference/functions/getFormatForAria.md": "0f4bc6f18a336b684b28a7e0d176498bc8a37d8704676a83e8bf727a55ed7935" + "docs/framework/svelte/reference/functions/getFormatForAria.md": "ab8023c707c9ef1a033114b2ea71918d074e11a921df3cfe3b3186e3d53305ab" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/reference/variables/formatForAria.md": { - "fingerprint": "1ed9d8404b0a98422f6a30fdb778fb86f53a6567e58258b8bea50d26ee10ed15", + "fingerprint": "7a766a495d1adae714d4a2a9a720a7b7c015232757afde7bbe43447394c2a5a9", "snapshot": { - "docs/framework/svelte/reference/variables/formatForAria.md": "d6f9b400f738be9fd533e6f768f648524b88fd4ab464c04914684b5a40254b58" + "docs/framework/svelte/reference/variables/formatForAria.md": "958dd9fe74eebeddf6c3b5a95b1a0030c06ac33369249c9e6682f21cce0dccf4" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/vue/guides/accessibility.md": { @@ -23918,23 +23918,23 @@ "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "source:docs/framework/vue/reference/functions/useFormatForAria.md": { - "fingerprint": "8a2ecb829f38ccb927a7dabdcff4f75435458d897136fc0990c0cebaa5ece294", + "fingerprint": "b46254e851e25680152f49f48e064cce17481197c7b89f244b0cbf9c005162c5", "snapshot": { - "docs/framework/vue/reference/functions/useFormatForAria.md": "d7456becf080cced82b7ca74ca7e91f68c56b8cddc3db8b0aaaf78099ef83157" + "docs/framework/vue/reference/functions/useFormatForAria.md": "929e66befaefb83a40caa792a618280ae0c1d18f7da9c313d32a7359918dac49" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "source:docs/framework/vue/reference/variables/formatForAria.md": { - "fingerprint": "6107dc0d21805de6acce7d42f4afa8ec97de21aab425183d8bfce110014043b3", + "fingerprint": "680ebca2e153b376694d47cb39e3541cd72a5c4743e8cf05250627f0ee4bdb94", "snapshot": { - "docs/framework/vue/reference/variables/formatForAria.md": "f22323fa1ec897af5dc733e4fb88249f94f16f6bf5741e7406f341dd717bb02b" + "docs/framework/vue/reference/variables/formatForAria.md": "84daafbf0f673ff929973c3acd8296eb6a39257a853390e539a5a046b6f8a308" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the formatForAria, createFormatter, and suspendCharacterKeys API changes.", + "reason": "Regenerated reference page; the docs build added the GitHub source link to \"Defined in\". The skill covers the API.", "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "source:docs/reference/adapter/functions/createFormatter.md": { From 9c00b4eb23ce13f3e38a22aa28b1a5509be4570b Mon Sep 17 00:00:00 2001 From: Kevin Van Cott Date: Fri, 27 Nov 2026 19:09:00 -0600 Subject: [PATCH 07/13] fix(hotkeys): Announce only hotkeys that can fire, and address review feedback - Adapter ARIA formatters return undefined while a hotkey can't fire: disabled, in a suspended scope, a suspended character key, or not registered. - The key press that resumes character keys no longer fires them. - Hotkeys targeted at the body or root element are suspended with document-level ones. - Docs: remapping needs Control, Alt, or Meta; qualify the input guard, Escape, and status wording; note that preventDefault 'always' keeps blocking; register the hotkeys in the ARIA examples. --- .changeset/format-for-aria.md | 4 +- docs/framework/alpine/guides/accessibility.md | 16 ++-- .../alpine/guides/cheat-sheet-ui-helpers.md | 4 +- .../alpine/guides/formatting-display.md | 7 +- .../reference/interfaces/AlpineHotkeys.md | 24 ++--- .../interfaces/DefaultHotkeysOptions.md | 10 +-- .../framework/angular/guides/accessibility.md | 28 ++++-- .../angular/guides/cheat-sheet-ui-helpers.md | 6 +- .../angular/guides/formatting-display.md | 13 ++- .../functions/injectDefaultHotkeysOptions.md | 2 +- .../functions/injectFormatForAria.md | 6 +- .../functions/injectHotkeysContext.md | 2 +- .../reference/functions/provideHotkeys.md | 2 +- docs/framework/ember/guides/accessibility.md | 21 +++-- .../ember/guides/cheat-sheet-ui-helpers.md | 4 +- .../ember/guides/formatting-display.md | 12 ++- .../reference/functions/useFormatForAria.md | 11 +-- docs/framework/lit/guides/accessibility.md | 19 ++-- .../lit/guides/cheat-sheet-ui-helpers.md | 4 +- .../lit/guides/formatting-display.md | 10 ++- .../classes/FormatForAriaController.md | 18 ++-- .../FormatForAriaControllerOptions.md | 6 +- docs/framework/octane/guides/accessibility.md | 17 ++-- .../octane/guides/cheat-sheet-ui-helpers.md | 6 +- .../octane/guides/formatting-display.md | 15 ++-- .../reference/functions/useFormatForAria.md | 11 +-- docs/framework/preact/guides/accessibility.md | 17 ++-- .../preact/guides/cheat-sheet-ui-helpers.md | 6 +- .../preact/guides/formatting-display.md | 15 ++-- .../reference/functions/useFormatForAria.md | 8 +- docs/framework/react/guides/accessibility.md | 17 ++-- .../react/guides/cheat-sheet-ui-helpers.md | 6 +- .../react/guides/formatting-display.md | 15 ++-- .../reference/functions/useFormatForAria.md | 8 +- docs/framework/solid/guides/accessibility.md | 17 ++-- .../solid/guides/cheat-sheet-ui-helpers.md | 6 +- .../solid/guides/formatting-display.md | 15 ++-- .../functions/createFormatForAria.md | 11 +-- docs/framework/svelte/guides/accessibility.md | 16 ++-- .../svelte/guides/cheat-sheet-ui-helpers.md | 6 +- .../svelte/guides/formatting-display.md | 14 ++- .../reference/functions/getFormatForAria.md | 12 +-- docs/framework/vue/guides/accessibility.md | 16 ++-- .../vue/guides/cheat-sheet-ui-helpers.md | 6 +- .../vue/guides/formatting-display.md | 14 ++- .../reference/functions/useFormatForAria.md | 11 +-- .../functions/activateHotkeysProviderScope.md | 2 +- .../adapter/functions/announceLiveHotkeys.md | 87 +++++++++++++++++++ .../functions/bindCustomHotkeyActions.md | 2 +- .../functions/createFormatForDisplay.md | 2 +- .../adapter/functions/createFormatter.md | 2 +- .../adapter/functions/createHotkeyBindings.md | 2 +- .../adapter/functions/followKeyboardLayout.md | 2 +- .../functions/getHotkeyRegistrationViews.md | 2 +- .../functions/getHotkeysProviderScopeKey.md | 2 +- .../functions/getPublishedAppHotkeysStore.md | 2 +- .../functions/getServerPlatformSnapshot.md | 2 +- .../adapter/functions/isHotkeyHintVisible.md | 2 +- .../functions/mergeHotkeysProviderDefaults.md | 2 +- .../adapter/functions/namesPhysicalKey.md | 2 +- .../functions/prepareHotkeyDefinitions.md | 2 +- .../functions/requireAppHotkeysStore.md | 2 +- .../adapter/functions/resolveRefTarget.md | 2 +- .../functions/subscribePublishedAppHotkeys.md | 2 +- .../adapter/functions/syncRecorderOptions.md | 2 +- docs/reference/adapter/index.md | 1 + .../adapter/interfaces/HotkeysContextValue.md | 8 +- .../interfaces/HotkeysDefaultOptions.md | 10 +-- .../interfaces/HotkeysProviderScopeProps.md | 16 ++-- .../PrepareHotkeyDefinitionsOptions.md | 10 +-- .../type-aliases/AdapterAppHotkeyOptions.md | 2 +- .../type-aliases/AdapterChordOptions.md | 2 +- .../type-aliases/AdapterCommonOptions.md | 2 +- .../type-aliases/AdapterHotkeyDefinition.md | 2 +- .../type-aliases/AdapterHotkeyOptions.md | 2 +- .../adapter/type-aliases/AdapterOptionsFor.md | 2 +- .../type-aliases/AdapterSequenceOptions.md | 2 +- .../HotkeyBindingsCommonOptions.md | 2 +- .../adapter/type-aliases/HotkeyDefinition.md | 2 +- .../type-aliases/HotkeyRecorderDefaults.md | 2 +- .../adapter/type-aliases/RefTarget.md | 2 +- .../adapter/type-aliases/WithTarget.md | 2 +- docs/reference/classes/HotkeyManager.md | 35 ++++---- docs/reference/functions/getHotkeyManager.md | 2 +- .../functions/toHotkeyRegistrationView.md | 2 +- .../interfaces/ActivateHotkeyScopeOptions.md | 6 +- .../interfaces/HotkeyRegistrationHandle.md | 12 +-- .../reference/interfaces/HotkeyScopesState.md | 15 ++-- package.json | 2 +- .../skills/alpine-hotkeys/SKILL.md | 2 +- .../alpine-hotkeys/src/createFormatForAria.ts | 18 ++-- packages/alpine-hotkeys/src/types.ts | 12 +-- .../skills/angular-hotkeys/SKILL.md | 38 ++++---- .../angular-hotkeys/src/hotkeys-provider.ts | 4 +- .../src/injectFormatForAria.ts | 23 +++-- .../skills/ember-hotkeys/SKILL.md | 42 ++++----- packages/ember-hotkeys/src/_registrations.ts | 26 ++++++ .../ember-hotkeys/src/useFormatForAria.ts | 18 ++-- packages/hotkeys/src/adapter.ts | 44 +++++++++- packages/hotkeys/src/hotkey-manager.ts | 40 +++++++-- packages/hotkeys/tests/app-hotkeys.test.ts | 42 ++++++++- packages/hotkeys/tests/character-keys.test.ts | 26 ++++++ .../lit-hotkeys/skills/lit-hotkeys/SKILL.md | 2 +- .../src/controllers/format-for-aria.ts | 28 ++++-- .../skills/octane-hotkeys/SKILL.md | 38 ++++---- .../octane-hotkeys/src/useFormatForAria.ts | 26 ++++-- .../skills/preact-hotkeys/SKILL.md | 38 ++++---- .../preact-hotkeys/src/useFormatForAria.ts | 25 ++++-- .../skills/react-hotkeys/SKILL.md | 38 ++++---- .../react-hotkeys/src/useFormatForAria.ts | 25 ++++-- .../skills/solid-hotkeys/SKILL.md | 38 ++++---- .../solid-hotkeys/src/createFormatForAria.ts | 23 ++--- .../skills/svelte-hotkeys/SKILL.md | 44 +++++----- .../svelte-hotkeys/src/getFormatForAria.ts | 28 +++--- .../vue-hotkeys/skills/vue-hotkeys/SKILL.md | 40 ++++----- packages/vue-hotkeys/src/useFormatForAria.ts | 27 +++--- .../conformance/cases/recorder-hint-format.ts | 24 +++++ 117 files changed, 1036 insertions(+), 523 deletions(-) create mode 100644 docs/reference/adapter/functions/announceLiveHotkeys.md create mode 100644 packages/ember-hotkeys/src/_registrations.ts diff --git a/.changeset/format-for-aria.md b/.changeset/format-for-aria.md index 47d307c1d..7144476da 100644 --- a/.changeset/format-for-aria.md +++ b/.changeset/format-for-aria.md @@ -12,9 +12,9 @@ '@tanstack/alpine-hotkeys': minor --- -Add `formatForAria` to format hotkeys for the `aria-keyshortcuts` attribute. `formatForAria('Mod+K')` returns `'Meta+K'` on macOS and `'Control+K'` elsewhere. Modifiers and keys follow the ARIA specification, using `Space` for the space bar, `Plus` for the plus key, and the key at that position for physical bindings. `formatForAria` returns `undefined` for multi-step sequences, standalone modifiers, empty hotkeys, and physical codes with no key value so the attribute is omitted. +Add `formatForAria` to format hotkeys for the `aria-keyshortcuts` attribute. `formatForAria('Mod+K')` returns `'Meta+K'` on macOS and `'Control+K'` elsewhere. Modifiers and keys use the ARIA specification's names, with `Space` for the space bar, `Plus` for the plus key, and the key at that position for physical bindings. Punctuation in a logical hotkey stays as written, so `'?'` gives `?` rather than `Shift+/`. `formatForAria` returns `undefined` for multi-step sequences, standalone modifiers, empty hotkeys, and physical codes with no key value so the attribute is omitted. -Each framework adapter exports a formatter that fills in the configured platform and the user's keyboard layout: +Each framework adapter exports a formatter that fills in the configured platform and the user's keyboard layout, and returns `undefined` while the hotkey can't fire, so screen readers announce only working shortcuts: - `useFormatForAria` (React, Preact, Octane, Vue, Ember) - `createFormatForAria` (Solid, and on Alpine scopes) diff --git a/docs/framework/alpine/guides/accessibility.md b/docs/framework/alpine/guides/accessibility.md index 81700cb7c..0fcb76bbf 100644 --- a/docs/framework/alpine/guides/accessibility.md +++ b/docs/framework/alpine/guides/accessibility.md @@ -10,9 +10,9 @@ Keyboard shortcuts help people who navigate without a mouse, but shortcuts can g These protections are on by default: -- **Typing in fields and widgets.** Single keys and `Shift` or `Alt` chords don't fire while focus is in a text field, ``, or `contenteditable` element. Native buttons keep `Enter` and `Space`, links keep `Enter`, and ARIA widgets such as menus, listboxes, tabs, and grids keep their navigation keys. Configure this with `ignoreInputs` (see [Hotkey options](./hotkeys#hotkey-options)). Hotkeys targeted at the field itself still fire there, and so do `Escape`, function keys, and `Control` or `Meta` chords. - **Characters typed with AltGr.** On keyboards where AltGr types characters such as `@` or `€`, typing them doesn't fire `Control+Alt` hotkeys. -- **Open overlays.** While focus is inside a native ``, popover, or ARIA dialog or menu, outer `Escape` hotkeys stay out of the way so the overlay closes first (see [Let an open overlay handle Escape](../../../guides/sensible-defaults.md#let-an-open-overlay-handle-escape)). To suspend all other page hotkeys while a dialog is open, activate an exclusive [scope](./hotkey-manager#activate-a-scope). +- **Open overlays.** While focus is inside an overlay that closes on `Escape`, such as a native ``, a light-dismiss popover, or an ARIA dialog or menu, outer `Escape` hotkeys stay out of the way so the overlay closes first. An overlay that closes in your own handler still needs that handler (see [Let an open overlay handle Escape](../../../guides/sensible-defaults.md#let-an-open-overlay-handle-escape)). To suspend all other page hotkeys while a dialog is open, activate an exclusive [scope](./hotkey-manager#activate-a-scope). ## Announce shortcuts to screen readers @@ -28,6 +28,9 @@ Alpine.data('searchButton', () => { const formatForDisplay = hotkeys.createFormatForDisplay() return { + init() { + hotkeys.createHotkey('Mod+K', () => openSearch()) + }, get shortcut() { return formatForAria('Mod+K') }, @@ -50,6 +53,7 @@ Alpine.data('searchButton', () => { Follow these rules when you add the attribute: - **Attach it to the target control.** Put `aria-keyshortcuts` on the button the shortcut activates or the field it focuses. The attribute only announces the shortcut, so register the hotkey as usual. +- **Announce only working shortcuts.** The formatter returns `undefined` while the hotkey can't fire, such as when it is disabled, its scope is suspended, or character keys are suspended, so the attribute comes and goes with the shortcut. The hotkey has to be registered, so server-rendered HTML has no attribute until the hotkey registers in the browser. - **Keep the visible label.** Render a `` label alongside the attribute from the same hotkey so sighted and screen reader users see the same shortcut. - **Document sequences in text.** ARIA has no syntax for multi-step sequences such as `['G', 'H']`, so the formatter returns `undefined` and `:aria-keyshortcuts` omits the attribute. List sequences in a [cheat sheet](./cheat-sheet-ui-helpers) instead. - **Read from app hotkeys.** Pass the binding from [app hotkeys](./app-hotkeys) so `aria-keyshortcuts` updates when the user rebinds the shortcut. @@ -86,7 +90,9 @@ export function setCharacterKeyShortcuts(on: boolean) { Suspensions are counted. Character key shortcuts stay off until every returned resume function runs, so two parts of an app can't undo each other. -While suspended, an enabled character key shortcut reports the status `'suspended'` (the same as a hotkey in an inactive scope), so a [cheat sheet](./cheat-sheet-ui-helpers) can mark it as off. To display the current toggle state in a settings screen, read `characterKeysSuspended` from [scope state](./hotkey-manager#read-scope-state). +While suspended, an enabled document-level character key shortcut reports the status `'suspended'` (the same as a hotkey in an inactive scope), so a [cheat sheet](./cheat-sheet-ui-helpers) can mark it as off. Bind the setting's switch to the saved preference, not to the suspension. `characterKeysSuspended` in [scope state](./hotkey-manager#read-scope-state) is `true` while any suspension is in effect, so use it to show whether character key shortcuts work right now. + +Suspension stops the callback but not `preventDefault: 'always'`, which keeps blocking the key's browser action. Leave `'always'` off character key shortcuts that users can turn off. These hotkeys keep working while character keys are suspended: @@ -95,13 +101,13 @@ These hotkeys keep working while character keys are suspended: | `Mod+K`, `Control+K`, `Alt+K` | Uses `Control`, `Alt`, or `Meta`. | | `Escape`, `Enter`, `Tab`, `ArrowUp`, `F1` | Does not type a character. | | `['Mod+K', 'C']` | At least one step uses a modifier or a non-character key. | -| A hotkey with an element `target` | Fires only while focus is inside that element. | +| A hotkey with an element `target`, other than the body or the root element | Fires only while focus is inside that element. | Suspension checks the effective hotkey, so an app hotkey remapped from `K` to `Mod+K` works even while character keys are suspended. ### Let users remap them -[App hotkeys](./app-hotkeys) with a [shortcut settings screen](./custom-hotkey-recording) meet WCAG 2.1.4 on their own, as long as users can rebind every character key shortcut to one with a modifier. Offering both a toggle and remapping lets users either disable single-key shortcuts or rebind individual ones. +[App hotkeys](./app-hotkeys) with a [shortcut settings screen](./custom-hotkey-recording) meet WCAG 2.1.4 on their own, as long as users can rebind every character key shortcut to one with `Control`, `Alt`, or `Meta`. Adding `Shift` alone still leaves a character key shortcut. Offering both a toggle and remapping lets users either disable single-key shortcuts or rebind individual ones. ### Scope them to an element diff --git a/docs/framework/alpine/guides/cheat-sheet-ui-helpers.md b/docs/framework/alpine/guides/cheat-sheet-ui-helpers.md index 48f76827b..b6f30e520 100644 --- a/docs/framework/alpine/guides/cheat-sheet-ui-helpers.md +++ b/docs/framework/alpine/guides/cheat-sheet-ui-helpers.md @@ -94,7 +94,7 @@ Alpine.data('shortcutList', () => { Filtering by name leaves out hotkeys you didn't mean to list, such as a dialog's `Escape`. Filtering by `status` leaves only the hotkeys that are on right now. -`status` is `'active'` when the hotkey is enabled and its scope is active, `'suspended'` when its [scope](./hotkey-manager#activate-a-scope) is inactive or suspended by an exclusive scope or it is a character key shortcut while [character keys are suspended](./accessibility#turn-them-off), and `'disabled'` when it has `enabled: false`. `createHotkeyRegistrations` updates when scopes change, so the list stays current. +`status` is `'active'` when the hotkey is enabled and nothing suspends it, `'suspended'` when its [scope](./hotkey-manager#activate-a-scope) is inactive or suspended by an exclusive scope or it is a document-level character key shortcut while [character keys are suspended](./accessibility#turn-them-off), and `'disabled'` when it has `enabled: false`. `createHotkeyRegistrations` updates when scopes change, so the list stays current. Each registration view has an `id`, the `hotkey`, a `status`, its `options` (including `meta`, `enabled`, and `scope`), its `target`, and a `triggerCount`. Narrow with `kind`: chord views add `parsedChord`, and sequence views add `parsedSequence` and `matchedStepCount`, the number of steps the user has pressed so far. [Show sequences in your UI](./sequences#show-sequences-in-your-ui) uses it to show which keys the user has pressed. @@ -138,7 +138,7 @@ Alpine.data('cheatSheet', () => { | Status | Meaning | | --- | --- | -| `'active'` | At least one enabled registration | +| `'active'` | At least one registration reports `'active'` | | `'suspended'` | Has an enabled registration, but none can fire: its scope is inactive, or character keys are suspended | | `'disabled'` | Registered, but every registration has `enabled: false` | | `'inactive'` | Has a hotkey, but nothing has registered it | diff --git a/docs/framework/alpine/guides/formatting-display.md b/docs/framework/alpine/guides/formatting-display.md index f0ef16569..28d10e46d 100644 --- a/docs/framework/alpine/guides/formatting-display.md +++ b/docs/framework/alpine/guides/formatting-display.md @@ -188,6 +188,9 @@ Alpine.data('searchButton', () => { const formatForDisplay = hotkeys.createFormatForDisplay() return { + init() { + hotkeys.createHotkey('Mod+K', () => openSearch()) + }, get shortcut() { return formatForAria('Mod+K') }, @@ -210,8 +213,8 @@ Alpine.data('searchButton', () => { The output uses the key names from the ARIA specification: - **Modifiers.** `Mod` becomes `Meta` on macOS and `Control` elsewhere. Modifiers use `Control`, `Alt`, `Shift`, and `Meta` in that order before the key, so `Mod+Shift+P` formats as `Shift+Meta+P` on macOS. -- **Keys.** Keys use `KeyboardEvent.key` values (`K`, `/`, `Escape`, `ArrowUp`), with `Space` for the space bar and `Plus` for the plus key. A physical binding names the key at that position from the user's keyboard layout where the browser reports it, so `[KeyQ]` formats as `Q`, or `A` on a French AZERTY keyboard. A logical hotkey's punctuation stays as written, so `'?'` formats as `?` rather than the `Shift+/` you press on a US keyboard. The key that types `?` depends on the layout. To name the key, bind it physically, such as `Shift+[Slash]`. -- **No value.** Returns `undefined` for a multi-step sequence, a standalone modifier, an empty or `null` hotkey, or a physical code with no key name such as `[NumpadMemoryAdd]`, so `:aria-keyshortcuts` omits the attribute. ARIA has no syntax for multi-step sequences. +- **Keys.** Keys use `KeyboardEvent.key` values (`K`, `/`, `Escape`, `ArrowUp`), with `Space` for the space bar and `Plus` for the plus key. A physical binding names the key at that position from the user's keyboard layout where the browser reports it, so `[KeyQ]` formats as `Q`, or `A` on a French AZERTY keyboard. A logical hotkey's punctuation stays as written, so `'?'` formats as `?` rather than the `Shift+/` you press on a US keyboard. The key that types `?` depends on the layout. For punctuation that takes `Shift` to type, pass your own `aria-keyshortcuts` value for the layout, or use a physical binding such as `Shift+[Slash]`, which also changes which key the hotkey matches. +- **No value.** Returns `undefined` for a multi-step sequence, a standalone modifier, an empty or `null` hotkey, or a physical code with no key name such as `[NumpadMemoryAdd]`, so `:aria-keyshortcuts` omits the attribute. ARIA has no syntax for multi-step sequences. The adapter's formatter also returns `undefined` while the hotkey can't fire, such as when it is disabled, its scope is suspended, character keys are suspended, or nothing has registered it, so a screen reader never announces a shortcut that doesn't work. The plain `formatForAria` function only formats. For a control with two shortcuts, join both formatted values with a space, such as `Control+K /`. diff --git a/docs/framework/alpine/reference/interfaces/AlpineHotkeys.md b/docs/framework/alpine/reference/interfaces/AlpineHotkeys.md index 52c1349ba..7137ad7d0 100644 --- a/docs/framework/alpine/reference/interfaces/AlpineHotkeys.md +++ b/docs/framework/alpine/reference/interfaces/AlpineHotkeys.md @@ -17,7 +17,7 @@ Registrations and reactive state owned by one Alpine component. createAppHotkeyList: () => AlpineHotkeyState; ``` -Defined in: [types.ts:232](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L232) +Defined in: [types.ts:234](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L234) Read every app hotkey with its live status through `.value`. @@ -33,7 +33,7 @@ Read every app hotkey with its live status through `.value`. createAppHotkeys: () => AlpineHotkeyState>>>; ``` -Defined in: [types.ts:230](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L230) +Defined in: [types.ts:232](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L232) Read the effective app hotkeys from `provideAppHotkeys` through `.value`. @@ -49,7 +49,7 @@ Read the effective app hotkeys from `provideAppHotkeys` through `.value`. createCustomHotkeys: () => AlpineCustomHotkeys; ``` -Defined in: [types.ts:236](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L236) +Defined in: [types.ts:238](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L238) Read and change the user's custom hotkeys. @@ -65,13 +65,15 @@ Read and change the user's custom hotkeys. createFormatForAria: () => (hotkey, options) => string | undefined; ``` -Defined in: [types.ts:196](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L196) +Defined in: [types.ts:198](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L198) -Returns `formatForAria` with the scope's `platform` as the default, or -the detected platform without one. Use its value for -`aria-keyshortcuts`, so screen readers announce the shortcut. It returns -`undefined` for a multi-step sequence or no hotkey, so `x-bind` omits the -attribute. An explicit `platform` option wins. +Returns `formatForAria` with the scope's `platform` as the default, or the +detected platform without one. Use its value for `aria-keyshortcuts`, so +screen readers announce the shortcut. It returns `undefined` for a +multi-step sequence, no hotkey, or a hotkey that can't fire right now (one +that is disabled, in a suspended scope, a suspended character key, or not +registered), so `x-bind` omits the attribute. An explicit `platform` +option wins. Physical bindings such as `[KeyQ]` name the key the user presses in Chromium browsers, once the keyboard layout has loaded, the same way as @@ -631,7 +633,7 @@ Read the active, exclusive, allowed, and suspended scopes through `.value`. createKeyboardLayout: () => AlpineHotkeyState; ``` -Defined in: [types.ts:228](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L228) +Defined in: [types.ts:230](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L230) Read the browser's keyboard layout through `.value`, or `null` until it loads and in browsers that don't report one. The layout maps each physical @@ -698,7 +700,7 @@ Read whether a key is held through `.value`. destroy: () => void; ``` -Defined in: [types.ts:238](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L238) +Defined in: [types.ts:240](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L240) Release every registration, subscription, effect, and recorder. Idempotent. diff --git a/docs/framework/alpine/reference/interfaces/DefaultHotkeysOptions.md b/docs/framework/alpine/reference/interfaces/DefaultHotkeysOptions.md index 903881b87..e790822e1 100644 --- a/docs/framework/alpine/reference/interfaces/DefaultHotkeysOptions.md +++ b/docs/framework/alpine/reference/interfaces/DefaultHotkeysOptions.md @@ -5,7 +5,7 @@ title: DefaultHotkeysOptions -Defined in: [types.ts:242](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L242) +Defined in: [types.ts:244](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L244) Shared defaults; call-specific options take precedence. @@ -17,7 +17,7 @@ Shared defaults; call-specific options take precedence. optional hotkey?: AlpineHotkeyCommonOptions; ``` -Defined in: [types.ts:258](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L258) +Defined in: [types.ts:260](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L260) Defaults for every hotkey. `requireReset` applies to chords and `timeout` to sequences. @@ -29,7 +29,7 @@ Defaults for every hotkey. `requireReset` applies to chords and `timeout` to seq optional hotkeyRecorder?: Partial>; ``` -Defined in: [types.ts:260](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L260) +Defined in: [types.ts:262](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L262) Defaults for every recorder. @@ -41,7 +41,7 @@ Defaults for every recorder. optional keyboardLayout?: boolean; ``` -Defined in: [types.ts:256](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L256) +Defined in: [types.ts:258](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L258) Whether labels from `createFormatForDisplay` follow the user's keyboard layout, so `[KeyQ]` reads `A` on a French AZERTY keyboard. The layout @@ -57,7 +57,7 @@ loads from the browser when the first `createFormatForDisplay` or optional platform?: HotkeyPlatform; ``` -Defined in: [types.ts:248](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L248) +Defined in: [types.ts:250](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L250) The user's platform, for labels from `createFormatForDisplay`, hotkeys, and recorders. `hotkey.platform` and `hotkeyRecorder.platform` win. diff --git a/docs/framework/angular/guides/accessibility.md b/docs/framework/angular/guides/accessibility.md index 63ae73b81..46c14dc6b 100644 --- a/docs/framework/angular/guides/accessibility.md +++ b/docs/framework/angular/guides/accessibility.md @@ -10,9 +10,9 @@ Keyboard shortcuts help people who navigate without a mouse, but shortcuts can g These protections are on by default: -- **Typing in fields and widgets.** Single keys and `Shift` or `Alt` chords don't fire while focus is in a text field, ``, or `contenteditable` element. Native buttons keep `Enter` and `Space`, links keep `Enter`, and ARIA widgets such as menus, listboxes, tabs, and grids keep their navigation keys. Configure this with `ignoreInputs` (see [Hotkey options](./hotkeys#hotkey-options)). Hotkeys targeted at the field itself still fire there, and so do `Escape`, function keys, and `Control` or `Meta` chords. - **Characters typed with AltGr.** On keyboards where AltGr types characters such as `@` or `€`, typing them doesn't fire `Control+Alt` hotkeys. -- **Open overlays.** While focus is inside a native ``, popover, or ARIA dialog or menu, outer `Escape` hotkeys stay out of the way so the overlay closes first (see [Let an open overlay handle Escape](../../../guides/sensible-defaults.md#let-an-open-overlay-handle-escape)). To suspend all other page hotkeys while a dialog is open, give the dialog component an [exclusive scope](./provide-hotkeys-and-scopes#exclusive-scopes). +- **Open overlays.** While focus is inside an overlay that closes on `Escape`, such as a native ``, a light-dismiss popover, or an ARIA dialog or menu, outer `Escape` hotkeys stay out of the way so the overlay closes first. An overlay that closes in your own handler still needs that handler (see [Let an open overlay handle Escape](../../../guides/sensible-defaults.md#let-an-open-overlay-handle-escape)). To suspend all other page hotkeys while a dialog is open, give the dialog component an [exclusive scope](./provide-hotkeys-and-scopes#exclusive-scopes). ## Announce shortcuts to screen readers @@ -24,6 +24,7 @@ import { injectAppHotkeys, injectFormatForAria, injectFormatForDisplay, + injectHotkey, } from '@tanstack/angular-hotkeys' @Component({ @@ -42,12 +43,24 @@ export class SearchButton { appHotkeys = injectAppHotkeys() formatForAria = injectFormatForAria() formatForDisplay = injectFormatForDisplay() + + constructor() { + injectHotkey( + () => this.appHotkeys()['search.open'], + () => this.openSearch(), + ) + } + + openSearch() { + // ... + } } ``` Follow these rules when you add the attribute: - **Attach it to the target control.** Put `aria-keyshortcuts` on the button the shortcut activates or the field it focuses. The attribute only announces the shortcut, so register the hotkey as usual. +- **Announce only working shortcuts.** The formatter returns `undefined` while the hotkey can't fire, such as when it is disabled, its scope is suspended, or character keys are suspended, so the attribute comes and goes with the shortcut. The hotkey has to be registered, so server-rendered HTML has no attribute until the hotkey registers in the browser. - **Keep the visible label.** Render a `` label alongside the attribute from the same hotkey so sighted and screen reader users see the same shortcut. - **Document sequences in text.** ARIA has no syntax for multi-step sequences such as `['G', 'H']`, so the formatter returns `undefined` and `[attr.aria-keyshortcuts]` omits the attribute. List sequences in a [cheat sheet](./cheat-sheet-ui-helpers) instead. - **Read from app hotkeys.** Pass the binding from [app hotkeys](./app-hotkeys) so `aria-keyshortcuts` updates when the user rebinds the shortcut. @@ -68,6 +81,7 @@ Add a setting, such as **Single-key shortcuts**, and suspend character key short ```ts import { inject } from '@angular/core' +import type { ApplicationConfig } from '@angular/core' import { provideHotkeys } from '@tanstack/angular-hotkeys' export const appConfig: ApplicationConfig = { @@ -80,9 +94,13 @@ export const appConfig: ApplicationConfig = { } ``` +Angular creates a provider when something under it first injects it, so a provider that nothing injects never suspends. Put `suspendCharacterKeys` on the application's `provideHotkeys`, which Angular creates as soon as any hotkey registers. + Suspensions are counted. Character key shortcuts stay off while any active provider evaluates `suspendCharacterKeys` to `true`, and they resume when the last one is destroyed or its value becomes `false`. `suspendCharacterKeys` applies even when the provider sets `enabled: false`. Outside a provider, call `getHotkeyManager().suspendCharacterKeys()`, which returns a function that resumes them. -While suspended, an enabled character key shortcut reports the status `'suspended'` (the same as a hotkey in an inactive scope), so a [cheat sheet](./cheat-sheet-ui-helpers) can mark it as off. To display the current toggle state in a settings screen, read `characterKeysSuspended` from [scope state](./hotkey-manager#read-scope-state). +While suspended, an enabled document-level character key shortcut reports the status `'suspended'` (the same as a hotkey in an inactive scope), so a [cheat sheet](./cheat-sheet-ui-helpers) can mark it as off. Bind the setting's switch to the saved preference, not to the suspension. `characterKeysSuspended` in [scope state](./hotkey-manager#read-scope-state) is `true` while any suspension is in effect, so use it to show whether character key shortcuts work right now. + +Suspension stops the callback but not `preventDefault: 'always'`, which keeps blocking the key's browser action. Leave `'always'` off character key shortcuts that users can turn off. These hotkeys keep working while character keys are suspended: @@ -91,13 +109,13 @@ These hotkeys keep working while character keys are suspended: | `Mod+K`, `Control+K`, `Alt+K` | Uses `Control`, `Alt`, or `Meta`. | | `Escape`, `Enter`, `Tab`, `ArrowUp`, `F1` | Does not type a character. | | `['Mod+K', 'C']` | At least one step uses a modifier or a non-character key. | -| A hotkey with an element `target` | Fires only while focus is inside that element. | +| A hotkey with an element `target`, other than the body or the root element | Fires only while focus is inside that element. | Suspension checks the effective hotkey, so an app hotkey remapped from `K` to `Mod+K` works even while character keys are suspended. ### Let users remap them -[App hotkeys](./app-hotkeys) with a [shortcut settings screen](./custom-hotkey-recording) meet WCAG 2.1.4 on their own, as long as users can rebind every character key shortcut to one with a modifier. Offering both a toggle and remapping lets users either disable single-key shortcuts or rebind individual ones. +[App hotkeys](./app-hotkeys) with a [shortcut settings screen](./custom-hotkey-recording) meet WCAG 2.1.4 on their own, as long as users can rebind every character key shortcut to one with `Control`, `Alt`, or `Meta`. Adding `Shift` alone still leaves a character key shortcut. Offering both a toggle and remapping lets users either disable single-key shortcuts or rebind individual ones. ### Scope them to an element diff --git a/docs/framework/angular/guides/cheat-sheet-ui-helpers.md b/docs/framework/angular/guides/cheat-sheet-ui-helpers.md index f4d209c89..6877aee43 100644 --- a/docs/framework/angular/guides/cheat-sheet-ui-helpers.md +++ b/docs/framework/angular/guides/cheat-sheet-ui-helpers.md @@ -89,8 +89,8 @@ export class ShortcutListComponent { Filtering by `meta?.name` omits unnamed helper shortcuts, such as a dialog's `Escape`. Checking `status === 'active'` hides paused shortcuts: -- `'active'` means the hotkey is enabled and in an active scope -- `'suspended'` means it is enabled, but its [scope](./provide-hotkeys-and-scopes) is inactive or suspended by an exclusive scope, or it is a character key shortcut while [character keys are suspended](./accessibility#turn-them-off) +- `'active'` means the hotkey is enabled and nothing suspends it +- `'suspended'` means it is enabled, but its [scope](./provide-hotkeys-and-scopes) is inactive or suspended by an exclusive scope, or it is a document-level character key shortcut while [character keys are suspended](./accessibility#turn-them-off) - `'disabled'` means `enabled: false` was set Each entry also includes `id`, `hotkey`, `options`, `target`, and `triggerCount`. Chord entries (`kind === 'chord'`) add `parsedChord`, and sequence entries (`kind === 'sequence'`) add `parsedSequence` and `matchedStepCount` (used in [Show sequences in your UI](./sequences#show-sequences-in-your-ui)). If several components register the same shortcut, such as rows in a list, each registration appears as its own entry. @@ -125,7 +125,7 @@ export class CheatSheetComponent { | Status | Meaning | | --- | --- | -| `'active'` | At least one enabled registration in an active scope | +| `'active'` | At least one registration reports `'active'` | | `'suspended'` | Enabled registrations exist, but none can fire: their scope is inactive, or character keys are suspended | | `'disabled'` | Registered, but every registration has `enabled: false` | | `'inactive'` | Has a hotkey assigned, but no component has registered it yet | diff --git a/docs/framework/angular/guides/formatting-display.md b/docs/framework/angular/guides/formatting-display.md index 9dcdb8a65..d6e909d15 100644 --- a/docs/framework/angular/guides/formatting-display.md +++ b/docs/framework/angular/guides/formatting-display.md @@ -170,6 +170,7 @@ import { Component } from '@angular/core' import { injectFormatForAria, injectFormatForDisplay, + injectHotkey, } from '@tanstack/angular-hotkeys' @Component({ @@ -183,14 +184,22 @@ import { export class SearchButton { formatForAria = injectFormatForAria() formatForDisplay = injectFormatForDisplay() + + constructor() { + injectHotkey('Mod+K', () => this.openSearch()) + } + + openSearch() { + // ... + } } ``` The output uses the key names from the ARIA specification: - **Modifiers.** `Mod` becomes `Meta` on macOS and `Control` elsewhere. Modifiers use `Control`, `Alt`, `Shift`, and `Meta` in that order before the key, so `Mod+Shift+P` formats as `Shift+Meta+P` on macOS. -- **Keys.** Keys use `KeyboardEvent.key` values (`K`, `/`, `Escape`, `ArrowUp`), with `Space` for the space bar and `Plus` for the plus key. A physical binding names the key at that position from the user's keyboard layout where the browser reports it, so `[KeyQ]` formats as `Q`, or `A` on a French AZERTY keyboard. A logical hotkey's punctuation stays as written, so `'?'` formats as `?` rather than the `Shift+/` you press on a US keyboard. The key that types `?` depends on the layout. To name the key, bind it physically, such as `Shift+[Slash]`. -- **No value.** Returns `undefined` for a multi-step sequence, a standalone modifier, an empty or `null` hotkey, or a physical code with no key name such as `[NumpadMemoryAdd]`, so `[attr.aria-keyshortcuts]` omits the attribute. ARIA has no syntax for multi-step sequences. +- **Keys.** Keys use `KeyboardEvent.key` values (`K`, `/`, `Escape`, `ArrowUp`), with `Space` for the space bar and `Plus` for the plus key. A physical binding names the key at that position from the user's keyboard layout where the browser reports it, so `[KeyQ]` formats as `Q`, or `A` on a French AZERTY keyboard. A logical hotkey's punctuation stays as written, so `'?'` formats as `?` rather than the `Shift+/` you press on a US keyboard. The key that types `?` depends on the layout. For punctuation that takes `Shift` to type, pass your own `aria-keyshortcuts` value for the layout, or use a physical binding such as `Shift+[Slash]`, which also changes which key the hotkey matches. +- **No value.** Returns `undefined` for a multi-step sequence, a standalone modifier, an empty or `null` hotkey, or a physical code with no key name such as `[NumpadMemoryAdd]`, so `[attr.aria-keyshortcuts]` omits the attribute. ARIA has no syntax for multi-step sequences. The adapter's formatter also returns `undefined` while the hotkey can't fire, such as when it is disabled, its scope is suspended, character keys are suspended, or nothing has registered it, so a screen reader never announces a shortcut that doesn't work. The plain `formatForAria` function only formats. For a control with two shortcuts, join both formatted values with a space, such as `Control+K /`. diff --git a/docs/framework/angular/reference/functions/injectDefaultHotkeysOptions.md b/docs/framework/angular/reference/functions/injectDefaultHotkeysOptions.md index 47e221e66..744f3c630 100644 --- a/docs/framework/angular/reference/functions/injectDefaultHotkeysOptions.md +++ b/docs/framework/angular/reference/functions/injectDefaultHotkeysOptions.md @@ -9,7 +9,7 @@ title: injectDefaultHotkeysOptions function injectDefaultHotkeysOptions(): HotkeysProviderOptions; ``` -Defined in: [hotkeys-provider.ts:320](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L320) +Defined in: [hotkeys-provider.ts:322](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L322) Returns the nearest provider's default options as they are when injected. The value doesn't update when signal-driven defaults change. To follow diff --git a/docs/framework/angular/reference/functions/injectFormatForAria.md b/docs/framework/angular/reference/functions/injectFormatForAria.md index 0ce5f2c58..2df5514de 100644 --- a/docs/framework/angular/reference/functions/injectFormatForAria.md +++ b/docs/framework/angular/reference/functions/injectFormatForAria.md @@ -9,11 +9,13 @@ title: injectFormatForAria function injectFormatForAria(): (hotkey, options) => string | undefined; ``` -Defined in: [injectFormatForAria.ts:36](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/injectFormatForAria.ts#L36) +Defined in: [injectFormatForAria.ts:39](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/injectFormatForAria.ts#L39) Returns `formatForAria` with the provider's `platform` as the default. Use its value for `aria-keyshortcuts`, so screen readers announce the shortcut. -It returns `undefined` for a multi-step sequence or no hotkey, so an +It returns `undefined` for a multi-step sequence, no hotkey, or a hotkey +that can't fire right now (one that is disabled, in a suspended scope, a +suspended character key, or not registered), so an `[attr.aria-keyshortcuts]` binding omits the attribute. Call it in an injection context, such as a field initializer; the returned function works anywhere, including templates. An explicit `platform` option wins. diff --git a/docs/framework/angular/reference/functions/injectHotkeysContext.md b/docs/framework/angular/reference/functions/injectHotkeysContext.md index 9a1302212..0794ce839 100644 --- a/docs/framework/angular/reference/functions/injectHotkeysContext.md +++ b/docs/framework/angular/reference/functions/injectHotkeysContext.md @@ -9,7 +9,7 @@ title: injectHotkeysContext function injectHotkeysContext(): HotkeysContextValue; ``` -Defined in: [hotkeys-provider.ts:310](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L310) +Defined in: [hotkeys-provider.ts:312](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L312) Returns the nearest provider's context. Injecting it activates that provider's scope. diff --git a/docs/framework/angular/reference/functions/provideHotkeys.md b/docs/framework/angular/reference/functions/provideHotkeys.md index 792ea8fbb..09d435df0 100644 --- a/docs/framework/angular/reference/functions/provideHotkeys.md +++ b/docs/framework/angular/reference/functions/provideHotkeys.md @@ -9,7 +9,7 @@ title: provideHotkeys function provideHotkeys(options?): Provider; ``` -Defined in: [hotkeys-provider.ts:299](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L299) +Defined in: [hotkeys-provider.ts:301](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/hotkeys-provider.ts#L301) Provides default options, app hotkeys, and the user's custom hotkeys to an injector, such as the application or a component. diff --git a/docs/framework/ember/guides/accessibility.md b/docs/framework/ember/guides/accessibility.md index a0fceb59c..a55397a70 100644 --- a/docs/framework/ember/guides/accessibility.md +++ b/docs/framework/ember/guides/accessibility.md @@ -10,9 +10,9 @@ Keyboard shortcuts help people who navigate without a mouse, but shortcuts can g These protections are on by default: -- **Typing in fields and widgets.** Single keys and `Shift` or `Alt` chords don't fire while focus is in a text field, ``, or `contenteditable` element. Native buttons keep `Enter` and `Space`, links keep `Enter`, and ARIA widgets such as menus, listboxes, tabs, and grids keep their navigation keys. Configure this with `ignoreInputs` (see [Hotkey options](./hotkeys#hotkey-options)). Hotkeys targeted at the field itself still fire there, and so do `Escape`, function keys, and `Control` or `Meta` chords. - **Characters typed with AltGr.** On keyboards where AltGr types characters such as `@` or `€`, typing them doesn't fire `Control+Alt` hotkeys. -- **Open overlays.** While focus is inside a native ``, popover, or ARIA dialog or menu, outer `Escape` hotkeys stay out of the way so the overlay closes first (see [Let an open overlay handle Escape](../../../guides/sensible-defaults.md#let-an-open-overlay-handle-escape)). To suspend all other page hotkeys while a dialog is open, activate an exclusive [scope](./hotkey-manager#activate-a-scope). +- **Open overlays.** While focus is inside an overlay that closes on `Escape`, such as a native ``, a light-dismiss popover, or an ARIA dialog or menu, outer `Escape` hotkeys stay out of the way so the overlay closes first. An overlay that closes in your own handler still needs that handler (see [Let an open overlay handle Escape](../../../guides/sensible-defaults.md#let-an-open-overlay-handle-escape)). To suspend all other page hotkeys while a dialog is open, activate an exclusive [scope](./hotkey-manager#activate-a-scope). ## Announce shortcuts to screen readers @@ -20,14 +20,20 @@ Screen readers announce a control's shortcut from its [`aria-keyshortcuts`](http ```gts import Component from '@glimmer/component' -import { useFormatForAria, useFormatForDisplay } from '@tanstack/ember-hotkeys' +import { + useFormatForAria, + useFormatForDisplay, + useHotkey, +} from '@tanstack/ember-hotkeys' import type { EmberHotkeysScope } from '@tanstack/ember-hotkeys' class SearchButton extends Component<{ Args: { hotkeys: EmberHotkeysScope } }> { formatForAria = useFormatForAria(this.args.hotkeys) formatForDisplay = useFormatForDisplay(this.args.hotkeys) + search = () => openSearch()