diff --git a/.changeset/key-lock-state.md b/.changeset/key-lock-state.md new file mode 100644 index 000000000..15d6f62ee --- /dev/null +++ b/.changeset/key-lock-state.md @@ -0,0 +1,26 @@ +--- +'@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 +'@tanstack/hotkeys-devtools': minor +--- + +Track whether Caps Lock, Num Lock, and Scroll Lock are on. `KeyStateTracker` adds `locks` to its store state and a `getKeyLockState(key)` method. Each value is `true`, `false`, or `null`. It stays `null` until the user presses a key, clicks, or moves the mouse, because browsers can't report lock state on page load. It goes back to `null` when the window loses focus or the page is hidden. Num Lock and Scroll Lock are always `null` on macOS and iOS, where browsers don't report them. The tracker reads lock state only from real user input. + +Each framework adapter provides a reactive helper for reading lock state: + +- `useKeyLockState` (React, Preact, Octane, Vue, Ember) +- `createKeyLockState` (Solid, and on Alpine scopes) +- `getKeyLockState` (Svelte) +- `injectKeyLockState` (Angular) +- `KeyLockStateController` (Lit) + +The devtools panel shows each lock as on, off, unknown, or unavailable next to the held keys. diff --git a/.intent/review-state.json b/.intent/review-state.json index f46b0c940..d95615589 100644 --- a/.intent/review-state.json +++ b/.intent/review-state.json @@ -3,31 +3,34 @@ "baseline": "ad56a4b0dbf3c34d8552eca2cc88c5c7000d520a", "items": { "skill:packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md": { - "fingerprint": "255ec26bb6b0e45fb6015eb584821783aa57b34efcfeb96c577fc7ed5a1ce768", + "fingerprint": "17cb6a2883ca11440ca0b7c04325553993605d8d10357c977893bbd4ab5f29eb", "snapshot": { "docs/framework/alpine/guides/app-hotkeys.md": "e0077fbe45936d6b81d61d778dc212b4a4e0cfa7df1bd99ecfd2470db1c842aa", "docs/framework/alpine/quick-start.md": "822d70174d351fa7b2fe2e773b4fb3a2b558191386001025cdf2efac7b0c7854", - "packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md": "71ca5c6882ed176e66bcedc59baa96c5bb495c226f434070d7979551b7815f44", + "packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md": "9fbcfd1931996b186aed72bd06bae929b68dd83840b170a33cad1065c11db2e9", "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": "c0bb763e72ee3e4e5788b3ea6634cf7f1887357db31328237b92fe2d70c464b8", + "packages/alpine-hotkeys/src/createHotkeysScope.ts": "748fc2a101e310ba390f530b52d5baf53223eb7429d4f64eabd5121c2e16a5b3", "packages/alpine-hotkeys/src/hotkeyRecorderPlugin.ts": "8ff86447e513f47002c49ed9f60269d485b0cd65b87277bb52cf2d8286ddbd36", "packages/alpine-hotkeys/src/hotkeysPlugin.ts": "35ffb8b772a178690d956f3b3a165b577c40d1723e186f5ffdef4a985f7be90b", "packages/alpine-hotkeys/src/scope.ts": "4521cc6c2abb1706bdd2b73e158e67b2eef7f5d325e22b1f50b65cf473b56905" }, - "head": "95c311c273b9eb8df7854d28123f76b64fef478a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "updated", - "reason": "The ARIA formatter row says it returns undefined while the hotkey can't fire.", - "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] + "reason": "Added the key lock state helper next to the held-key helpers, with its null-until-reported behavior", + "evidence": [ + "packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md", + "packages/alpine-hotkeys/src/createHotkeysScope.ts" + ] }, "skill:packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md": { - "fingerprint": "7aae0c0a61af428fdda33f884609ebc70649ece4850d52c239b6b5456fcde285", + "fingerprint": "3d4c70de8ce959d565dc712f666b094804bef80c0f449b7fadbb280470bc8278", "snapshot": { "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": "46f6499fe577a5c5e5078451e41879b635cb64b55b101af90e274b286c6ca248", + "packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md": "14c17a31e61eb0dec8a73ef9537fef7806eca0e4b189f4a670623db7c5fbcd9c", "packages/angular-hotkeys/skills/angular-hotkeys/references/app-hotkeys.md": "afe63a82c2e4b9269b0fece249317a1ad197481cb8d4ae434c5da48d64f0a2b5", "packages/angular-hotkeys/src/hotkeys-provider.ts": "0c9f8e12b58925b0b0aade3b5700658501eab39ef617ef14f893d6ca0803c3d2", "packages/angular-hotkeys/src/injectAppHotkeys.ts": "4be08715cf59eeefc5c07d5dd77c2abfd60bdd5d9a4cab57d8c7fb39e632d257", @@ -35,17 +38,17 @@ "packages/angular-hotkeys/src/injectHotkeyRecorder.ts": "8b4271888eee532d0674a6b6d034cdc76e06e6080988418fceb5e43756cdcaef", "packages/angular-hotkeys/src/injectHotkeys.ts": "c923eba82e55ee9f0357ea0c355eca05719c0aea806a9acbb2b4de55d2d20d42" }, - "head": "95c311c273b9eb8df7854d28123f76b64fef478a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "updated", - "reason": "The ARIA formatter row says it returns undefined while the hotkey can't fire. The provider row says suspendCharacterKeys applies app-wide.", + "reason": "Added the key lock state helper next to the held-key helpers, with its null-until-reported behavior", "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "skill:packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md": { - "fingerprint": "655a765d46da9570725f43a42c3ce566b4879d88ffdc6108b0c7f71b75b2d705", + "fingerprint": "9dcd95e8d6ae55925d4374ef911523c7a75fba944ef0f1f47b7fdba982593426", "snapshot": { "docs/framework/ember/guides/app-hotkeys.md": "0bb08f63eb9974ff3d8a0f408a3db321e16f8c6f285b1bbccd6e6b0a940ca4a7", "docs/framework/ember/quick-start.md": "2c8dc08cae925871408200ef4636adbac20cb23312d18773d726ca340c91f0e1", - "packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md": "ba01bc3f8ac09141f1f5c33adf1c7052bd78ecf5c20c83060cb554a5ab3525bf", + "packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md": "80f84449e5baf6eee842e9885fe446ce673e388c9730ca62489d87a3e4f7f416", "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", @@ -55,9 +58,9 @@ "packages/ember-hotkeys/src/useHotkeyRecorder.ts": "67e6ac60574e3d510f8d6199a5eb92303b6315051d1fb8a42decf75dcebc070b", "packages/ember-hotkeys/src/useHotkeys.ts": "963345b3720ddefec8677b9b9d9dfa2b6346e22b32f9f2034d406b43e5c5ccf8" }, - "head": "95c311c273b9eb8df7854d28123f76b64fef478a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "updated", - "reason": "The ARIA formatter row says it returns undefined while the hotkey can't fire.", + "reason": "Added the key lock state helper next to the held-key helpers, with its null-until-reported behavior", "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] }, "skill:packages/hotkeys/skills/app-hotkeys/SKILL.md": { @@ -86,7 +89,7 @@ "evidence": ["packages/hotkeys/skills/app-hotkeys/SKILL.md"] }, "skill:packages/hotkeys/skills/hotkeys-core/SKILL.md": { - "fingerprint": "bfb37c8ddbaac1014655cf2539b09a218177023a544bd63904574edc1ad7f0ef", + "fingerprint": "2082661f12c18305f510c0809ebe52fc47e99e313e8e2b90e0455a431ca02b6d", "snapshot": { "docs/framework/react/guides/hotkeys-provider-and-scopes.md": "57039ef29571e18c058ea77d104140e33c9b7fbda7de561c4d77247a47a566ce", "docs/framework/react/guides/hotkeys.md": "4f49e8ef1873ac0f85ed63f7c7f3d5fe6d0561b510dbe42c6a593217335ff1db", @@ -94,7 +97,7 @@ "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/skills/hotkeys-core/references/testing.md": "c2957eaac34ca431832069156504cf7434dcb96d5227bcb7cbb2129dc8e979bd", "packages/hotkeys/src/hotkey-manager.ts": "ebe90882990b299a83201ec93d78b82711ca9b2ecc96924de1cf4701eaa096d1", "packages/hotkeys/src/match.ts": "d94dfcb1665ef00c77c07972948d482827bb8707c74ebc8bf39246834b548e16", "packages/react-hotkeys/tests/skills/editor-shortcuts/editor-shortcuts.test.tsx": "73411ec7c25652244ed31ad4120880dfc08d6e10af959bef04d2df5360769fde", @@ -107,68 +110,68 @@ "packages/react-hotkeys/tests/skills/editor-shortcuts/solution.tsx": "ec81379bf0e3a9950222cf8525f82f8abefeb6b46339550fd3a8622e61bf4f0d", "packages/react-hotkeys/tests/skills/editor-shortcuts/task.md": "9610d80e7add59f0433cbf210562ff8c481dc2c14371ce31c00a329d9ff1fedf" }, - "head": "95c311c273b9eb8df7854d28123f76b64fef478a", - "outcome": "no-change", - "reason": "The core skill's rows for aria-keyshortcuts and suspendCharacterKeys still hold; the changes are adapter formatter behavior and docs wording.", - "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "updated", + "reason": "Added the key lock state helper next to the held-key helpers, with its null-until-reported behavior; the testing reference explains faking isTrusted and getModifierState for lock state tests", + "evidence": ["packages/hotkeys/skills/hotkeys-core/references/testing.md"] }, "skill:packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md": { - "fingerprint": "3105f272866100f17cf5314285b4ebdc355476d3465f79b64180aa8baa3adecb", + "fingerprint": "a496914b60e56de77a476ccaa4667aef730b9c987330015dc20b405ea51deb89", "snapshot": { "docs/framework/lit/guides/app-hotkeys.md": "28e5957604e21250f70aa925a6576f820dd0be2957b209557064d013e45abb94", "docs/framework/lit/quick-start.md": "23152e6740cda01b503a85357b6cca35d948ae23d9dc4703c7fddc3b53c354f3", - "packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md": "bac95b213bba7964e1f973684027a06c8722e88a11d4b8f2e301e143cd570e9a", + "packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md": "326b0a1ddd9579c65389e755d5a2e0a69512ef7f91aca21bda7db9c0ddb51521", "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": "95c311c273b9eb8df7854d28123f76b64fef478a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "updated", - "reason": "The ARIA formatter row says it returns undefined while the hotkey can't fire.", + "reason": "Added the key lock state helper next to the held-key helpers, with its null-until-reported behavior", "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "skill:packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md": { - "fingerprint": "127c156c48524631edd245c7dd13c26907561b8ec15794200f35ff8ebacfa38a", + "fingerprint": "fe99ff17e7ea19751be9a88ca777f54e74af6b0925622c2c28c8b769e0ba8411", "snapshot": { "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": "f9cbf6dd4b548db4fc2bd8ad6589510160842fd1fd9f45cdb64e423f26d7482c", + "packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md": "06ea4ccbb6e9d980cda4d7e13a4c316e62a018a3c6e00c7d53f1c213a33a72b1", "packages/octane-hotkeys/skills/octane-hotkeys/references/app-hotkeys.md": "ddb3f0f9457fa245b29e8cf8e98088a3bafbf493e4d702a6228795f6ee358442", "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": "95c311c273b9eb8df7854d28123f76b64fef478a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "updated", - "reason": "The ARIA formatter row says it returns undefined while the hotkey can't fire. The provider row says suspendCharacterKeys applies app-wide.", + "reason": "Added the key lock state helper next to the held-key helpers, with its null-until-reported behavior", "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] }, "skill:packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md": { - "fingerprint": "da9755a3130b4a87531be55d5fce2ffc4b7fba927995f2c919c1ab4535c9807e", + "fingerprint": "efbce1ed478d37f38dd9ea969c295da90f271a71d12e0dfaa978dcfaf866ed37", "snapshot": { "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": "5b1b89a8f6da83f2a42f99aeb32f0f5fd3aa96383b19027d42aa03cab6ab6a52", + "packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md": "8381abcdc9fbc74d58c1d40a6edc77e04ab78bc6e635cfabd5167c318ea8c9a0", "packages/preact-hotkeys/skills/preact-hotkeys/references/app-hotkeys.md": "e28a5865d89549981131050565cbf6a9e9d7ed658c3d9254036d09888b5e42cb", "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": "95c311c273b9eb8df7854d28123f76b64fef478a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "updated", - "reason": "The ARIA formatter row says it returns undefined while the hotkey can't fire. The provider row says suspendCharacterKeys applies app-wide.", + "reason": "Added the key lock state helper next to the held-key helpers, with its null-until-reported behavior", "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] }, "skill:packages/react-hotkeys/skills/react-hotkeys/SKILL.md": { - "fingerprint": "00d6060684abe8030076d8e75d23d17b7a0ca789578294c5115009ef38f087c6", + "fingerprint": "40b526e2652320a0455b01990e3f33310e33a6ce389ceed9bbe81b1089296f44", "snapshot": { "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": "ddbd147610148807ecd9ab079abe3cb48ed476182f77c6b76dcf2e07f1a9cb20", + "packages/react-hotkeys/skills/react-hotkeys/SKILL.md": "4ead31b71e6b4421acd117a6dc88f9f99be166b1e97a27317871fd949df9994b", "packages/react-hotkeys/skills/react-hotkeys/references/app-hotkeys.md": "61b0ecf75e33407b23df56c9aa121af21c9710f6ea5fd40f7778805ce88a9933", "packages/react-hotkeys/src/AppHotkeysProvider.tsx": "b75dd646421fc7f5f5fa868607aa342aeb0b55c109c1adc666d78d968b1fad1a", "packages/react-hotkeys/src/HotkeysProvider.tsx": "fdd85693fa9b1d84341a0152601c606ca2be92d33e66019472d78029661dca78", @@ -193,34 +196,34 @@ "packages/react-hotkeys/tests/skills/shortcut-settings/solution.tsx": "3441296dea51490188d34991428fe2b8bf11ce6fafbdf6e2f7595ff7082f1400", "packages/react-hotkeys/tests/skills/shortcut-settings/task.md": "7163ed96e6694c745461f0edaf296b353906cfdb868f9c5df7d08ee01a4ba0ea" }, - "head": "95c311c273b9eb8df7854d28123f76b64fef478a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "updated", - "reason": "The ARIA formatter row says it returns undefined while the hotkey can't fire. The provider row says suspendCharacterKeys applies app-wide.", + "reason": "Added the key lock state helper next to the held-key helpers, with its null-until-reported behavior", "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] }, "skill:packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md": { - "fingerprint": "c8816f78f6c0e4c17f76c3c445037eacce8ccbf1465ee9f72bd25ee486d22f95", + "fingerprint": "72ee2e030b8a054fa7241736950db31389fd1465d974e9bfdb2c74cf47bd4010", "snapshot": { "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": "785a04e7979042bfde32ff12647b2969d384d2af71d2904dfbe99d312a2fbc96", + "packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md": "601752f5bc3f738a0914d900f90a9e96c16328f52377e91211267b230178957c", "packages/solid-hotkeys/skills/solid-hotkeys/references/app-hotkeys.md": "336b062c42f81d57ef2da8a5a1432976298fb90b8fb8a40121c38a8a0eda7c3c", "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": "95c311c273b9eb8df7854d28123f76b64fef478a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "updated", - "reason": "The ARIA formatter row says it returns undefined while the hotkey can't fire. The provider row says suspendCharacterKeys applies app-wide.", + "reason": "Added the key lock state helper next to the held-key helpers, with its null-until-reported behavior", "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "skill:packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md": { - "fingerprint": "07da37c1e3554c58c6919813d40a6130746a73e8490f56a229b62f522a86f04c", + "fingerprint": "591ef8403b33841b113154e572da75e0b784ddccec3e368be43d2f5dd7fa1684", "snapshot": { "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": "03bae3471e9d7b1b2a9ad2f8c7ec0541f6e0896b8a72be0e34be98d013d8b54c", + "packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md": "5eaa409fa539f4a0c6271a0535ba87cc47ea546e5bec7e7c36334418f8aa6755", "packages/svelte-hotkeys/skills/svelte-hotkeys/references/app-hotkeys.md": "f60367e6667d76633886af1398807b5ad54e4586e58b41b2f6d7ee180ab0e1c4", "packages/svelte-hotkeys/src/HotkeysCtx.ts": "4fd46081dcce520aea19e850e1443f696353419940bc9a9801bd073817a6a585", "packages/svelte-hotkeys/src/HotkeysProvider.svelte": "abd035cea0913fb80716bd04b710267118c83ec761081b5de97047a2f98f5ce0", @@ -229,17 +232,17 @@ "packages/svelte-hotkeys/src/createHotkeys.svelte.ts": "dcc7112c4a11a36198083d3f9c18dd6d5cdddb10248ed65ee14b8ff15f0c4757", "packages/svelte-hotkeys/src/getAppHotkeys.svelte.ts": "5ec9bad56cc543b56d985c56324f5cb557e5fee624b209e8361a0002e4fd888e" }, - "head": "95c311c273b9eb8df7854d28123f76b64fef478a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "updated", - "reason": "The ARIA formatter row says it returns undefined while the hotkey can't fire. The provider row says suspendCharacterKeys applies app-wide.", + "reason": "Added the key lock state helper next to the held-key helpers, with its null-until-reported behavior", "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "skill:packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md": { - "fingerprint": "7f38c07c0297d14406c1eb5966e1393587fba07121619eb8b16e8860f184b90e", + "fingerprint": "fbe7405fc7bff160083174e907429cf40ffdbb8026112034e695ae868ecb831a", "snapshot": { "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": "edb2b4a66eb3f114ae6cfe515e213fff896c215ac51fb3a1d92b1e8315bfd81e", + "packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md": "9b05d9755ea133380817aa2ff46b4bc11fd7b5cbb7cf8a9ea70788a7ac3d9663", "packages/vue-hotkeys/skills/vue-hotkeys/references/app-hotkeys.md": "9ff677a8ff993fb9a8e749e6885cbff28fd08bd1dc0f8d0150da19d29ec18736", "packages/vue-hotkeys/src/HotkeysProvider.tsx": "c7b37b66dc4310be828619997ced75f1b6e4f6a8d7606bf3404c5f8abc5f2528", "packages/vue-hotkeys/src/HotkeysProviderContext.ts": "2cc7eaec4d348401d36c7b1a06903e91b13ee41c3057eb2d0f7bda55f6c9fa3a", @@ -248,13 +251,13 @@ "packages/vue-hotkeys/src/useHotkeyRecorder.ts": "f9090de677350d72ae3e1732eab11e5b89b5cf00021f2cc5e88d2fe3f2fb743d", "packages/vue-hotkeys/src/useHotkeys.ts": "a01bedb627cd6cad884cf59b2077c33b34289589e6a101fefb5ca1709dabb668" }, - "head": "95c311c273b9eb8df7854d28123f76b64fef478a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "updated", - "reason": "The ARIA formatter row says it returns undefined while the hotkey can't fire. The provider row says suspendCharacterKeys applies app-wide.", + "reason": "Added the key lock state helper next to the held-key helpers, with its null-until-reported behavior", "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "planning:_artifacts": { - "fingerprint": "e4526c20687ced11e57d76c864c0d79e0226753e3379d1772b35403aab532857", + "fingerprint": "89772ef90e5da5297886e3a39521ee83b6ad01c4287f75cdc74d0e06b4aec223", "snapshot": { "_artifacts/domain_map.yaml": "9020ca258eebcb3575acad17ed5fc62d53306d6e07d6dc6456c006fd8f05f94b", "_artifacts/skill_spec.md": "f599f1f45212638ba62f1cee4e234e47353b422cec1fec5c525208d23cc52d34", @@ -285,23 +288,23 @@ "docs/framework/vue/guides/hotkeys-provider-and-scopes.md": "939a50350a1f9bd8d80f4b0ef903293a8441bf783991af28d96c57da0efb2564", "docs/framework/vue/quick-start.md": "00e4e57173a5e03a8299398a1611e0a309738b0563f69e765bc10cda8fa95be1", "docs/guides/sensible-defaults.md": "a6f0399f730a2f4742f206efb08517f2493db96b098e76b4082686a07c1c229f", - "packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md": "71ca5c6882ed176e66bcedc59baa96c5bb495c226f434070d7979551b7815f44", + "packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md": "9fbcfd1931996b186aed72bd06bae929b68dd83840b170a33cad1065c11db2e9", "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": "c0bb763e72ee3e4e5788b3ea6634cf7f1887357db31328237b92fe2d70c464b8", + "packages/alpine-hotkeys/src/createHotkeysScope.ts": "748fc2a101e310ba390f530b52d5baf53223eb7429d4f64eabd5121c2e16a5b3", "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": "46f6499fe577a5c5e5078451e41879b635cb64b55b101af90e274b286c6ca248", + "packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md": "14c17a31e61eb0dec8a73ef9537fef7806eca0e4b189f4a670623db7c5fbcd9c", "packages/angular-hotkeys/skills/angular-hotkeys/references/app-hotkeys.md": "afe63a82c2e4b9269b0fece249317a1ad197481cb8d4ae434c5da48d64f0a2b5", "packages/angular-hotkeys/src/hotkeys-provider.ts": "0c9f8e12b58925b0b0aade3b5700658501eab39ef617ef14f893d6ca0803c3d2", "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": "ba01bc3f8ac09141f1f5c33adf1c7052bd78ecf5c20c83060cb554a5ab3525bf", + "packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md": "80f84449e5baf6eee842e9885fe446ce673e388c9730ca62489d87a3e4f7f416", "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", @@ -314,31 +317,31 @@ "packages/hotkeys/skills/app-hotkeys/references/recording.md": "cee8af22374e484878c9f148d4fee911de4239700961ffb8a00880e779aa6f67", "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/skills/hotkeys-core/references/testing.md": "c2957eaac34ca431832069156504cf7434dcb96d5227bcb7cbb2129dc8e979bd", "packages/hotkeys/src/app-hotkeys.ts": "4fc089bf6f3f247d8ccd6cc819571d945f45e95271e5169707a6c29d7ec6011f", "packages/hotkeys/src/conflicts.ts": "005f63fdfa139d51203306ef9b3fb83ebf76ddd22553162a5262827a5e9d0921", "packages/hotkeys/src/hotkey-manager.ts": "ebe90882990b299a83201ec93d78b82711ca9b2ecc96924de1cf4701eaa096d1", "packages/hotkeys/src/hotkey-recorder.ts": "bcb4f1e3940abb28b3611ee59d43c6545489dec15fd02b4d070b06ebd725f4bc", "packages/hotkeys/src/match.ts": "d94dfcb1665ef00c77c07972948d482827bb8707c74ebc8bf39246834b548e16", - "packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md": "bac95b213bba7964e1f973684027a06c8722e88a11d4b8f2e301e143cd570e9a", + "packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md": "326b0a1ddd9579c65389e755d5a2e0a69512ef7f91aca21bda7db9c0ddb51521", "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": "f9cbf6dd4b548db4fc2bd8ad6589510160842fd1fd9f45cdb64e423f26d7482c", + "packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md": "06ea4ccbb6e9d980cda4d7e13a4c316e62a018a3c6e00c7d53f1c213a33a72b1", "packages/octane-hotkeys/skills/octane-hotkeys/references/app-hotkeys.md": "ddb3f0f9457fa245b29e8cf8e98088a3bafbf493e4d702a6228795f6ee358442", "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": "5b1b89a8f6da83f2a42f99aeb32f0f5fd3aa96383b19027d42aa03cab6ab6a52", + "packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md": "8381abcdc9fbc74d58c1d40a6edc77e04ab78bc6e635cfabd5167c318ea8c9a0", "packages/preact-hotkeys/skills/preact-hotkeys/references/app-hotkeys.md": "e28a5865d89549981131050565cbf6a9e9d7ed658c3d9254036d09888b5e42cb", "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": "ddbd147610148807ecd9ab079abe3cb48ed476182f77c6b76dcf2e07f1a9cb20", + "packages/react-hotkeys/skills/react-hotkeys/SKILL.md": "4ead31b71e6b4421acd117a6dc88f9f99be166b1e97a27317871fd949df9994b", "packages/react-hotkeys/skills/react-hotkeys/references/app-hotkeys.md": "61b0ecf75e33407b23df56c9aa121af21c9710f6ea5fd40f7778805ce88a9933", "packages/react-hotkeys/src/AppHotkeysProvider.tsx": "b75dd646421fc7f5f5fa868607aa342aeb0b55c109c1adc666d78d968b1fad1a", "packages/react-hotkeys/src/HotkeysProvider.tsx": "fdd85693fa9b1d84341a0152601c606ca2be92d33e66019472d78029661dca78", @@ -362,13 +365,13 @@ "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": "785a04e7979042bfde32ff12647b2969d384d2af71d2904dfbe99d312a2fbc96", + "packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md": "601752f5bc3f738a0914d900f90a9e96c16328f52377e91211267b230178957c", "packages/solid-hotkeys/skills/solid-hotkeys/references/app-hotkeys.md": "336b062c42f81d57ef2da8a5a1432976298fb90b8fb8a40121c38a8a0eda7c3c", "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": "03bae3471e9d7b1b2a9ad2f8c7ec0541f6e0896b8a72be0e34be98d013d8b54c", + "packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md": "5eaa409fa539f4a0c6271a0535ba87cc47ea546e5bec7e7c36334418f8aa6755", "packages/svelte-hotkeys/skills/svelte-hotkeys/references/app-hotkeys.md": "f60367e6667d76633886af1398807b5ad54e4586e58b41b2f6d7ee180ab0e1c4", "packages/svelte-hotkeys/src/HotkeysCtx.ts": "4fd46081dcce520aea19e850e1443f696353419940bc9a9801bd073817a6a585", "packages/svelte-hotkeys/src/HotkeysProvider.svelte": "abd035cea0913fb80716bd04b710267118c83ec761081b5de97047a2f98f5ce0", @@ -376,7 +379,7 @@ "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": "edb2b4a66eb3f114ae6cfe515e213fff896c215ac51fb3a1d92b1e8315bfd81e", + "packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md": "9b05d9755ea133380817aa2ff46b4bc11fd7b5cbb7cf8a9ea70788a7ac3d9663", "packages/vue-hotkeys/skills/vue-hotkeys/references/app-hotkeys.md": "9ff677a8ff993fb9a8e749e6885cbff28fd08bd1dc0f8d0150da19d29ec18736", "packages/vue-hotkeys/src/HotkeysProvider.tsx": "c7b37b66dc4310be828619997ced75f1b6e4f6a8d7606bf3404c5f8abc5f2528", "packages/vue-hotkeys/src/HotkeysProviderContext.ts": "2cc7eaec4d348401d36c7b1a06903e91b13ee41c3057eb2d0f7bda55f6c9fa3a", @@ -385,10 +388,10 @@ "packages/vue-hotkeys/src/useHotkeyRecorder.ts": "f9090de677350d72ae3e1732eab11e5b89b5cf00021f2cc5e88d2fe3f2fb743d", "packages/vue-hotkeys/src/useHotkeys.ts": "a01bedb627cd6cad884cf59b2077c33b34289589e6a101fefb5ca1709dabb668" }, - "head": "95c311c273b9eb8df7854d28123f76b64fef478a", - "outcome": "updated", - "reason": "Logged that the ARIA formatters announce only hotkeys that can fire and that the provider option applies app-wide.", - "evidence": ["_artifacts/skill_spec.md"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Lock state is part of the existing held-key helper area in every adapter skill; no new skill, domain, or task", + "evidence": ["_artifacts/skill_tree.yaml"] }, "source:.changeset/intent-skills.md": { "fingerprint": "a3f3a7466ee28fed505a518e9cd18cfda96a2282d207d73317b00d60b4430f62", @@ -463,12 +466,10 @@ "snapshot": { "docs/framework/ember/reference/functions/useHotkeyHint.md": "043dfd01f5ef5605aba8f18ff93cb354c4c8fa33827d6e176425c054edb13e5c" }, - "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": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": ["docs/framework/ember/reference/functions/useHotkeyHint.md"] }, "source:docs/framework/lit/guides/hotkey-hints.md": { "fingerprint": "3f2fe13084fb9246f82751996420a904150d7d6b7d2d31c943281ae9f0661ff5", @@ -603,23 +604,21 @@ "snapshot": { "docs/framework/svelte/reference/functions/getHotkeyHint.md": "6a45b5abfe78841c741b0c07a0e57e3a8c6315b960a7969a944a93a4c62f4c0e" }, - "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": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": ["docs/framework/svelte/reference/functions/getHotkeyHint.md"] }, "source:docs/framework/svelte/reference/interfaces/SvelteHotkeyHint.md": { "fingerprint": "f554ec3f05a362604ec6971e68446bad020475e83c3baf25cbc1e333607dfb5a", "snapshot": { "docs/framework/svelte/reference/interfaces/SvelteHotkeyHint.md": "fa2df17e6b1a7d1ba159bf4954cd0c3d6b3490266e57bcedcc2696b4b2586887" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/svelte/reference/interfaces/SvelteHotkeyHint.md" ] }, "source:docs/framework/vue/guides/hotkey-hints.md": { @@ -1393,84 +1392,100 @@ "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/reference/functions/createHotkeysScope.md": { - "fingerprint": "d5d4344ec0c65ae81fa84103bb142a6fcea0844c77ec630f6dad84d773609e85", + "fingerprint": "2e94ba7a6b5615da65f758fd6e6ad1f2f43ba272a4e0fa7990d7b25083150f71", "snapshot": { - "docs/framework/alpine/reference/functions/createHotkeysScope.md": "442aa14f5e9390b706d02f1afe3b3d0f5714b1382cf5bf5b4f1b5539226f65a9" + "docs/framework/alpine/reference/functions/createHotkeysScope.md": "10380b186b240bb4c239d876485c76a959c727c16d8fd1cc261d3723941b9daa" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/alpine/reference/functions/createHotkeysScope.md" + ] }, "source:docs/framework/alpine/reference/interfaces/AlpineCreateHotkey.md": { - "fingerprint": "fd71590f7bc14d1e7034e8eeac8b8493069a05f5c5005527db6b5f36674eb825", + "fingerprint": "d9fdb45971749ccc1208f271efdb79beb51f113a6259e482d33879af23489952", "snapshot": { - "docs/framework/alpine/reference/interfaces/AlpineCreateHotkey.md": "ea49e12a89e3546dd716e6647d18e6f8ed2004b448128e2b653289856e847816" + "docs/framework/alpine/reference/interfaces/AlpineCreateHotkey.md": "b3b5eb02cb3fb3280fad0c10ecbbe3131c0515e2df7ea08b727f2ea97a6e24a8" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/alpine/reference/interfaces/AlpineCreateHotkey.md" + ] }, "source:docs/framework/alpine/reference/interfaces/AlpineCreateHotkeyRecorder.md": { - "fingerprint": "28c12c439a878fda1e43f83e66d43e4468b5baf29d13cfb9a72f6c49272bad96", + "fingerprint": "c14fa29161fbe287bcbd26e16c64ab1ba195598ff48ded7e9cbaecda7fd87aed", "snapshot": { - "docs/framework/alpine/reference/interfaces/AlpineCreateHotkeyRecorder.md": "0c58ad8fcdc81572e4b73e732e0aec9581744b53e55eb6967fec2b7c2c7d443c" + "docs/framework/alpine/reference/interfaces/AlpineCreateHotkeyRecorder.md": "78db4314c313a67967cfefdd6351b7142011148fa038cf6127463a8631dd5be3" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/alpine/reference/interfaces/AlpineCreateHotkeyRecorder.md" + ] }, "source:docs/framework/alpine/reference/interfaces/AlpineCustomHotkeys.md": { - "fingerprint": "805cc71c6e0e97f16fb3b624eeae782b24238d834cea1f00bf352921ce24b4bb", + "fingerprint": "e7bdee67d7c02f2668bee7947598abfbae3128a8dccc0253a815b01945037933", "snapshot": { - "docs/framework/alpine/reference/interfaces/AlpineCustomHotkeys.md": "e5db24621383078634cf6edaaa12a899097a7b9cdc8c4cd4a90f2ce5bb5d0638" + "docs/framework/alpine/reference/interfaces/AlpineCustomHotkeys.md": "783252486d94305a33a8425fc122735f59fd378687eab2a4c5ad11fb7dfacf3e" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/alpine/reference/interfaces/AlpineCustomHotkeys.md" + ] }, "source:docs/framework/alpine/reference/interfaces/AlpineHotkeyRecorder.md": { - "fingerprint": "a5bd5e175b044419c85633cfda6659768f3e6f44c1d67e6bb2df2e39fbb1276e", + "fingerprint": "a700c174f9365623dd892e164453b1b7f748bad0af9f0c962e248fefecdb5fe8", "snapshot": { - "docs/framework/alpine/reference/interfaces/AlpineHotkeyRecorder.md": "692ea0dc4df69a59ba5941230ddc9472af26d65000dc1a3ded8993ad39a282e4" + "docs/framework/alpine/reference/interfaces/AlpineHotkeyRecorder.md": "da9440c69660e68d41e51da4952cd9930d7a7364a2de5083f4c407e2366cee62" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/alpine/reference/interfaces/AlpineHotkeyRecorder.md" + ] }, "source:docs/framework/alpine/reference/interfaces/AlpineHotkeyState.md": { - "fingerprint": "d88041e833af6ac2a28934522c4b0e08862d21bac7a00626f92106ca68bf1c3b", + "fingerprint": "9ac5ad4464eae205c188f4775b233c0c9a8084cdee134dd8e8e9b5f455c1c0b7", "snapshot": { - "docs/framework/alpine/reference/interfaces/AlpineHotkeyState.md": "262ee21e1854c2c38daf3947c78edeafbffeadb8564387f3f1add4cbe3c632af" + "docs/framework/alpine/reference/interfaces/AlpineHotkeyState.md": "b9252775d52e9bf9b8a9ba29d3e641d32df6cab578282ab80bf9081c2b6904e0" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/alpine/reference/interfaces/AlpineHotkeyState.md" + ] }, "source:docs/framework/alpine/reference/interfaces/AlpineHotkeys.md": { - "fingerprint": "0897afab6eb6731380b99b0e594efd9542061988f44ffdf0134d5e46f5e8bc65", + "fingerprint": "cf80985f96bb16cc2f537dd2ac17a2d8b5660646eebae7a0e6c98aa8957b57ed", "snapshot": { - "docs/framework/alpine/reference/interfaces/AlpineHotkeys.md": "926ef092369544f8e8ea8cb41dec552cebc96ee115ec192920d8fcc21b8ead2a" + "docs/framework/alpine/reference/interfaces/AlpineHotkeys.md": "5ab2f60718d0c3a1e97c4f04e071658bb9977b45ff19d0e99233cb3bc29b3f06" }, - "head": "95c311c273b9eb8df7854d28123f76b64fef478a", - "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the ARIA formatter and suspension changes.", - "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages regenerated after JSDoc wording fixes", + "evidence": [ + "docs/framework/alpine/reference/interfaces/AlpineHotkeys.md" + ] }, "source:docs/framework/alpine/reference/interfaces/DefaultHotkeysOptions.md": { - "fingerprint": "8676efda0d25efdace29a052cfbaab60656e022e807da470adaeaabd4ea21ffa", + "fingerprint": "34a07db82abd2aca1465b159eea045b2e95c4d4b12c173e9a87107e140cfd696", "snapshot": { - "docs/framework/alpine/reference/interfaces/DefaultHotkeysOptions.md": "f1d54cb33a444c5c040d1ac7b89bfef5dd883d7bc2931e00dca61032e956cc1b" + "docs/framework/alpine/reference/interfaces/DefaultHotkeysOptions.md": "4013b983a660c3c0e9b945eba77975c707cba9a607cddf448a9a7e97fda34d30" }, - "head": "95c311c273b9eb8df7854d28123f76b64fef478a", - "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the ARIA formatter and suspension changes.", - "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/alpine/reference/interfaces/DefaultHotkeysOptions.md" + ] }, "source:docs/framework/alpine/reference/interfaces/HotkeyRegistrationsResult.md": { "fingerprint": "a95818717650ab877ce69b9e168d32a07e5b12d6c273bbb4fe11edbd89eae17f", @@ -1485,54 +1500,64 @@ ] }, "source:docs/framework/alpine/reference/type-aliases/AlpineAppHotkeyOptions.md": { - "fingerprint": "a028b04641631783e93020f178a3a7f530ba6d60ac4bb50bef3b8778d8b8201e", + "fingerprint": "f814455767786fcde6c034432fa3e31c9749c9ff54130eba89aabf7d94eee190", "snapshot": { - "docs/framework/alpine/reference/type-aliases/AlpineAppHotkeyOptions.md": "57ba62c7d427e0cdf11592da4e31716cf90a03311e397316722ecada35be065c" + "docs/framework/alpine/reference/type-aliases/AlpineAppHotkeyOptions.md": "d0183022f3a62917f77a7b5d58441bf8d6d824a6b91ea91129c3e7cd389a68f1" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/alpine/reference/type-aliases/AlpineAppHotkeyOptions.md" + ] }, "source:docs/framework/alpine/reference/type-aliases/AlpineHotkeyCommonOptions.md": { - "fingerprint": "5f1f8f9bc4c7494e7ea9cea087bc37288622947db48e924ee7c639ec248ead54", + "fingerprint": "d2aefdf2ae0cdedf44799d399c80993a13862a8865411a808c5a108b2523ac36", "snapshot": { - "docs/framework/alpine/reference/type-aliases/AlpineHotkeyCommonOptions.md": "9fbcc83bb61682f5933fb4913486954f950c05fc14cf106de301c3033daa7546" + "docs/framework/alpine/reference/type-aliases/AlpineHotkeyCommonOptions.md": "bf2e9abbfd55e91ce2ace029a20d749060709242102bbf493cb8256b530eca53" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/alpine/reference/type-aliases/AlpineHotkeyCommonOptions.md" + ] }, "source:docs/framework/alpine/reference/type-aliases/AlpineHotkeyDefinition.md": { - "fingerprint": "a7f9313d57839325af4dc9271afc09ac4af69b34bfc214243fcd034a744fa7b6", + "fingerprint": "315fd51addba422eac02d57e40b344f4658b3159e91ed4aa44edd269820915bc", "snapshot": { - "docs/framework/alpine/reference/type-aliases/AlpineHotkeyDefinition.md": "28523ec660b55737c3328e7a200aed0e274c4dfbe9b5496f7ec1d6633e958373" + "docs/framework/alpine/reference/type-aliases/AlpineHotkeyDefinition.md": "95198aed574d8fc5abbf113f8a4195a5bb958ee0bc47e9d538173682f19985e8" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/alpine/reference/type-aliases/AlpineHotkeyDefinition.md" + ] }, "source:docs/framework/alpine/reference/type-aliases/AlpineHotkeyOptionsFor.md": { - "fingerprint": "06ae319c05a8a14edd0ca5873c7791d6018b023fe95c98165df7d32e6bde65d5", + "fingerprint": "a6fa791e87acac825e06ede0fd16caae233d6bb34580f437304e750812f6d791", "snapshot": { - "docs/framework/alpine/reference/type-aliases/AlpineHotkeyOptionsFor.md": "f172a4b2da0bc2565b021b5496a3fa3de8bc6b1f2921a843a7deffe84236461d" + "docs/framework/alpine/reference/type-aliases/AlpineHotkeyOptionsFor.md": "9713884bcbd43ab0bb9a30fdc7fc2ab8d4069d6d4a4ed940a7978743ba0a41d7" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/alpine/reference/type-aliases/AlpineHotkeyOptionsFor.md" + ] }, "source:docs/framework/alpine/reference/type-aliases/AlpineHotkeyTarget.md": { - "fingerprint": "940d6cead19d47f7c5ec028be62aa0ca1d82ddc46b40c6c5b7b68d6bf5e9f78e", + "fingerprint": "78f05b898ac173bc6a38ba142a2d7f34d9ee19ad9b91b9a888fd41888264f9aa", "snapshot": { - "docs/framework/alpine/reference/type-aliases/AlpineHotkeyTarget.md": "d7866c01ce47d40fedfc25bc968963a20327623a103252d57f5da9c6f8fdd079" + "docs/framework/alpine/reference/type-aliases/AlpineHotkeyTarget.md": "70c4a7a093ffb5d262f69069f38cec76f33e480325dd3b05d0faf223d309be0d" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/alpine/reference/type-aliases/AlpineHotkeyTarget.md" + ] }, "source:docs/framework/alpine/reference/type-aliases/MaybeGetter.md": { "fingerprint": "bd9f742d937efabc24de3b07be444448f9ce849677b73c15825f7d6bbb61f229", @@ -1577,14 +1602,14 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/angular/reference/index.md": { - "fingerprint": "eb701b223856e934cf06ddc3cfe0433ea33e5dc2a9e876b8b26d39412b2228d1", + "fingerprint": "ecfe580d63803d35d97fc4a10e550fbea43cadaf7c8773fb1ea14e67634a5d2b", "snapshot": { - "docs/framework/angular/reference/index.md": "d3d5a5be6c443642b09a2801d7f244adf3ccf87334d27db9a1dfc4f7d243b820" + "docs/framework/angular/reference/index.md": "b4533726392b98973f30904969a397d2977c8844e62724d3cd7b0d6ab648c9a5" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": ["docs/framework/angular/reference/index.md"] }, "source:docs/framework/ember/guides/cheat-sheet-ui-helpers.md": { "fingerprint": "7c6a12e074d89bf0d553c5859e33e10f26ed32fe662dec4a185b41aab2f25462", @@ -1611,20 +1636,22 @@ "snapshot": { "docs/framework/ember/reference/functions/useHotkeyScopesState.md": "2f91de4d2efad205745c0481ed92d446b4199655beb58215e42a57a186482283" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/ember/reference/functions/useHotkeyScopesState.md" + ] }, "source:docs/framework/ember/reference/index.md": { - "fingerprint": "9a7ad8e43c95dd214b9902925784e6fd314ae6a885e3db326eee4daeb2dc228f", + "fingerprint": "5cc65de1331925ac5ef5fe7913d2225447b6c97ef32789c235b6f2b8e75bd935", "snapshot": { - "docs/framework/ember/reference/index.md": "46e169301552744ecd9b50cb67ebf7494e9410d4a0866037e185f7d179d6e2ee" + "docs/framework/ember/reference/index.md": "4256a39d7a57768a0eec4bcd9309c67bd0abe289f41a813013a4c627255ca85c" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": ["docs/framework/ember/reference/index.md"] }, "source:docs/framework/lit/guides/cheat-sheet-ui-helpers.md": { "fingerprint": "0be8dbfa45e6aac82889d526de532e7764ae5402b71ce194c7c4ea73643ed3dc", @@ -1647,24 +1674,26 @@ "evidence": ["packages/lit-hotkeys/skills/lit-hotkeys/SKILL.md"] }, "source:docs/framework/lit/reference/classes/HotkeyScopesStateController.md": { - "fingerprint": "fe439ea1349e1d5e6315578ee2121443f323112b964b131ae710b3c36e99b97f", + "fingerprint": "4e1f78d08d888959951f3612f851fe07d527659d9bc5f291a075e5428d97a0c1", "snapshot": { - "docs/framework/lit/reference/classes/HotkeyScopesStateController.md": "f5a521b653f10815686d8ec8c9de7538c72aeb5e78a1200583054c6af6d8f352" + "docs/framework/lit/reference/classes/HotkeyScopesStateController.md": "376332fd1f40612700be10e3db50b89241a075ed89ab92f632bfebdc34adceca" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/lit/reference/classes/HotkeyScopesStateController.md" + ] }, "source:docs/framework/lit/reference/index.md": { - "fingerprint": "9d7553d127513c2d10bff4c0b89ba19980ab08d8f45dd9597b1bd91e91ab81ed", + "fingerprint": "f225f039ed49941e92b5ae8e4fe4618c1a7377a872ce877c3b7a6efa7e1791bb", "snapshot": { - "docs/framework/lit/reference/index.md": "d0b3693a0abfe3243014a00ffeac7a8fa28d5b1bda7420592d0bc38700fc53a6" + "docs/framework/lit/reference/index.md": "78fa1d610337503c9ce593364735f51cea1e78dc548a010a04fdb9a08357b2c0" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": ["docs/framework/lit/reference/index.md"] }, "source:docs/framework/octane/guides/cheat-sheet-ui-helpers.md": { "fingerprint": "7e42cac93baa54fee613ea1375ff656740e094fe266ef2d76f7c81ab81947571", @@ -1697,14 +1726,14 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/octane/reference/index.md": { - "fingerprint": "5a899ebc0cc02529bb4cd2ff0f1af6c4b0671fbbd31de0f1eddb834644c5fe06", + "fingerprint": "e5923ddd9a796b3afefd1e4081a37d4a07c43e4695c0f6b7a9e43679d400edbe", "snapshot": { - "docs/framework/octane/reference/index.md": "dd464e8ac41d8e5a4bc07c35cb959b623f3f83752970d0a07cfecd25f39fc2a0" + "docs/framework/octane/reference/index.md": "2b93747a997e7337f543260231be1ff7b7ffd9b3585c1f2f3be2a58455e6258b" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": ["docs/framework/octane/reference/index.md"] }, "source:docs/framework/preact/guides/cheat-sheet-ui-helpers.md": { "fingerprint": "4868cec8d8b0b8e933a9f59707e6c1967bb005765ed3fea3bde8b0e3158d9cb5", @@ -1737,14 +1766,14 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/preact/reference/index.md": { - "fingerprint": "b7bfd278d92cc7a95077847ad0a98fc293604781148de8212b08f452d933e2a9", + "fingerprint": "319ef3a67b65d81b281e561048a40afa2c98d927ac6673df0b50d47c9c722868", "snapshot": { - "docs/framework/preact/reference/index.md": "b7841cdf04f5d81147e89f5b02a687913a2ae0dab2b2977d52987c9502ff66c2" + "docs/framework/preact/reference/index.md": "5028206920ee1e41c96abda40f740fbf84c31c3cb5cf3a16cf220810d09eddec" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": ["docs/framework/preact/reference/index.md"] }, "source:docs/framework/react/guides/hotkey-manager.md": { "fingerprint": "cb66e78b031fb982254c5aebaca447783100ed767b9374316f19313fcd4bc92f", @@ -1767,14 +1796,14 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/react/reference/index.md": { - "fingerprint": "d6994525cfdfa1556e41b34124c8b7136f5e78897add516429651f37bd04d369", + "fingerprint": "efb5d03a8369bcdb8c79904b05da7d46b9bdc34ece86892c565388d375c04bac", "snapshot": { - "docs/framework/react/reference/index.md": "521b2d497169d287493e08ddb939063df99092e470bb85fc99995156bdc2fb38" + "docs/framework/react/reference/index.md": "5b60d416271d5c5fdd36ba0bb935c70f2c85fc7e939296736cb5a6cf147cadcc" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": ["docs/framework/react/reference/index.md"] }, "source:docs/framework/solid/guides/cheat-sheet-ui-helpers.md": { "fingerprint": "74fb4c7d2e3198415f44f1206a8a1486bc80b91fd00743d90e39bdf549de26d0", @@ -1807,14 +1836,14 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/solid/reference/index.md": { - "fingerprint": "105a2e591cff8d316447cd124cec8fee0e4f0ac7004777506597245c4a9dc7cc", + "fingerprint": "f486bf1e803264879d016c48fece409cff67a7cdd153af5f623a6c2ab59d5586", "snapshot": { - "docs/framework/solid/reference/index.md": "5c392fabdada3681cc9efa6b3dc89b3a0a3414209cd4f5077ffd40dfcd792996" + "docs/framework/solid/reference/index.md": "5fff6ebaa910de95288e491e10e139a276940ac61b53268f3e0f778bad8018c5" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": ["docs/framework/solid/reference/index.md"] }, "source:docs/framework/svelte/guides/cheat-sheet-ui-helpers.md": { "fingerprint": "edd796c19b5372975bd1b67fa1f22191962a2886c2ac29a197a4733a907ff7fb", @@ -1841,30 +1870,34 @@ "snapshot": { "docs/framework/svelte/reference/functions/getHotkeyScopesState.md": "5a9f6ac345150027c91bbf404e55bec0ce427930ff3839d591d7e32099a33a03" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/functions/getHotkeyScopesState.md" + ] }, "source:docs/framework/svelte/reference/index.md": { - "fingerprint": "66fcb9474bab936115d6dd27776a5ad6a219cf7cb06d351772e1b8a38fa6472d", + "fingerprint": "5ed7b051efaebfc476ca857c82a0526cd601a6719c67ec4c27d36bf58466b811", "snapshot": { - "docs/framework/svelte/reference/index.md": "5939240dc4afae3b788aa6b615fc7f0bea8977ca48ff6427dc7a59ee468df091" + "docs/framework/svelte/reference/index.md": "d1c3c0c09abc182fa754a21d3f8cfbd225798850b7860c0f63b7243da066bb73" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": ["docs/framework/svelte/reference/index.md"] }, "source:docs/framework/svelte/reference/interfaces/SvelteHotkeyScopesState.md": { "fingerprint": "d498c228313b113f3d645c3f9b463707a67d32493b3adcefa7a082350da1d5cb", "snapshot": { "docs/framework/svelte/reference/interfaces/SvelteHotkeyScopesState.md": "d506cf7ea7fa17f2e2edf216faa226e8c447365257e4236fdb7f84d03423f53d" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/interfaces/SvelteHotkeyScopesState.md" + ] }, "source:docs/framework/vue/guides/cheat-sheet-ui-helpers.md": { "fingerprint": "eb40c6373978c62151c9b14a1e6c27ffc06e8afea37929815de92860970da5c5", @@ -1897,24 +1930,24 @@ "evidence": ["pnpm generate-docs"] }, "source:docs/framework/vue/reference/index.md": { - "fingerprint": "0f29392a0a4de00b0029480f69424a384ee74fad09509fe356a4b25e4c4559d9", + "fingerprint": "edd7fd15eb753d1e21637d0e6b0fa49d80825f495273168824d0f4edd2c0893b", "snapshot": { - "docs/framework/vue/reference/index.md": "935865f49e266daf70e1b21705a1eba7088b636df513c840fcc9d6a246560411" + "docs/framework/vue/reference/index.md": "760ad181907cbbadec1c82ebde2677c8ea5f89d9ce414bd78dc3c6295aca6cc2" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": ["docs/framework/vue/reference/index.md"] }, "source:docs/reference/index.md": { - "fingerprint": "9802c4b2a6700601abc778f8597b5897cc01fa900b696b93af586f704f928dd1", + "fingerprint": "2ecf3e96accb369c986bf9dd570765222de896693d8ccb68cecf800b92261751", "snapshot": { - "docs/reference/index.md": "4f91452dabfacc18d6c003ae1c859216b02eb1ea2363b0b80e070d9187d75997" + "docs/reference/index.md": "8a42af31e99062cbbcc25a4c5cf2d666e98a71dd647d249f656311e0b339760f" }, - "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"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": ["docs/reference/index.md"] }, "source:docs/reference/type-aliases/HotkeyRegistrationStatus.md": { "fingerprint": "224516b2f9aa1fda4d5ff3723228d8fc539537fd0e4fa24b6291605b419fc89e", @@ -1937,24 +1970,24 @@ "evidence": ["packages/alpine-hotkeys/src/createHotkeyScopesState.ts"] }, "source:packages/alpine-hotkeys/src/types.ts": { - "fingerprint": "89b5a65115980a88593ed2902d8be219efbfa3be4beddd352ac1aa07749dbdb4", + "fingerprint": "d5ebbdfffcaa1b41a84deffe321388b561fb659ecdea40d11011ec7e1927581e", "snapshot": { - "packages/alpine-hotkeys/src/types.ts": "84b9da0df01d22db946dc106fc3d256d89a4a7af9046db490f6386b70b80768c" + "packages/alpine-hotkeys/src/types.ts": "3bc5a16b6d6c51f852d06f3677777bcd2ee764ba12c49bd90de7da594e76ba3e" }, - "head": "95c311c273b9eb8df7854d28123f76b64fef478a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Source for the live-only ARIA formatters or the suspension fixes. The skill's rows cover the change.", - "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["packages/alpine-hotkeys/src/types.ts"] }, "source:packages/angular-hotkeys/src/index.ts": { - "fingerprint": "1985f1b41acda9f12d26299f4dd23a179836fed71894345e7b617fc4452fa945", + "fingerprint": "006e0602684042c84ef9ad57e9d617ccee4e2f0c97c63b3fb4c859f52b39aef8", "snapshot": { - "packages/angular-hotkeys/src/index.ts": "c73601d5816ad022f55b29a61a0d6d5f16343a707b244f8ca764ae812ed1a243" + "packages/angular-hotkeys/src/index.ts": "a3cefb1311a52c6af9515e7156324dd1e0f55c1223b58f179f6f1023c9ac6235" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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"] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/angular-hotkeys/src/index.ts"] }, "source:packages/angular-hotkeys/src/injectHotkeyScopesState.ts": { "fingerprint": "70a3169e1d8c95a00a9e393d5446ffff0527420017bbc92393bb12b894db075e", @@ -1980,14 +2013,14 @@ "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/ember-hotkeys/src/index.ts": { - "fingerprint": "19ec6c24606145846172e2f6cb33cb1bca9380487546a7308408bc87666c5019", + "fingerprint": "39cfc0d7bf7a70809a32c25484c7dcd49b518913cdca11e43e032bd7179d9df5", "snapshot": { - "packages/ember-hotkeys/src/index.ts": "40afca5fce27e1a2b7097b97d682c3ba65a4b0155cb2d0d7098def74b1b56146" + "packages/ember-hotkeys/src/index.ts": "e90436001557c18d471dd70e7a989231a01fcae50ca5bb7d76364cf7268291ba" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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"] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/ember-hotkeys/src/index.ts"] }, "source:packages/ember-hotkeys/src/useHotkeyScopesState.ts": { "fingerprint": "f09696791667531dc19e8a8ddd2db5c56c3bf0c4401b171ee908c23a90b8a73e", @@ -2000,34 +2033,36 @@ "evidence": ["packages/ember-hotkeys/src/useHotkeyScopesState.ts"] }, "source:packages/lit-hotkeys/src/controllers/hotkey-scopes-state.ts": { - "fingerprint": "99e2e14c2902bfa756244f0fd04837d1e5ea7ae175ea43d8209be18c955de0a5", + "fingerprint": "f57d147f388ee2693ad113dc8d46399fc57a0d4bb85790bb9582dbd83295ca68", "snapshot": { - "packages/lit-hotkeys/src/controllers/hotkey-scopes-state.ts": "d0f01d286ed90909f0c89ef08a8209533dba090d3da1f8a7e3dd654ab6ca88e4" + "packages/lit-hotkeys/src/controllers/hotkey-scopes-state.ts": "8097cd150630c323cec68e163a76fa6c55d83acba68c4e7a7e5ab248b6185973" }, - "head": "e56edd6b54a755f8bc9a34243d3a497c56560840", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Covered by the skill reviews for the affected adapters in this PR.", - "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": [ + "packages/lit-hotkeys/src/controllers/hotkey-scopes-state.ts" + ] }, "source:packages/lit-hotkeys/src/controllers/index.ts": { - "fingerprint": "383b78f1ab7eb4394c500d90330c4afcf85c904f954d0b9ab80b82952abfcc49", + "fingerprint": "db95a489640396c122b07c2d75278ea94c685061b906e4cf72eab69f77b18d9c", "snapshot": { - "packages/lit-hotkeys/src/controllers/index.ts": "80cbfbdc9e306dfbbafcc8bfa8aa8a78957c3703c5f2abf968d2670b124c605a" + "packages/lit-hotkeys/src/controllers/index.ts": "15db320fae18659db10cb3fede71f168bb01d8ee5ec78a6161a7fd39a6af9383" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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"] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/lit-hotkeys/src/controllers/index.ts"] }, "source:packages/octane-hotkeys/src/index.ts": { - "fingerprint": "abf411fb57794db6ebb8a5f923b1f3c6a36efbe9dd0d88b754a4f5f6f978e7bc", + "fingerprint": "01de911812cc6001c83e228b39ace7a2f20508ed227a5afc44cf7816c20f7ecb", "snapshot": { - "packages/octane-hotkeys/src/index.ts": "08b3d66250e89d6ba78fa666cd4bfc11fcc3a888c19a3c83b9e5b3b20c946053" + "packages/octane-hotkeys/src/index.ts": "4a168bfd7c285e356eb29fd8916c0c82703980e71387b7c1a2c5d7ab8051ff5e" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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"] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/octane-hotkeys/src/index.ts"] }, "source:packages/octane-hotkeys/src/useHotkeyScopesState.ts": { "fingerprint": "3b29279a2a81b4c22b625c71cbfa488641d4c28ef5f6b1b90513ac7927e03c9d", @@ -2054,14 +2089,14 @@ ] }, "source:packages/preact-hotkeys/src/index.ts": { - "fingerprint": "8545d6fefac148a14e18ebb01c19597599ef33e393340db20f66740edaf44dbb", + "fingerprint": "cff2a58762a9a89e08a53b16e5670d4a3bcc17118f85541f6ba881ea81e7f8b0", "snapshot": { - "packages/preact-hotkeys/src/index.ts": "f05a0226e5d3200e68c6d371561f54a2a03538aa7306a3df73bd0e81905a7197" + "packages/preact-hotkeys/src/index.ts": "00ced031b672e773ef7934a86e53392947c69c51dd3fa41c925e9374802dc954" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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"] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/preact-hotkeys/src/index.ts"] }, "source:packages/preact-hotkeys/src/useHotkeyScopesState.ts": { "fingerprint": "c26dfeef79e6e32ecaa6930a7aae937a3c08ff3e785d5f68b884c88f5fd01bed", @@ -2089,14 +2124,14 @@ ] }, "source:packages/react-hotkeys/src/index.ts": { - "fingerprint": "d3bc75d3109bc28a42e5fba80bb46bd86ad785d2fa5e296b0e733fcc6c409ba5", + "fingerprint": "d20b3fede67bc33a2ca119124848dc58a4ec43148af131c05036936079cd6676", "snapshot": { - "packages/react-hotkeys/src/index.ts": "4d1d89e24b3d9c53cae54d8e7ea6d181ac488f6317df6a2d54e3b359c81c17e3" + "packages/react-hotkeys/src/index.ts": "4911ab610eb83d0444c58044cbd62f657691dcb925cef4784d674c86106aefd9" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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"] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/react-hotkeys/src/index.ts"] }, "source:packages/react-hotkeys/src/useHotkeyScopesState.ts": { "fingerprint": "e47bdb434c94ff29f3d91239601aa2830a94defedc5d215210fee4a3712969c2", @@ -2135,14 +2170,14 @@ ] }, "source:packages/solid-hotkeys/src/index.ts": { - "fingerprint": "2d108d3d662cc0edea1b9f186c07aeae36537768355c1a8897e55ac57c34877a", + "fingerprint": "6a66f574e38ce49ff25e95c37459c36c8f02ff3be96290d4ef0113f440036e23", "snapshot": { - "packages/solid-hotkeys/src/index.ts": "edf2bacb43a6c5744788aaaa0d0ef0f899e860b244e85a9606ad62830c8d80ca" + "packages/solid-hotkeys/src/index.ts": "fb4bae3bef89297daaaba3cc9ac2803d8fd8cddbcc84eebacdaced59fe4fc0e4" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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"] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/solid-hotkeys/src/index.ts"] }, "source:packages/solid-hotkeys/tests/scopes.test.tsx": { "fingerprint": "e373cc9b026efa36c92bfb7a05b76132a2f8e44c60e89f97b015dafcc5fd7095", @@ -2165,14 +2200,14 @@ "evidence": ["packages/svelte-hotkeys/src/getHotkeyScopesState.svelte.ts"] }, "source:packages/svelte-hotkeys/src/index.ts": { - "fingerprint": "16fb18c1b7bdfda759de01dfde4d8c57d5e47ba8d3149725bfd979b0d08f9070", + "fingerprint": "9c673f6de0c966ba2f904a8bfec65ecb6bd60d5c33174a91c8be7122e05cc8d9", "snapshot": { - "packages/svelte-hotkeys/src/index.ts": "583151365959946baca1e4ae4e5abe6dbd646bc869debdf906ded190479f7adb" + "packages/svelte-hotkeys/src/index.ts": "6064b05293c3f36b0866b08609a62bb19050691b14b7613886e48036cbcc8d61" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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"] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/svelte-hotkeys/src/index.ts"] }, "source:packages/svelte-hotkeys/tests/scopes-controls.svelte.ts": { "fingerprint": "70de3730c9b6bf8d27d698209c724bac88d56d94ba2bd3ab4d63d4a4c68ecb48", @@ -2198,14 +2233,14 @@ ] }, "source:packages/vue-hotkeys/src/index.ts": { - "fingerprint": "4b3891d171f2c4c6d4d0cb8a6f7830e90cde91e0eb14ebab9d1042743490d606", + "fingerprint": "9af05f4f1fdad7c209a4e712a5a7d72765f6ff344c43222a37b964604cf6506b", "snapshot": { - "packages/vue-hotkeys/src/index.ts": "524b8c9f6905ce270833b20f00ba37be19c098c13bb719df54f7a085cb4bd468" + "packages/vue-hotkeys/src/index.ts": "120148740c749ee34f0e710907130e31285eaa04532c1518891c16ad3409c37f" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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"] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/vue-hotkeys/src/index.ts"] }, "source:packages/vue-hotkeys/src/useHotkeyScopesState.ts": { "fingerprint": "be014509719d9813df8ac10a76c954c68707d4e8a961c538b3459035d82ada0e", @@ -2496,26 +2531,24 @@ "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/config.json": { - "fingerprint": "fea075dc2e266661bb0f3e6dbc5c255e32dbb5c182d0fa0b1d387245d5ff85a8", + "fingerprint": "ec197d36e49ea6b1d211fe8f85fdc0807f8222f27031535ef492e22e7965ec7f", "snapshot": { - "docs/config.json": "6c64296bd0acb976a55f4c38073a420275f48fb204770f58f10a2e4c4c067b6e" + "docs/config.json": "dd0f03d134bdc4bc77697d944c09009a5efd9dde6a46ed0e01a3e38c70699455" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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"] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["docs/config.json"] }, "source:docs/devtools.md": { - "fingerprint": "232bcf1c213622a4999fe9df77361090e77aa99e113bbb4ed747456499b52d08", + "fingerprint": "e35641de2fcdbe3c460042c80018eb1d53d9ca335b226917c13cc516ccdfe7a8", "snapshot": { - "docs/devtools.md": "9dfd55e5eaffda6efa3e69476aa7e71773624cfc1ce04300565412798b29c7d2" + "docs/devtools.md": "e15bbbc19ab26c57a31901515255cd2ecceea31b5eae3a1aa75d1bfab82508f6" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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/devtools.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["docs/devtools.md"] }, "source:docs/installation.md": { "fingerprint": "33f00e0b358171abfa19d4307e29aeccf6c1e1bf1485cd472c2cec98d04fc4fa", @@ -2528,16 +2561,14 @@ "evidence": ["docs/installation.md"] }, "source:nx.json": { - "fingerprint": "e014971f835053ffc5ccbd92101c2526f8b5f2893ec5585cb893ea2283872953", + "fingerprint": "06df89afcb52db823a0559b16d63bd4ce0670e26ad5da58e46625d4201121d10", "snapshot": { - "nx.json": "752e70c1c414ef9cb9b7b3e693dbd4314985a13af3aa756862e630f6a8220868" + "nx.json": "c198b1a1eb1f2b5352dd06422bb71baf89bc91b5ec35e4cb2b78cbf50df247a7" }, - "head": "a9dd5ea3fb8a4d3d660638add1766bc35ef114f6", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Test infrastructure only: shared Vitest setup, coverage config and thresholds, test fingerprints. No library behavior or public API changed, so no skill guidance is affected.", - "evidence": [ - "Changed: nx.json at a9dd5ea3fb8a4d3d660638add1766bc35ef114f6" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["nx.json"] }, "source:packages/ember-hotkeys/eslint.config.js": { "fingerprint": "697130dbc35f4c786d3a78574bd1e08cabfc2e68cea742291b2a80b3631f3684", @@ -3496,90 +3527,106 @@ "snapshot": { "docs/framework/svelte/reference/functions/createHotkey.md": "531f92a59563a3a7b25ab73e2061109ec3772b5fd57f54ce1eb89902e351f8c3" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": ["docs/framework/svelte/reference/functions/createHotkey.md"] }, "source:docs/framework/svelte/reference/functions/createHotkeyAttachment.md": { "fingerprint": "a870824a7c1ee2ad05c0b244a637a00e5e80959479a6272bc6f461f93c4aba94", "snapshot": { "docs/framework/svelte/reference/functions/createHotkeyAttachment.md": "d3a05c90cf3d278aea5640a0e00d23acd1bf65d10c4a5edb43f5ca2530a88048" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/functions/createHotkeyAttachment.md" + ] }, "source:docs/framework/svelte/reference/type-aliases/CreateAppHotkeyOptions.md": { "fingerprint": "6ecca45c2daa5e47c015c885c3bbcfd0448b45d88153e346c6a5f64ea2ed84a8", "snapshot": { "docs/framework/svelte/reference/type-aliases/CreateAppHotkeyOptions.md": "9e17c7ed3ac8b0b30feac1e96c697d3666febbe793cd021c5caacf7d5bbc6def" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/type-aliases/CreateAppHotkeyOptions.md" + ] }, "source:docs/framework/svelte/reference/type-aliases/CreateHotkeyChordOptions.md": { "fingerprint": "09a2987b8c8c94c32692d39f7b9c607bbcb5db472d52a164a85f143c31aed8e9", "snapshot": { "docs/framework/svelte/reference/type-aliases/CreateHotkeyChordOptions.md": "aa1512d4416769325375b0cdb1e22521a059d7aebc5ee00594a29a38f27af6ba" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/type-aliases/CreateHotkeyChordOptions.md" + ] }, "source:docs/framework/svelte/reference/type-aliases/CreateHotkeyCommonOptions.md": { "fingerprint": "92023dae0fb4a9e7813874b7fc026857818fd40f186de9e213c6caa46a111bfd", "snapshot": { "docs/framework/svelte/reference/type-aliases/CreateHotkeyCommonOptions.md": "f426738420e28da265907caff3c0b42581ffff1d870408879ad88040b9bbc952" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/type-aliases/CreateHotkeyCommonOptions.md" + ] }, "source:docs/framework/svelte/reference/type-aliases/CreateHotkeyOptions.md": { "fingerprint": "2e2ce0c3c89e902cd5ae756b9fd719fcd8feff08e0008b2bddab5444bd18b768", "snapshot": { "docs/framework/svelte/reference/type-aliases/CreateHotkeyOptions.md": "4a959b5d0f896a5d7ee27c44ddbd2877945caf78eccf4921ffbeeba05a42ceda" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/type-aliases/CreateHotkeyOptions.md" + ] }, "source:docs/framework/svelte/reference/type-aliases/CreateHotkeyOptionsFor.md": { "fingerprint": "7b528476b23df44466aca4d54da3793cc06ca70ed0a94953f51efce951eea9b1", "snapshot": { "docs/framework/svelte/reference/type-aliases/CreateHotkeyOptionsFor.md": "ec78481587c34260f70891943801f20a337d0f3673129aa65c1657d76f42ba3c" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/type-aliases/CreateHotkeyOptionsFor.md" + ] }, "source:docs/framework/svelte/reference/type-aliases/CreateHotkeySequenceOptions.md": { "fingerprint": "65caf72ca949488c13cca5f6031e040f02a059b7a8b8579c7fd48f9d264f0b40", "snapshot": { "docs/framework/svelte/reference/type-aliases/CreateHotkeySequenceOptions.md": "cdb58c98789cbc95450e845637163d49cc8e145b3d0fe256e6b8c056fe75014a" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/type-aliases/CreateHotkeySequenceOptions.md" + ] }, "source:docs/framework/svelte/reference/type-aliases/CreateHotkeyTarget.md": { "fingerprint": "5ae26c5f4f4c08cf4a826f500d2160521a926fdb6095feb465c60dde5cec8347", "snapshot": { "docs/framework/svelte/reference/type-aliases/CreateHotkeyTarget.md": "ef56b5c8b36661698e4eae7289842c837b6e0fac68265f70738fc14082d4872b" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/type-aliases/CreateHotkeyTarget.md" + ] }, "source:docs/framework/vue/reference/functions/provideHotkeysContext.md": { "fingerprint": "1b041e4c0e62f6bfd8929c77bc1275a48998447fe7710b0fe7238f9c1126c799", @@ -3733,13 +3780,13 @@ ] }, "source:packages/vue-hotkeys/tests/ssr.test.ts": { - "fingerprint": "657b4fc392ec3e7f1bd7df86a09c25612a5586458666286baee4d0974cf795c3", + "fingerprint": "94c81d2a04cd6c9ea22a7a085bec1b31ba1bef78fd7b8ab037827373286d4460", "snapshot": { - "packages/vue-hotkeys/tests/ssr.test.ts": "40c8e79995fc1ab59011f9e58ca38567c22e3a95b7eebed899c78b4c8aa57271" + "packages/vue-hotkeys/tests/ssr.test.ts": "57abdf599b11a370ba8bdb9fbfdc12c528e4e13040f4e15b9e512c24544ad049" }, - "head": "f993101815a9a769d0456da75313e68d89a19ff0", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Tests for keyboard layout labels. Skills don't describe the test suites.", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", "evidence": ["packages/vue-hotkeys/tests/ssr.test.ts"] }, "source:packages/vue-hotkeys/tests/useKeyHold.test.ts": { @@ -3753,16 +3800,14 @@ "evidence": ["packages/vue-hotkeys/tests/useKeyHold.test.ts"] }, "source:docs/framework/lit/guides/held-key-state-helpers.md": { - "fingerprint": "ce6d46785796aede37324bbb8577f76853805657e736a7172d76eec5dd96add1", + "fingerprint": "e089512052c106419eb6092144a124fb7a328cc143d5fd3586ad43be12bb2e67", "snapshot": { - "docs/framework/lit/guides/held-key-state-helpers.md": "4af6ab83ef35dad3036c8f35c9eeab36741f08d691a3b7f487774deca10765a9" + "docs/framework/lit/guides/held-key-state-helpers.md": "a7c4f797ec85859509546a4d85c27842520d501ccb7da5d769262f1f23475cb4" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", "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/held-key-state-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/lit/guides/held-key-state-helpers.md"] }, "source:docs/framework/lit/reference/classes/AppHotkeysController.md": { "fingerprint": "7a088349dbf7577fb0c13693d37b3c796bf8c80cfd576564bc231c7d5f8b9d1c", @@ -3777,24 +3822,26 @@ ] }, "source:docs/framework/lit/reference/classes/HeldKeyCodesController.md": { - "fingerprint": "8538d1f16fb116360373d672d6c847e54afa3a9b9505aa31c3239c79c2103355", + "fingerprint": "3c843d3341beb09432e8f54785921fb668c75e8e3fb8c075ccbdaba06b168144", "snapshot": { - "docs/framework/lit/reference/classes/HeldKeyCodesController.md": "8212933ec4257a23dad9aa8d50049fd4da25c3a4e62e15745faed2265b3f3cc4" + "docs/framework/lit/reference/classes/HeldKeyCodesController.md": "fbf4ddbb8fbd6124f8937b90d7d2367a750a789cd12f39c983458a961f0050a5" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/lit/reference/classes/HeldKeyCodesController.md" + ] }, "source:docs/framework/lit/reference/classes/HeldKeysController.md": { - "fingerprint": "4986c8d294c6731690dc342d1eff76528f905a04e3b2a2e61dff7d3fe641e412", + "fingerprint": "87b87c2a104a4940f4773805da4e7da1ee55b50963e4bec568c9a24627c911de", "snapshot": { - "docs/framework/lit/reference/classes/HeldKeysController.md": "52693d26adffb37b8934a277663949ad13ec47e9df5f78bfafd86f98a80d0a16" + "docs/framework/lit/reference/classes/HeldKeysController.md": "e1018541bf420d4a61ef11362fc975810ed837bdd2d7a4ace134ea3bad4e9519" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": ["docs/framework/lit/reference/classes/HeldKeysController.md"] }, "source:docs/framework/lit/reference/classes/HotkeyController.md": { "fingerprint": "a50007c131bdb9dc1f53c4ab5f151ee91adcc681e401d4392b59b5d9485141f9", @@ -3931,33 +3978,33 @@ "snapshot": { "docs/framework/svelte/reference/functions/createHotkeyRecorder.md": "d88963b80b01150c0c722d60b07001f5321eeac0311b3fbd1ff99643f5bb802b" }, - "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": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/functions/createHotkeyRecorder.md" + ] }, "source:docs/framework/svelte/reference/functions/createHotkeys.md": { "fingerprint": "b814f3e1e6a7b5ce0daf8ca46963f43f14b58cb35983edd48423b5013813f953", "snapshot": { "docs/framework/svelte/reference/functions/createHotkeys.md": "dff23bdb2e208cb57009e6e7f43db3fed66d6f7d510f8fd26dc247bee591fafd" }, - "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: docs/framework/svelte/reference/functions/createHotkeys.md at e7cbe578686100589221c8a0b6140496985e6c45" - ] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": ["docs/framework/svelte/reference/functions/createHotkeys.md"] }, "source:docs/framework/svelte/reference/functions/createHotkeysAttachment.md": { "fingerprint": "3641b6cec2b26c20210008ce4bf9e66712d4e179a2f29847612433fc35364cea", "snapshot": { "docs/framework/svelte/reference/functions/createHotkeysAttachment.md": "32e59c12c46f2b63e925c4f6f36d8e76fe691c61ce38485d3c68b98ee25014d9" }, - "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", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Changed: docs/framework/svelte/reference/functions/createHotkeysAttachment.md at e7cbe578686100589221c8a0b6140496985e6c45" + "docs/framework/svelte/reference/functions/createHotkeysAttachment.md" ] }, "source:docs/framework/svelte/reference/interfaces/SvelteHotkeyRecorder.md": { @@ -3965,11 +4012,11 @@ "snapshot": { "docs/framework/svelte/reference/interfaces/SvelteHotkeyRecorder.md": "daeddd5e13ad1a892af71cf15fade0f0fb2c9c69b2c40fc1aece71779d313209" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/svelte/reference/interfaces/SvelteHotkeyRecorder.md" ] }, "source:docs/framework/svelte/reference/type-aliases/CreateHotkeyDefinition.md": { @@ -3977,10 +4024,12 @@ "snapshot": { "docs/framework/svelte/reference/type-aliases/CreateHotkeyDefinition.md": "2c738a272cb299b070ccc5033d18232c49b39a230aa60193c1a68fccf412de53" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/type-aliases/CreateHotkeyDefinition.md" + ] }, "source:packages/lit-hotkeys/src/controllers/_server.ts": { "fingerprint": "0b7750533ae337fd08b2159e4e4c18384ef8e8ca8c92f340ea5ecb2842182bbe", @@ -3995,24 +4044,24 @@ ] }, "source:packages/lit-hotkeys/src/controllers/held-key-codes.ts": { - "fingerprint": "bdb78c5816f0ae846917626d6de3c0644399027ae5574ccba2b23d0c9af2bfaf", + "fingerprint": "96063febc63f734d6dbe30ec2ca189194b854bab5b79917d02f33f0c7e07882d", "snapshot": { - "packages/lit-hotkeys/src/controllers/held-key-codes.ts": "26cf610eaed0ed22d160ac71bf9163480d17c3954cb863ac053de01d06037391" + "packages/lit-hotkeys/src/controllers/held-key-codes.ts": "5f9339299017cb4bbbbcccc9fa72d5153609d1b9048f5122d72139fddeb93e3d" }, - "head": "e56edd6b54a755f8bc9a34243d3a497c56560840", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Covered by the skill reviews for the affected adapters in this PR.", - "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/lit-hotkeys/src/controllers/held-key-codes.ts"] }, "source:packages/lit-hotkeys/src/controllers/held-keys.ts": { - "fingerprint": "4f04ae2d61808adb9a4f71fb904f414ef51552697d55d28d81ebe354633fca55", + "fingerprint": "034100ced13bb7683540429d381f7d88ee841c8b451c83646a7adcfef76327ea", "snapshot": { - "packages/lit-hotkeys/src/controllers/held-keys.ts": "7f1dbedc568c954a996422328f0efc14a266b5cfe82ef94ae3acf3fbabc4b15d" + "packages/lit-hotkeys/src/controllers/held-keys.ts": "0381ebaca7695330ac87f9a8d3ad892cc6ba2c25a01bd0d04938cb65f4eb29f7" }, - "head": "e56edd6b54a755f8bc9a34243d3a497c56560840", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Covered by the skill reviews for the affected adapters in this PR.", - "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/lit-hotkeys/src/controllers/held-keys.ts"] }, "source:packages/lit-hotkeys/src/controllers/hotkey-registrations.ts": { "fingerprint": "141cddbe2500b15a67a190ac8f7bd60d27da31f0191888a86ee51cc13ca08d7d", @@ -4050,17 +4099,14 @@ ] }, "source:packages/lit-hotkeys/tests/ssr.test.ts": { - "fingerprint": "a2140d7fc068c44c0caec60da29e3e49e2b13679ec08b13fd325b4d10139d36e", + "fingerprint": "9d6f85e2352d5de27d4c3e12c28cd1ef9f76ab0d0cd5a9711e73175cfa1d7f3b", "snapshot": { - "packages/lit-hotkeys/tests/ssr.test.ts": "1f21a5f5d89984d4c94def75dca496ae11f2dc3eab419d0961981ad967e80c8f" + "packages/lit-hotkeys/tests/ssr.test.ts": "0fb354f97d6fa0d1a84f7ce8ae3761db9444e5837c0dd307e1bacef8e5600503" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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/ssr.test.ts", - "git diff 7d9cccc3 -- packages/lit-hotkeys/tests/ssr.test.ts" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/lit-hotkeys/tests/ssr.test.ts"] }, "source:packages/svelte-hotkeys/tests/effect-root-harness.svelte.ts": { "fingerprint": "e64b3f0c53a1531b1dce79f34f3b8fbe12824dbb547ec38f512d3cab914e86d9", @@ -4593,70 +4639,84 @@ "snapshot": { "docs/framework/svelte/reference/functions/getDefaultHotkeysOptions.md": "5990d778249949c52e0f91e2052fc17544f3a9fc10ec6df4a38c4a524cb469e3" }, - "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"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/functions/getDefaultHotkeysOptions.md" + ] }, "source:docs/framework/svelte/reference/functions/getHotkeysContext.md": { "fingerprint": "9adc8c6fe4557f8133d0f349215479f56ad1e2c404798ca3b462aa0f8b318408", "snapshot": { "docs/framework/svelte/reference/functions/getHotkeysContext.md": "39705e67b7781bc86774f3fcd1f4601f0abda71d94aa4a56a4a3e2460478b7cc" }, - "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"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/functions/getHotkeysContext.md" + ] }, "source:docs/framework/svelte/reference/functions/setHotkeysContext.md": { "fingerprint": "bcef4fa01a5231a6cf205d72d8b44d8d707e15f6bb3d53381e2c77988dfda1c6", "snapshot": { "docs/framework/svelte/reference/functions/setHotkeysContext.md": "844bae920e1417aab103457978e9bf0fa851b96c91c0e90271afa9454f535ef1" }, - "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"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/functions/setHotkeysContext.md" + ] }, "source:docs/framework/svelte/reference/interfaces/HotkeysContextOptions.md": { "fingerprint": "f69c3e070ff5be2593dc3cfecd2e5c211e8005bf57ffe84c49468c07cf3b0794", "snapshot": { "docs/framework/svelte/reference/interfaces/HotkeysContextOptions.md": "fabf0c90ebcf03b9461806c19dfe616fce489a29a8f2747d10830a7a7be562da" }, - "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"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/interfaces/HotkeysContextOptions.md" + ] }, "source:docs/framework/svelte/reference/interfaces/HotkeysProviderOptions.md": { "fingerprint": "07c0d4147976fc3dafaca8714f537d195607f631b711a6266c9c418edc258241", "snapshot": { "docs/framework/svelte/reference/interfaces/HotkeysProviderOptions.md": "8ba119e96c977dc6d2cb1a91c03c244fb532da2f80296a38646100a55195c096" }, - "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"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/interfaces/HotkeysProviderOptions.md" + ] }, "source:docs/framework/svelte/reference/interfaces/HotkeysProviderProps.md": { "fingerprint": "0b0ad6bfb8d2e117a2e76ce39d2dd9c8c37cb85a19b7d8992a1d73b6410c3c36", "snapshot": { "docs/framework/svelte/reference/interfaces/HotkeysProviderProps.md": "58f79957ac04a5507501c2f2f4408431b0b8b85300282dbafaca12cc50f01af2" }, - "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"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/interfaces/HotkeysProviderProps.md" + ] }, "source:docs/framework/svelte/reference/variables/DEFAULT_OPTIONS.md": { "fingerprint": "87129c1c7fecb184bce29962cff4d8073fc95d269815c93c4da4c26200aadc09", "snapshot": { "docs/framework/svelte/reference/variables/DEFAULT_OPTIONS.md": "4536827f4c14abe16aca3bc5720638e4737412a393c2810e79f1ac2e548697b9" }, - "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"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/variables/DEFAULT_OPTIONS.md" + ] }, "source:docs/framework/vue/guides/app-hotkeys.md": { "fingerprint": "02e8b7ded73cde03dd86cad60752a693e9f8fe8aab353530e477d3278e3da9b7", @@ -4899,14 +4959,14 @@ "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/classes/KeyStateTracker.md": { - "fingerprint": "044b823ef89d2dbcce7c10c4656befbc41cde7572ebd3145821331ea2d14f4a1", + "fingerprint": "0e5b612b8d6ab2c662a03c5223ae223d83e2ed238032cf265f3c3aff91765945", "snapshot": { - "docs/reference/classes/KeyStateTracker.md": "f8ac63419817adfd49be22f867c9cad67605d319527777afc21f4410683e2e07" + "docs/reference/classes/KeyStateTracker.md": "25c33404d419be98128820033b0a22450f09801fe3f618718f7fd7697f5ed0b5" }, - "head": "b789b9a62b3e6157c79477ab3acc6612d34b82be", - "outcome": "no-change", - "reason": "Review follow-ups: zone.js symbol prefix and AltGr held during composition; no skill guidance changes.", - "evidence": ["tests/listen.test.ts and key-state-tracker tests"] + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", + "outcome": "out-of-scope", + "reason": "Generated API reference pages", + "evidence": ["docs/reference/classes/KeyStateTracker.md"] }, "source:docs/reference/functions/checkHotkey.md": { "fingerprint": "b795c46d9627a330afd586eb39f0252d32ca063ec5ca61602cb3354248efe1d4", @@ -4919,14 +4979,14 @@ "evidence": ["docs/reference/functions/checkHotkey.md"] }, "source:docs/reference/functions/getKeyStateTracker.md": { - "fingerprint": "f43d79e814969e4df27fd39e369951a071288a27b9a0755e2e39a36b8deffa51", + "fingerprint": "7ae70e78e1c0a3247386a9a9a5665489ccf717e341f123f6539cf24701d364b7", "snapshot": { - "docs/reference/functions/getKeyStateTracker.md": "dccc8a32363485486512daa2f53dad7894c14d4b636ce6d5f463f3dd165ba441" + "docs/reference/functions/getKeyStateTracker.md": "c3110112c33809c4eabaca2c0792f78fd6cbde989993a3ae3ac2cba816def53f" }, - "head": "b789b9a62b3e6157c79477ab3acc6612d34b82be", - "outcome": "no-change", - "reason": "Review follow-ups: zone.js symbol prefix and AltGr held during composition; no skill guidance changes.", - "evidence": ["tests/listen.test.ts and key-state-tracker tests"] + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", + "outcome": "out-of-scope", + "reason": "Generated API reference pages", + "evidence": ["docs/reference/functions/getKeyStateTracker.md"] }, "source:docs/reference/interfaces/HotkeyChordRecorderOptions.md": { "fingerprint": "58b67699d05176d327b34c83507476486790e02d1b367f1f46399ffd50c8ec73", @@ -4979,16 +5039,14 @@ "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:docs/reference/interfaces/KeyStateTrackerState.md": { - "fingerprint": "87b90f4eb9f326182eeeeb4f341d5cdffffb955972ecaf103ecf7906400f61ea", + "fingerprint": "9d3eeb71aa5f03e9d2457a12c3dfef6a95dff234133447c353a847fb6cfd4eab", "snapshot": { - "docs/reference/interfaces/KeyStateTrackerState.md": "0fc769ff3ec3b346fcc40f58d9e97b1c8b1481fb4431a1f23545c55d2d726029" + "docs/reference/interfaces/KeyStateTrackerState.md": "61446a7fdb4c46b8474c072446a38b5457333c71999716703886d1183c10ba1d" }, - "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": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages regenerated after JSDoc wording fixes", + "evidence": ["docs/reference/interfaces/KeyStateTrackerState.md"] }, "source:docs/reference/interfaces/RecorderOptions.md": { "fingerprint": "96200fa9425a772c04ac9196ad0404ca77f02ea4464be5f544390558ca1f5465", @@ -5163,14 +5221,14 @@ ] }, "source:packages/hotkeys-devtools/tests/live-updates.test.tsx": { - "fingerprint": "7f763a4c54c80c5ce41a8fec45bc5fe9b81c062a9b6a70e580159546ca6416e2", + "fingerprint": "082159d052c4392519d288df5a0e096a07d9ece97cbbf3474c29894c7a12e320", "snapshot": { - "packages/hotkeys-devtools/tests/live-updates.test.tsx": "f69522c9f9c139ad2b005953de7849e06a1beb5f8f3c5b3d48d3bf7d7bc388c5" + "packages/hotkeys-devtools/tests/live-updates.test.tsx": "af94c83a86529cb836506f57ed40582f4a19d9daa967ceb375695e6a3660ec97" }, - "head": "62484c0a986018704e1ebe3a7f7c93061fa90942", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/hotkeys-devtools/tests/live-updates.test.tsx"] }, "source:packages/hotkeys/src/_app-hotkeys-factory.ts": { "fingerprint": "c402c32b78719f3d3a0db4266e810555958c26fd2d0c9440ac9ca87a5ae3a5ea", @@ -5217,14 +5275,14 @@ "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] }, "source:packages/hotkeys/src/key-state-tracker.ts": { - "fingerprint": "4bb5661d06e5172a9a0723dbeb9347eda7f90977d3f03b837f81ef0419cc0694", + "fingerprint": "c888a29cee115445c46f974b5d0608a641a5523b157b47b28f6a84695a4be10e", "snapshot": { - "packages/hotkeys/src/key-state-tracker.ts": "42532867041d349e306eaf87c7a12c99ccc40a70a675908c6a36305acdf1582e" + "packages/hotkeys/src/key-state-tracker.ts": "44739919fbc1b76fcc608f0ecb2bfa49aabaca3cf1407f5beab04a64384eed90" }, - "head": "b789b9a62b3e6157c79477ab3acc6612d34b82be", + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", "outcome": "no-change", - "reason": "Review follow-ups: zone.js symbol prefix and AltGr held during composition; no skill guidance changes.", - "evidence": ["tests/listen.test.ts and key-state-tracker tests"] + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["packages/hotkeys/src/key-state-tracker.ts"] }, "source:packages/hotkeys/src/validate.ts": { "fingerprint": "0f9690ccdbcba7a3478990102a3f72b2174a397cd69c1ee5ce965f9494ba14e3", @@ -5645,9 +5703,9 @@ "snapshot": { "docs/framework/ember/reference/classes/useHotkey.md": "ae7ebc77c5eb66a53d8db0d8ac751c95283c1bb75b5758e755b12d4fc5247604" }, - "head": "a0d13335f6d9976ac25ead467b4658185c741b51", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", "outcome": "out-of-scope", - "reason": "Source, test, CI, or generated docs change; the skills that cover it were reviewed in their own items.", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": ["docs/framework/ember/reference/classes/useHotkey.md"] }, "source:docs/framework/ember/reference/classes/useHotkeys.md": { @@ -5655,9 +5713,9 @@ "snapshot": { "docs/framework/ember/reference/classes/useHotkeys.md": "7ec477e4076912b6dfd111e40daaf0766b3c6cd13a878ebc3c33e46aad8a7ee8" }, - "head": "a0d13335f6d9976ac25ead467b4658185c741b51", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", "outcome": "out-of-scope", - "reason": "Source, test, CI, or generated docs change; the skills that cover it were reviewed in their own items.", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": ["docs/framework/ember/reference/classes/useHotkeys.md"] }, "source:docs/reference/functions/assertValidHotkey.md": { @@ -5863,16 +5921,14 @@ "evidence": ["packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md"] }, "source:docs/framework/alpine/guides/held-key-state-helpers.md": { - "fingerprint": "a9bda175db06a57adac731b260d3265306d5b21fa0ff856e0c79f35653d81458", + "fingerprint": "18a4fa8920ec43bf229bcd72ea3f60447c5b9877ab6085c9374b9a67b3e6cf4f", "snapshot": { - "docs/framework/alpine/guides/held-key-state-helpers.md": "a56135685c77cb0d99ba48e86f3077d7a83aa249c4e33a35e72a7da9ad2f70ef" + "docs/framework/alpine/guides/held-key-state-helpers.md": "ac0f5f631934ebe62e9f8dba0b6b8e1b3408e69805a036be9c123b5cfd5ade92" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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/held-key-state-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["docs/framework/alpine/guides/held-key-state-helpers.md"] }, "source:docs/framework/angular/guides/formatting-display.md": { "fingerprint": "a9287d55c45357db1189ff522ea9f0376b8296d920378042e638e5fb9a3af403", @@ -5885,16 +5941,14 @@ "evidence": ["packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md"] }, "source:docs/framework/angular/guides/held-key-state-helpers.md": { - "fingerprint": "40d65ae645a404141b7585667e4da687ee2bb04ea683dd0dd15a2c74779ea00a", + "fingerprint": "0b8c61574a5ad5881e906c5a96fd9454b2e8b83f3d9330314fc086eec2949058", "snapshot": { - "docs/framework/angular/guides/held-key-state-helpers.md": "6dbfb2790d0436aea123d97b865349113a2a46286fe187f0a3a9750a96b0619e" + "docs/framework/angular/guides/held-key-state-helpers.md": "ee71ca076f0238d1edf0b75f788dd78665aeac33bd322a1d3c4a4fd21c239d1d" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", "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/held-key-state-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/angular/guides/held-key-state-helpers.md"] }, "source:docs/framework/ember/guides/formatting-display.md": { "fingerprint": "be4fcb8b83244da213fa905b5e83c8cb7b1f5140c07c42c0ac8f2991df94ac09", @@ -5907,16 +5961,14 @@ "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] }, "source:docs/framework/ember/guides/held-key-state-helpers.md": { - "fingerprint": "f9d44ca56f6467b30bdb727225d6953af1f760f041ca635044147f33c98879e5", + "fingerprint": "8079b7a98f07df0f507cced4bd54b1e08d434c972e4910ebdc07fba6ae5681c9", "snapshot": { - "docs/framework/ember/guides/held-key-state-helpers.md": "9a11e0683fa6424e7c162c463ae3f9859a72a05050370a9e459ca5502bbf12f5" + "docs/framework/ember/guides/held-key-state-helpers.md": "efa2848c2e432af71a52f9f5dd4112c44fffd405c516460a1b707e1e535a38dd" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", "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/held-key-state-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/ember/guides/held-key-state-helpers.md"] }, "source:docs/framework/lit/guides/formatting-display.md": { "fingerprint": "c221d7d222f645d080d3a78519fe0f0d7e36fed2bd9ad9826fae3a52186ccaac", @@ -5939,16 +5991,14 @@ "evidence": ["packages/octane-hotkeys/skills/octane-hotkeys/SKILL.md"] }, "source:docs/framework/octane/guides/held-key-state-helpers.md": { - "fingerprint": "e4feed5484b1c756066f859f2980e854ef0f1cacfd92190232997e087458bc6f", + "fingerprint": "b67eee15ca4ec6eb15a056c147ffd1210b98a189feefae5e92e501fad7a3ecc0", "snapshot": { - "docs/framework/octane/guides/held-key-state-helpers.md": "dc08952b458c0e2a562c2f43f4cf3f1ef4774546e783a4dacdc2e8b41853320e" + "docs/framework/octane/guides/held-key-state-helpers.md": "d11cffc2fe7c3a46297e741009ff91f9731ac63ced216064414697f95a2f9105" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", "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/held-key-state-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/octane/guides/held-key-state-helpers.md"] }, "source:docs/framework/preact/guides/formatting-display.md": { "fingerprint": "cd88eb7141fa7a4661ff9160614d75f89c91267c3adca0ba25a9719a010c271a", @@ -5961,16 +6011,14 @@ "evidence": ["packages/preact-hotkeys/skills/preact-hotkeys/SKILL.md"] }, "source:docs/framework/preact/guides/held-key-state-helpers.md": { - "fingerprint": "38704c5184e8309ce4a8fd969d4ccfa1743742e423d148ae186dfa65b683ae32", + "fingerprint": "fd096c76800dbcb6247afeded75c6f28e2fd1244427afa89a8d097a563999609", "snapshot": { - "docs/framework/preact/guides/held-key-state-helpers.md": "1ea8b73b8c29c3581966ac862e9dcb361d7da33fa820524418102db9cb9b26c6" + "docs/framework/preact/guides/held-key-state-helpers.md": "ae8900cf1af5f33595bdd38fcc5ad7589a44e472b2b588565f8457e7794424de" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", "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/held-key-state-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/preact/guides/held-key-state-helpers.md"] }, "source:docs/framework/react/guides/formatting-display.md": { "fingerprint": "16a776fe6ff815e51968a4b5eca37c594db223eaa9b6a46735449631ce6128f2", @@ -5983,16 +6031,14 @@ "evidence": ["packages/react-hotkeys/skills/react-hotkeys/SKILL.md"] }, "source:docs/framework/react/guides/held-key-state-helpers.md": { - "fingerprint": "a10fe202d6f4a145c850b417e08fab3a78a14100ba23aea9b7e73e4fa3e6e0cd", + "fingerprint": "f717673508e03501fdab23a87678c65ac06dda40b01d6089384ee349763aba06", "snapshot": { - "docs/framework/react/guides/held-key-state-helpers.md": "5da3311213d19e79e56817c69e4a49bcd317853aedbd40e981de34b890aa95a1" + "docs/framework/react/guides/held-key-state-helpers.md": "58df0687ff1c1edb483038ceafb49323466d5b6123895dd64a4fc5b8e3e20c44" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", "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/held-key-state-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/react/guides/held-key-state-helpers.md"] }, "source:docs/framework/solid/guides/formatting-display.md": { "fingerprint": "60987da2c564a019aa5cd2b5aa57dfb9ad2362d6eb76b7ffcc57a8926b8fabfa", @@ -6005,16 +6051,14 @@ "evidence": ["packages/solid-hotkeys/skills/solid-hotkeys/SKILL.md"] }, "source:docs/framework/solid/guides/held-key-state-helpers.md": { - "fingerprint": "3ae96802f81cf9fba380168e49033d3f3bd642e35501309319143dcbe29bb602", + "fingerprint": "0c93c7849efe2bae18d3174e8f54bb29f7f74dddcd9c0fee74db60ecb9410678", "snapshot": { - "docs/framework/solid/guides/held-key-state-helpers.md": "6f8660ba51c146f6c8a3b3761c94a8271186163400a6f4da305300ec604e2522" + "docs/framework/solid/guides/held-key-state-helpers.md": "ec6f40e0f8dad1a9a204ff852457a931938095677c073ac80315aaa5673df65d" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", "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/held-key-state-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/solid/guides/held-key-state-helpers.md"] }, "source:docs/framework/svelte/guides/formatting-display.md": { "fingerprint": "60ceceb94aac2b2af00037249057cb67de8b5a82d6fe089e92bcb044a8074810", @@ -6027,16 +6071,14 @@ "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] }, "source:docs/framework/svelte/guides/held-key-state-helpers.md": { - "fingerprint": "c7257bc46260fb06d32c215492035ff26ba012455f5d542c5aca09d5acd6c2f2", + "fingerprint": "fe1ea172979df9b9cbe5df5e52d41a3c9b91d68907af6fcb6e55dd74d940d929", "snapshot": { - "docs/framework/svelte/guides/held-key-state-helpers.md": "cc55c8395471ebca0d7567c84868d47d28d6fac2bdf205b7fba9e5c27d3be973" + "docs/framework/svelte/guides/held-key-state-helpers.md": "17191683bc3ae06ab0efa3e5c3fccf8609d921963957ee2fade3217da1e2fe73" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", "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/held-key-state-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/svelte/guides/held-key-state-helpers.md"] }, "source:docs/framework/vue/guides/formatting-display.md": { "fingerprint": "bbd5c39d50e0c6c5e25041d31348602c17bb9114bf91528337d81349581db46f", @@ -6049,16 +6091,14 @@ "evidence": ["packages/vue-hotkeys/skills/vue-hotkeys/SKILL.md"] }, "source:docs/framework/vue/guides/held-key-state-helpers.md": { - "fingerprint": "b73708d34bdb773b9b94b97bc7830b7097ef1ef2874584e0c2511ec61387a997", + "fingerprint": "bb14579b2991b155a88e1ad92871ba400eee6112ddcefc9356a640777be771a5", "snapshot": { - "docs/framework/vue/guides/held-key-state-helpers.md": "73abb641d41144d2e58aec9168957faff28f5ca652b59adb411a10ee8be01b81" + "docs/framework/vue/guides/held-key-state-helpers.md": "b1cb598a47fa8a6271718b6af461060d0166fb7f9e02e1d76bab683291ade3ff" }, - "head": "bb8531891694fb630be3c91872f10a8377870d66", + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", "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/held-key-state-helpers.md at bb8531891694fb630be3c91872f10a8377870d66" - ] + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/vue/guides/held-key-state-helpers.md"] }, "source:docs/reference/functions/formatForDisplay.md": { "fingerprint": "c1ce5fac8aabf9b11e0324b21397327091e8bb955bb5b0909b0534a9772ead2f", @@ -6324,13 +6364,13 @@ ] }, "source:packages/hotkeys-devtools/src/components/HeldKeysTopbar.tsx": { - "fingerprint": "9fbdbbb81799726e6e6c7302d18d26405732013dc10bbe0f414bc21ddb07a00a", + "fingerprint": "828f854c25ba8984a8a87fbac06dc90086079957c70daaa3bc3dfe62bb40b351", "snapshot": { - "packages/hotkeys-devtools/src/components/HeldKeysTopbar.tsx": "f995327bbc629de666554d1379535ac93c7d192c587ce4eb06abd76a898d9a6d" + "packages/hotkeys-devtools/src/components/HeldKeysTopbar.tsx": "63a8c876997dae3c8e54926398c19fc901f3ec514ff5a1685dd6c9ad4080a014" }, - "head": "f993101815a9a769d0456da75313e68d89a19ff0", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Devtools show the loaded keyboard layout. No skill covers the devtools panel.", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", "evidence": [ "packages/hotkeys-devtools/src/components/HeldKeysTopbar.tsx" ] @@ -6485,14 +6525,14 @@ "evidence": ["Core, adapter and e2e suites; battery 159/159"] }, "source:docs/framework/angular/reference/functions/injectHotkey.md": { - "fingerprint": "6e39110df15f0273941a7678377e3d2abaf9ccb0cda405a74817b6f70bce98f3", + "fingerprint": "f05b6cd7bad8ce746657e14af71342b02d55fb3b6cb5b469b344bdb3f24905ae", "snapshot": { - "docs/framework/angular/reference/functions/injectHotkey.md": "715dc781022c5ae790674c34d739d1aa9459c239aa154c5d26b867be85c937de" + "docs/framework/angular/reference/functions/injectHotkey.md": "14268d7fd3f7b45b079ff035aa34e5dd94d263350ab97a982d4ade7e71e8798e" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": ["docs/framework/angular/reference/functions/injectHotkey.md"] }, "source:docs/framework/angular/reference/functions/injectHotkeyRecorder.md": { "fingerprint": "17e923bd0eae9a0c1b0dd41816a97cd0a7e1a9c051ec8f1a03f5402bcafc8e76", @@ -6519,9 +6559,9 @@ "snapshot": { "docs/framework/ember/reference/classes/onHotkey.md": "49ced41a013ced2c730007673b04c93dd6d064f39c0744a9e6aad24f34474b58" }, - "head": "b0efa6a0b8505e8bc98092ec9da06557ef49b0a4", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", "outcome": "out-of-scope", - "reason": "Generated TypeDoc path change from the @babel/core bump in the pnpm store path; no API change.", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": ["docs/framework/ember/reference/classes/onHotkey.md"] }, "source:docs/framework/ember/reference/functions/createHotkeysScope.md": { @@ -6529,11 +6569,11 @@ "snapshot": { "docs/framework/ember/reference/functions/createHotkeysScope.md": "f3dd6bb344cc5be3b1ca32b526708277d16841e06340d2d04713ce0656c2fa88" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/ember/reference/functions/createHotkeysScope.md" ] }, "source:docs/framework/ember/reference/interfaces/EmberHotkeysScope.md": { @@ -6541,11 +6581,11 @@ "snapshot": { "docs/framework/ember/reference/interfaces/EmberHotkeysScope.md": "f75b18369a11a498f72e387788b4f5be0521f608e015838d21687a1bc7fd3771" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/ember/reference/interfaces/EmberHotkeysScope.md" ] }, "source:docs/framework/octane/reference/functions/useHotkey.md": { @@ -6673,14 +6713,14 @@ ] }, "source:docs/framework/vue/reference/functions/useHotkeys.md": { - "fingerprint": "00e124a7140f1b93d326bb07fcbe1e0e1a25ce587a803bee84111b12efd7139e", + "fingerprint": "c0234f85293963a3d66075cc673b6df1c011f28a02e574fcb2fea7415980046a", "snapshot": { - "docs/framework/vue/reference/functions/useHotkeys.md": "c07b03833757875a89aca842e1e273c89ab9787522a225d08219324c56505465" + "docs/framework/vue/reference/functions/useHotkeys.md": "bdcb6afb0e1d316ae242e4bd1193fdab46a7877e1755d94ffa1f9712685653fe" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": ["docs/framework/vue/reference/functions/useHotkeys.md"] }, "source:docs/framework/vue/reference/interfaces/VueHotkeyRecorder.md": { "fingerprint": "40cd9470b265da0f34bd7eaa4d5995232647fc5c2c91cce3ed533b82ebaea966", @@ -6949,30 +6989,24 @@ ] }, "source:packages/preact-hotkeys/tests/unset-values.test.tsx": { - "fingerprint": "ebb829356403e9bd4a1afadc496bd027ccca590f19843f481a8133c5b8d47799", + "fingerprint": "a340271a98a6c41518b19a6ba859f83a3bc880cf36e3e25bf9acb8eb27a0416c", "snapshot": { - "packages/preact-hotkeys/tests/unset-values.test.tsx": "dfc00126716dc0b5cd86405157074b41be9edf1610897113a19d2246ac31f863" + "packages/preact-hotkeys/tests/unset-values.test.tsx": "5b9dc44263a124d3f2728dbd806874dff75618878657428f435b2acc112ce973" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Tests only: formatter import order and pragma placement; octane hydration tests use protocol 3 server HTML; Preact wrappers accept optional children.", - "evidence": [ - "packages/preact-hotkeys/tests/unset-values.test.tsx", - "test:lib passes" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/preact-hotkeys/tests/unset-values.test.tsx"] }, "source:packages/react-hotkeys/tests/unset-values.test.tsx": { - "fingerprint": "cb2e64c320d7cb9807ff472c99f8c36032d7a5db0ce54c3bb093c922ff4e6ac3", + "fingerprint": "287d573b06250eb973f8e8c9169c87d48ee64defaf9fa7722088fa10276ffebf", "snapshot": { - "packages/react-hotkeys/tests/unset-values.test.tsx": "3a072bea66d79dd062816e72a99e8b01d6b67b7d388e4b863595a9da4139a092" + "packages/react-hotkeys/tests/unset-values.test.tsx": "11c055d2f49d240480a82b2d4bd2cddde55fc830cceefc64a279da852c443fbf" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Tests only: formatter import order and pragma placement; octane hydration tests use protocol 3 server HTML; Preact wrappers accept optional children.", - "evidence": [ - "packages/react-hotkeys/tests/unset-values.test.tsx", - "test:lib passes" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/react-hotkeys/tests/unset-values.test.tsx"] }, "source:packages/solid-hotkeys/tests/appHotkeys.test.tsx": { "fingerprint": "72a346df58831e4af56e2f093d9ce357dcf3afe8a379c4589dfec80d8b90d69a", @@ -7059,17 +7093,14 @@ "evidence": ["packages/vue-hotkeys/tests/appHotkeys.test.ts"] }, "source:packages/vue-hotkeys/tests/unset-values.test.ts": { - "fingerprint": "52abc60d175f74d4c3cd5325a4d3b2fe28dc314564c6b8802cbc187d8b76e90c", + "fingerprint": "06bef5713c7877dace7c58b00effd6b6b9f33e345c6c1245f20d49ad32e7a459", "snapshot": { - "packages/vue-hotkeys/tests/unset-values.test.ts": "6473601941d1e2fd1cb319b7ad159848a03c0b2397c69f891b822d6b94b726af" + "packages/vue-hotkeys/tests/unset-values.test.ts": "e5c3007ed0a7613fa9329f8708d6bb1156f2b74b7861cc2e67b357c0ad91aaed" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Tests only: formatter import order and pragma placement; octane hydration tests use protocol 3 server HTML; Preact wrappers accept optional children.", - "evidence": [ - "packages/vue-hotkeys/tests/unset-values.test.ts", - "test:lib passes" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/vue-hotkeys/tests/unset-values.test.ts"] }, "source:packages/hotkeys/src/_target-listeners.ts": { "fingerprint": "dcffc5426be62a365d241e8086ff88f01e259d528a9d7c068325ab097c691424", @@ -7094,14 +7125,14 @@ "evidence": ["Core 2,001 tests, adapter suites, e2e"] }, "source:packages/hotkeys/tests/key-state-tracker.test.ts": { - "fingerprint": "2aff8b2fc2a8b9e66e937f71c83de14760795a3abb7b944f9cf8dab9b59d2b36", + "fingerprint": "40e453233dbb0ec914640c8f0a6974181dff3ade9f42349f6f7f6bac341b5763", "snapshot": { - "packages/hotkeys/tests/key-state-tracker.test.ts": "d305343be8c2f36e02e308855efa32c6c9135745c836868c8d8b46288b236fb2" + "packages/hotkeys/tests/key-state-tracker.test.ts": "b484de60ff63b1d0422b22b1f691ea83cf0dbcbca46438557e7c0d65d1d1d87b" }, - "head": "b789b9a62b3e6157c79477ab3acc6612d34b82be", + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", "outcome": "no-change", - "reason": "Review follow-ups: zone.js symbol prefix and AltGr held during composition; no skill guidance changes.", - "evidence": ["tests/listen.test.ts and key-state-tracker tests"] + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["packages/hotkeys/tests/key-state-tracker.test.ts"] }, "source:docs/framework/alpine/guides/custom-hotkey-recording.md": { "fingerprint": "f33a4871aea2cf62b22b851b424770dcf81db3f249e71aa553ef38748423d2c6", @@ -7310,10 +7341,12 @@ "snapshot": { "docs/framework/ember/reference/functions/useHotkeyRecorder.md": "3357172f496a06a365d5370b4a17b6ea70a36e14f3e04232ec9b0585690f0116" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/ember/reference/functions/useHotkeyRecorder.md" + ] }, "source:docs/framework/ember/reference/type-aliases/MaybeGetter.md": { "fingerprint": "1ca8f0b7467fa8d7bf43b580d24020342d13eec0f491374a545b2afed140d59d", @@ -7338,24 +7371,26 @@ "evidence": ["docs/framework/lit/guides/custom-hotkey-recording.md"] }, "source:docs/framework/lit/reference/functions/hotkey.md": { - "fingerprint": "0249aa4057b56a195215f7131104752abd651795f61a9b9ae580ccd996edacee", + "fingerprint": "bc2085b4fe87bd750b8ec98dc1d35361a784ba12a40c3352dfaea3f27519af10", "snapshot": { - "docs/framework/lit/reference/functions/hotkey.md": "21d4ed85557f774ea0a8fa9af4cc4b2f83ebe3ec8567f70faa875430730790d9" + "docs/framework/lit/reference/functions/hotkey.md": "357d3be0767cc53113a0fc81f2d47bd57af42d797ed957eb7f46a56d9daa2f07" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": ["docs/framework/lit/reference/functions/hotkey.md"] }, "source:docs/framework/lit/reference/type-aliases/HotkeyDecorator.md": { - "fingerprint": "13b366053070b3f188b2412aeb769dde5de03b657370d65f00421348b3a9623a", + "fingerprint": "98d0de8cee41a1425beb6c21d4cf768b89b772fe93cf26f572bb3355fcbd4dff", "snapshot": { - "docs/framework/lit/reference/type-aliases/HotkeyDecorator.md": "393c12c551348dda169701928b1bb76be920cd6d053c12c7ff2ed295fa9fad22" + "docs/framework/lit/reference/type-aliases/HotkeyDecorator.md": "f1afeefeee797d87f5534dd64dd57e351bfb62693e213af9caa2c3887b66e073" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/lit/reference/type-aliases/HotkeyDecorator.md" + ] }, "source:docs/reference/functions/createAppHotkeysStore.md": { "fingerprint": "1c1d9107acfbce8bee612d51cd2c6796fba49af084827ae2bf3939bab9be5d13", @@ -7442,14 +7477,14 @@ ] }, "source:packages/angular-hotkeys/tests/targets.test.ts": { - "fingerprint": "25343857852fb8aa0acf481e9c83ff623b4c959dc0b84acd5d85088fc2168728", + "fingerprint": "713a01a02bd507a2c0a286ceb6fa64b93202de5cb9dd1e585b16635219f77374", "snapshot": { - "packages/angular-hotkeys/tests/targets.test.ts": "87f00901ca64e83cb64b936b13de54592c1a0e5defb501a4dc1510c4b29c5b95" + "packages/angular-hotkeys/tests/targets.test.ts": "921c3e3423b974245baf2e2db981196a046ba2ed8bffdf80f4eb756d8ad2048c" }, - "head": "e56edd6b54a755f8bc9a34243d3a497c56560840", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Covered by the skill reviews for the affected adapters in this PR.", - "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/angular-hotkeys/tests/targets.test.ts"] }, "source:packages/angular-hotkeys/tests/zone.test.ts": { "fingerprint": "9c73d17d4167ab16403eae476d02b0de24e81b4d1ad56438af39ec470d94b2ae", @@ -7501,36 +7536,33 @@ ] }, "source:packages/lit-hotkeys/tests/decorators.test.ts": { - "fingerprint": "4de3056ecba2bb4015162d78dc55472523d85e65de7d6c3a7d09495c27e8962d", + "fingerprint": "0b46db5b515a10cbba1de3c65f00be6d36be2f73e82f8dfc9bf459ec11cbaaa2", "snapshot": { - "packages/lit-hotkeys/tests/decorators.test.ts": "1c5d9e55b49b39bcd0def0d7e457f78a078d991907c95322347a12eee3472965" + "packages/lit-hotkeys/tests/decorators.test.ts": "41a4beed5ca981ca1f2247a2582b345464500a3d12fd78ad00eef533b7f74b67" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Tests only: formatter import order and pragma placement; octane hydration tests use protocol 3 server HTML; Preact wrappers accept optional children.", - "evidence": [ - "packages/lit-hotkeys/tests/decorators.test.ts", - "test:lib passes" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/lit-hotkeys/tests/decorators.test.ts"] }, "source:packages/lit-hotkeys/tests/fixtures/decorated.ts": { - "fingerprint": "fda9fc1c076714ccdff3c35a244d85597457aa41a94c805a9bb4d2a784291999", + "fingerprint": "15195c8a65479ad9f0fec9e2939c605c23c03597bb50af19bb2a79702176e902", "snapshot": { - "packages/lit-hotkeys/tests/fixtures/decorated.ts": "5f45ea91771a112ee23ef4f936fc71fdca560a4406be430b4affa6ce9c9da0e6" + "packages/lit-hotkeys/tests/fixtures/decorated.ts": "0fc46bfc35f6a9c1c43135997b1faeccf291e5df0636f83d06bb4788a14044c1" }, - "head": "e56edd6b54a755f8bc9a34243d3a497c56560840", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Covered by the skill reviews for the affected adapters in this PR.", - "evidence": ["packages/hotkeys/skills/hotkeys-core/SKILL.md"] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/lit-hotkeys/tests/fixtures/decorated.ts"] }, "source:packages/lit-hotkeys/tests/lifecycle.test.ts": { - "fingerprint": "437abfc538fd58094a150885de0b1329e97e4c254cb0d434b5d37611f984040c", + "fingerprint": "5ea7915fbac92eaa321bb7eb28d9506e39a937a0ec32e9c13ab0aff516e36e78", "snapshot": { - "packages/lit-hotkeys/tests/lifecycle.test.ts": "6863d6eebd0beccd249f522cf4bb6a608906299c762a4b0d9b2b09966a1fd759" + "packages/lit-hotkeys/tests/lifecycle.test.ts": "c4715f69d3b5963efdf4ce208e120ffd595ae82819bd7c9d4e2c2432c40890b8" }, - "head": "6f837e4d688f72b762181737c4589fbde7606b36", - "outcome": "out-of-scope", - "reason": "Test change; it describes no library behavior the guidance covers.", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", "evidence": ["packages/lit-hotkeys/tests/lifecycle.test.ts"] }, "source:packages/octane-hotkeys/tests/custom-hooks.test.ts": { @@ -7706,21 +7738,23 @@ "snapshot": { "docs/framework/ember/reference/functions/useFormatForDisplay.md": "b359f2c6a7d182ef2900b64ed3dbd2c506a566f9768f30825f203651818b8bbb" }, - "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"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/ember/reference/functions/useFormatForDisplay.md" + ] }, "source:docs/framework/ember/reference/interfaces/DefaultHotkeysOptions.md": { "fingerprint": "f84ff7fd68855b5ce13cd39f95b1ec93c17afe6ab073f6ac29f16e3f45ddefa9", "snapshot": { "docs/framework/ember/reference/interfaces/DefaultHotkeysOptions.md": "de78ecf757a1d2d591fc59a31a9056b94f0500c390093c3d2c63fc325def9e76" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/ember/reference/interfaces/DefaultHotkeysOptions.md" ] }, "source:docs/framework/octane/reference/functions/useFormatForDisplay.md": { @@ -7768,10 +7802,12 @@ "snapshot": { "docs/framework/svelte/reference/functions/getFormatForDisplay.md": "2b76ad44f00d8cbed2f5d1c996276a6bf80031b31d4a38263a0dcb2292a1ee83" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", - "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"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/functions/getFormatForDisplay.md" + ] }, "source:docs/framework/vue/reference/functions/useFormatForDisplay.md": { "fingerprint": "4d45fdc7a581520e41690f3f90376354d9a47ab9a843be527368a22e4a0a9018", @@ -11046,11 +11082,11 @@ "snapshot": { "docs/framework/ember/reference/interfaces/EmberCustomHotkeys.md": "97a356ed89d54a84cd092b06128977fb1e31b6571763d922063e0059f31e9858" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/ember/reference/interfaces/EmberCustomHotkeys.md" ] }, "source:docs/framework/ember/reference/interfaces/EmberHotkeyRecorder.md": { @@ -11058,11 +11094,11 @@ "snapshot": { "docs/framework/ember/reference/interfaces/EmberHotkeyRecorder.md": "ea469e08c9f00afe21d28eab8e9e6fb905c2f18fb6d2b91f398c176b967dc197" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/ember/reference/interfaces/EmberHotkeyRecorder.md" ] }, "source:docs/framework/ember/reference/interfaces/EmberHotkeyState.md": { @@ -11070,11 +11106,11 @@ "snapshot": { "docs/framework/ember/reference/interfaces/EmberHotkeyState.md": "c8e7e1ba2a2899aba5d1c3a14c9d80e2f7f3ba3ac66e177123cc367a6a7779a7" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/ember/reference/interfaces/EmberHotkeyState.md" ] }, "source:docs/framework/ember/reference/interfaces/HotkeyRegistrationsResult.md": { @@ -11094,11 +11130,11 @@ "snapshot": { "docs/framework/ember/reference/type-aliases/EmberAppHotkeyList.md": "1274836baf53c74978d5ae0b04d0bfd77d90266705b25d86eedcb54119dd81e4" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/ember/reference/type-aliases/EmberAppHotkeyList.md" ] }, "source:docs/framework/ember/reference/type-aliases/EmberHotkeyCommonOptions.md": { @@ -11106,11 +11142,11 @@ "snapshot": { "docs/framework/ember/reference/type-aliases/EmberHotkeyCommonOptions.md": "f82b43720cde6d620f2d0096270603e9bcda9f124a24405cf0494383b791b823" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/ember/reference/type-aliases/EmberHotkeyCommonOptions.md" ] }, "source:docs/framework/ember/reference/type-aliases/EmberHotkeyDefinition.md": { @@ -11118,11 +11154,11 @@ "snapshot": { "docs/framework/ember/reference/type-aliases/EmberHotkeyDefinition.md": "0e74c13ca3cae35dec3034416446e3e8a005c84408f842b9e966209d20a020f5" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/ember/reference/type-aliases/EmberHotkeyDefinition.md" ] }, "source:docs/framework/ember/reference/type-aliases/EmberHotkeyTarget.md": { @@ -11130,11 +11166,11 @@ "snapshot": { "docs/framework/ember/reference/type-aliases/EmberHotkeyTarget.md": "802f9b3777d33f29344ae92006717de8898112ab182f59b0b42e8eab825b7b08" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/ember/reference/type-aliases/EmberHotkeyTarget.md" ] }, "source:docs/framework/solid/reference/type-aliases/CreateHotkeyDefinition.md": { @@ -11514,11 +11550,11 @@ "snapshot": { "docs/framework/ember/reference/functions/useAppHotkeyList.md": "877b2d8c4657eed19529b54958db66490d3fabad67444c3f8d5c5ea3b37f7cff" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/ember/reference/functions/useAppHotkeyList.md" ] }, "source:docs/framework/ember/reference/functions/useAppHotkeys.md": { @@ -11526,23 +11562,21 @@ "snapshot": { "docs/framework/ember/reference/functions/useAppHotkeys.md": "bbcbddc4e0757ed1c2b88d4a82d83ee30bbbfd75a75218b1b6fbb94a69c643c3" }, - "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": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": ["docs/framework/ember/reference/functions/useAppHotkeys.md"] }, "source:docs/framework/ember/reference/functions/useCustomHotkeys.md": { "fingerprint": "007a8de3a648d21df067eead1dbcb61014b2454e08b11a249e4cb6a2f98bde9c", "snapshot": { "docs/framework/ember/reference/functions/useCustomHotkeys.md": "1b7dce7dbcd70c8c497dbc9ae807412affe471d4ea007f5fe0ad0b36569f2fca" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/ember/reference/functions/useCustomHotkeys.md" ] }, "source:docs/framework/octane/guides/custom-hotkey-recording.md": { @@ -11626,11 +11660,11 @@ "snapshot": { "docs/framework/svelte/reference/functions/getAppHotkeyList.md": "39894db9166771b44c9f1a1c56bb32a0dc9ec0921869e77945b750519cef755e" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/svelte/reference/functions/getAppHotkeyList.md" ] }, "source:docs/framework/svelte/reference/functions/getAppHotkeys.md": { @@ -11638,23 +11672,21 @@ "snapshot": { "docs/framework/svelte/reference/functions/getAppHotkeys.md": "92d598f6a086848d4dfa394c922ae03f8a72cd2a527dfdb04e5bf97c05e3d2e4" }, - "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": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": ["docs/framework/svelte/reference/functions/getAppHotkeys.md"] }, "source:docs/framework/svelte/reference/functions/getCustomHotkeys.md": { "fingerprint": "ff049c552210209e3f55f7b650bcad5bcf13c334a30e27ec8ae34d025eb9ea53", "snapshot": { "docs/framework/svelte/reference/functions/getCustomHotkeys.md": "adf62477bdab88c7cb8a36219738d0de4c22695214e44b5dfbf150c871e21bb1" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/svelte/reference/functions/getCustomHotkeys.md" ] }, "source:docs/framework/svelte/reference/interfaces/SvelteAppHotkeyList.md": { @@ -11662,11 +11694,11 @@ "snapshot": { "docs/framework/svelte/reference/interfaces/SvelteAppHotkeyList.md": "3545af9a784f94f452da9d6759de68da7547f720a45af32bd0b8d67b1a446b26" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/svelte/reference/interfaces/SvelteAppHotkeyList.md" ] }, "source:docs/framework/svelte/reference/interfaces/SvelteAppHotkeys.md": { @@ -11674,11 +11706,11 @@ "snapshot": { "docs/framework/svelte/reference/interfaces/SvelteAppHotkeys.md": "911ac175428b078b26c74b116c222e3008611917f29e12000989eda2e5481ce5" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/svelte/reference/interfaces/SvelteAppHotkeys.md" ] }, "source:docs/framework/svelte/reference/interfaces/SvelteCustomHotkeys.md": { @@ -11686,11 +11718,11 @@ "snapshot": { "docs/framework/svelte/reference/interfaces/SvelteCustomHotkeys.md": "d7a7fe4339cea377f5e9705ae4fe5bcbbd519333033cbab58e11c2e63427a0ce" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/svelte/reference/interfaces/SvelteCustomHotkeys.md" ] }, "source:docs/framework/vue/guides/custom-hotkey-recording.md": { @@ -11861,14 +11893,14 @@ "evidence": ["packages/hotkeys-devtools/src/_issues.ts"] }, "source:packages/hotkeys-devtools/src/styles/use-styles.ts": { - "fingerprint": "16562a19ae55e896ebfa76ee5e427577181d29e0fc34efedbe38b55580d28479", + "fingerprint": "53b10be1f13973a52b44c1221ae99ae953abb0873865a69c381ffa881493f72c", "snapshot": { - "packages/hotkeys-devtools/src/styles/use-styles.ts": "0b669669b7d1328ec6a35192b61562d1296fd76fe1a4d8f4bf008d735bf8273f" + "packages/hotkeys-devtools/src/styles/use-styles.ts": "e4cc6fd9ff4b404e81ab01c3e5d0ad69755e1ec8db70d71de29e172717cab4a4" }, - "head": "62484c0a986018704e1ebe3a7f7c93061fa90942", + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", "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": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["packages/hotkeys-devtools/src/styles/use-styles.ts"] }, "source:packages/hotkeys-devtools/tests/registrations.test.tsx": { "fingerprint": "4a121daa224d501bc51aea9101f56e68810d24099d1193d03e244b67b95e201f", @@ -11979,9 +12011,9 @@ "snapshot": { "docs/framework/ember/reference/classes/onHotkeys.md": "b695e9b5988f29257f5a8ea43b338535f5e4ad2fb3a3f4bbbcbcd7b7324f75d9" }, - "head": "b0efa6a0b8505e8bc98092ec9da06557ef49b0a4", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", "outcome": "out-of-scope", - "reason": "Generated TypeDoc path change from the @babel/core bump in the pnpm store path; no API change.", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": ["docs/framework/ember/reference/classes/onHotkeys.md"] }, "source:docs/framework/ember/reference/functions/useHeldKeyCodes.md": { @@ -11989,31 +12021,33 @@ "snapshot": { "docs/framework/ember/reference/functions/useHeldKeyCodes.md": "d3fbcef527b2da5c9024adb9d77abe7fcc709b01daa08907d83f4baa2be0593c" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/ember/reference/functions/useHeldKeyCodes.md" + ] }, "source:docs/framework/ember/reference/functions/useHeldKeys.md": { "fingerprint": "f3248c7fc17904707eb98ae0c190e2551325fb2054b2f68e8932153dc553e534", "snapshot": { "docs/framework/ember/reference/functions/useHeldKeys.md": "7c3b68167f653fd924aa59cda60e1b3615794602c9128639987550225600bc35" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": ["docs/framework/ember/reference/functions/useHeldKeys.md"] }, "source:docs/framework/ember/reference/functions/useHotkeyRegistrations.md": { "fingerprint": "112e227475ba1f209643ab4782cf7ce375208edbfa630e05e1604fcb9d85995d", "snapshot": { "docs/framework/ember/reference/functions/useHotkeyRegistrations.md": "356aafb9b43eace8d3b623d8c61e2c1636efd84d4a707b5985ff1a6c3f1974b9" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/ember/reference/functions/useHotkeyRegistrations.md" ] }, "source:docs/framework/ember/reference/functions/useKeyHold.md": { @@ -12021,22 +12055,22 @@ "snapshot": { "docs/framework/ember/reference/functions/useKeyHold.md": "420a10bd8710a40b6c6e3d8be7080954d3adc9bf8e4681de1ac1d1736255157e" }, - "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": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": ["docs/framework/ember/reference/functions/useKeyHold.md"] }, "source:docs/framework/ember/reference/type-aliases/ElementHotkeyOptions.md": { "fingerprint": "46f3dc3f6c3059969a971a11b5caca5cfe5b112fef24796e01e20c3bab7490dc", "snapshot": { "docs/framework/ember/reference/type-aliases/ElementHotkeyOptions.md": "6c08e4c7d85f784afe977ec581c8f47a493705b8da57a7915e0117e55246ddd3" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/ember/reference/type-aliases/ElementHotkeyOptions.md" + ] }, "source:docs/framework/octane/reference/functions/useHeldKeyCodes.md": { "fingerprint": "bde70d9c24ea6972b2f31eddbad603afc989743c377c93eccaf631b57246542e", @@ -12545,31 +12579,33 @@ "snapshot": { "docs/framework/svelte/reference/functions/getHeldKeyCodesMap.md": "a1be5b9723f30a8924be90c39ddcd3d73a4880bd67ccd8d71435a88d6051d58f" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/functions/getHeldKeyCodesMap.md" + ] }, "source:docs/framework/svelte/reference/functions/getHeldKeys.md": { "fingerprint": "6369c9503e88b7c73385f4160bbeb1d1bccf9361f1d82370c8f16953f0bdae94", "snapshot": { "docs/framework/svelte/reference/functions/getHeldKeys.md": "af8c5698540ba05c4e021ff933818e0c8770e3a71f8d89b169742fc7b93512da" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": ["docs/framework/svelte/reference/functions/getHeldKeys.md"] }, "source:docs/framework/svelte/reference/functions/getHotkeyRegistrations.md": { "fingerprint": "8ad89baa5ae3ec7afcd3e8a74b975cfa73ffcccf21f75570653f5d66e847e475", "snapshot": { "docs/framework/svelte/reference/functions/getHotkeyRegistrations.md": "73fdbb8be04bf4734107cff8dc1360ab57216f430311e308c3fb0169515f15bc" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/svelte/reference/functions/getHotkeyRegistrations.md" ] }, "source:docs/framework/svelte/reference/functions/getIsKeyHeld.md": { @@ -12577,53 +12613,57 @@ "snapshot": { "docs/framework/svelte/reference/functions/getIsKeyHeld.md": "8f02d863c904fb0b73d1ae52cf30ab6f126552fb81f7a8e4637a65dfe5365715" }, - "head": "e7cc01367db32b74b489084bb35e173126664d39", - "outcome": "updated", - "reason": "Merged test/coverage-overhaul: tests from #256 and skill guidance from #257/#258, reviewed in those PRs", - "evidence": [ - "Changed: docs/framework/svelte/reference/functions/getIsKeyHeld.md at e7cc01367db32b74b489084bb35e173126664d39" - ] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": ["docs/framework/svelte/reference/functions/getIsKeyHeld.md"] }, "source:docs/framework/svelte/reference/interfaces/SvelteHeldKeyCodesMap.md": { "fingerprint": "4ddb2765b3b000fd3da60346cb4487329ecc74a25eb4b9ad2e0590927eb682df", "snapshot": { "docs/framework/svelte/reference/interfaces/SvelteHeldKeyCodesMap.md": "8305c917cb16bd91445869ceeebba72567a8c7cfbcd0c78e9193078ce8af31ee" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/interfaces/SvelteHeldKeyCodesMap.md" + ] }, "source:docs/framework/svelte/reference/interfaces/SvelteHeldKeyState.md": { "fingerprint": "2a5052f7baad234d8806dd9427a6bdfd3c9fbbe8ba301417cc083fee7616e931", "snapshot": { "docs/framework/svelte/reference/interfaces/SvelteHeldKeyState.md": "50dcf54f13f8bbcaa5caf27f14bf3de1532ec1dad60d2d29ab8bea667e647a42" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/interfaces/SvelteHeldKeyState.md" + ] }, "source:docs/framework/svelte/reference/interfaces/SvelteHeldKeys.md": { "fingerprint": "bd8f36a5bc3428e8e0961915306c546b4e8a07a95e0852a58d13e3c5423d7393", "snapshot": { "docs/framework/svelte/reference/interfaces/SvelteHeldKeys.md": "84b5453bd2109170b140a5789b10eb7f0cc7bdb79406927126ba193785b9c1fa" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/interfaces/SvelteHeldKeys.md" + ] }, "source:docs/framework/svelte/reference/interfaces/SvelteHotkeyRegistrations.md": { "fingerprint": "78a9e35e455a88507ed4a1a007d38150230198a4cb4ae00d532d07a77d3b75c8", "snapshot": { "docs/framework/svelte/reference/interfaces/SvelteHotkeyRegistrations.md": "b2bae87951c399bad59702b6312bc1ec36217a28c5c6a878f07aec10155c356d" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/svelte/reference/interfaces/SvelteHotkeyRegistrations.md" ] }, "source:docs/framework/svelte/reference/type-aliases/HotkeysProvider.md": { @@ -12669,74 +12709,88 @@ ] }, "source:docs/framework/vue/reference/type-aliases/UseAppHotkeyOptions.md": { - "fingerprint": "fbd7c29f65519ffa16c241cf28756a3621a6d2ca8ef96528f84b1e443b7ff3a3", + "fingerprint": "6f75ef1ab1f5955eb9f625f7e537af62f3a1e1989cac10406d6dbc2577a77028", "snapshot": { - "docs/framework/vue/reference/type-aliases/UseAppHotkeyOptions.md": "6a11cabba45457badae35288494a810c4e088b3f51ce307c004e57121854a1e2" + "docs/framework/vue/reference/type-aliases/UseAppHotkeyOptions.md": "b61bdc791ebf0010eea6bdc559564da98104676cd1687dbba0cdba462a982a19" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/vue/reference/type-aliases/UseAppHotkeyOptions.md" + ] }, "source:docs/framework/vue/reference/type-aliases/UseHotkeyChordOptions.md": { - "fingerprint": "3351d9d1eb441405d230c1c1542e758dd9dc2a696294ee1d59c77da3bbc4420e", + "fingerprint": "bb6539ae9f643db7e554e5d00d3281f1c2a177eeccebbd542c3e6d766c9f05ed", "snapshot": { - "docs/framework/vue/reference/type-aliases/UseHotkeyChordOptions.md": "f43dbadb4e6129cf0e15b9143ecfb344d5d8ab6807c5ebaac2b4f95cccafcbb3" + "docs/framework/vue/reference/type-aliases/UseHotkeyChordOptions.md": "a12b49b986af4307d596d3fe8555ffa5139aad285bc4fc6aba56505b7591d785" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/vue/reference/type-aliases/UseHotkeyChordOptions.md" + ] }, "source:docs/framework/vue/reference/type-aliases/UseHotkeyCommonOptions.md": { - "fingerprint": "e36dabcb472fe30c866722b1703dcea164eec3ae078ed3cc1d750bbf28397748", + "fingerprint": "ecff5899818c1061a0087409240476d9879434672ff784e51bb3102a34f62305", "snapshot": { - "docs/framework/vue/reference/type-aliases/UseHotkeyCommonOptions.md": "ea84205a6df48168f70889d61b16dfbcde29b44a6cea8189ad636549efb4964c" + "docs/framework/vue/reference/type-aliases/UseHotkeyCommonOptions.md": "2187b72ddf1f4719e4cf80fc923915d3faa421674b6b4272256154d2331dede0" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/vue/reference/type-aliases/UseHotkeyCommonOptions.md" + ] }, "source:docs/framework/vue/reference/type-aliases/UseHotkeyOptions.md": { - "fingerprint": "a40721ed2cb5079c8ef97d68271536e8ed43ba7d7a06655392711accefdbbdac", + "fingerprint": "2f4f631141b8f60f32a7673d479dd33afe8ec5fab73e5e44992eac4570c585d6", "snapshot": { - "docs/framework/vue/reference/type-aliases/UseHotkeyOptions.md": "4015cb419215b29659232c4f7f1b93133848f211c3ad92c8249b06c2782f9ba5" + "docs/framework/vue/reference/type-aliases/UseHotkeyOptions.md": "52bb916b2dfe5bb6768d243cdbd3d6747e839db87fc35aa1ae669995aeda7111" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/vue/reference/type-aliases/UseHotkeyOptions.md" + ] }, "source:docs/framework/vue/reference/type-aliases/UseHotkeyOptionsFor.md": { - "fingerprint": "766c7f17cbe257de0d1ba5266490c95fdec22aa9182b00552f13a76e99aaafcf", + "fingerprint": "8d1a495ed1959ad08bbc5183f4b80292fd6b982a19fc9f4d1cf4ae3eb0e7900b", "snapshot": { - "docs/framework/vue/reference/type-aliases/UseHotkeyOptionsFor.md": "d278cefe7f82186b5b691d40d8e5a72d39b5f61e283735a6ce96ac8b61d617df" + "docs/framework/vue/reference/type-aliases/UseHotkeyOptionsFor.md": "e9a008d643668986266df560e049ffca38272cebbb86e4e02a3048d722def0cf" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/vue/reference/type-aliases/UseHotkeyOptionsFor.md" + ] }, "source:docs/framework/vue/reference/type-aliases/UseHotkeySequenceOptions.md": { - "fingerprint": "09088877f6bea7747b8840e761256b7978a98dd588134782ffc7812b5e503d1d", + "fingerprint": "69934d53961a0d4cc03c6f47a61f8b4557e63f33b1463dfec9d8e47f24ad01f0", "snapshot": { - "docs/framework/vue/reference/type-aliases/UseHotkeySequenceOptions.md": "5a125321700adcca9add93eca937a38a936a44caa869589429cc8b98805224cd" + "docs/framework/vue/reference/type-aliases/UseHotkeySequenceOptions.md": "f1a1271effdd4bd81187bc14705933df88bacab1af470047f5ff4364ffa1a113" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/vue/reference/type-aliases/UseHotkeySequenceOptions.md" + ] }, "source:docs/framework/vue/reference/type-aliases/UseHotkeyTarget.md": { - "fingerprint": "a49d3b5a24f1a0b5b19a554fa6bbf9feb4e579cfccec239564101a921a49f994", + "fingerprint": "ed71bb21b7dc034392453711f9617e9c52dc12d155ec71b28e0a2b5d8b933fda", "snapshot": { - "docs/framework/vue/reference/type-aliases/UseHotkeyTarget.md": "daa64f4f5aca6f47d2d2afe5fa857269c534c702c17f365191341b1fb70bf533" + "docs/framework/vue/reference/type-aliases/UseHotkeyTarget.md": "cafe6ba590ddb349c742001e4c5ea9cd3dbd55679b65f7903c5003ed5233992a" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: @tanstack/typedoc-config 0.3.5 adds the DO NOT EDIT header, and Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": [ + "docs/framework/vue/reference/type-aliases/UseHotkeyTarget.md" + ] }, "source:docs/reference/functions/findHotkeyConflicts.md": { "fingerprint": "c4d291a4a202541c63c3f5a5da1c8f8182757ced045733eac8bd62c2092fe33c", @@ -16597,17 +16651,14 @@ "evidence": ["packages/angular-hotkeys-devtools/tsconfig.json"] }, "source:packages/angular-hotkeys/tests/reactive-options.test.ts": { - "fingerprint": "5c073dc150dd2848f890173814cbb08aaea82f1af07d98e076eb0615973bf001", + "fingerprint": "5eb3fcb3be532cb4ff467320175a557a8753736d337255d1807f1b1f53e5cbcd", "snapshot": { - "packages/angular-hotkeys/tests/reactive-options.test.ts": "c201bb2e3bbe355d0750d75467815315a0765c7924f99f4e2b7345c43d701210" + "packages/angular-hotkeys/tests/reactive-options.test.ts": "1c5cf8b0e1db0e6f619ad1c860f8097075f3d50932526a4e11c9f0e168bcf23c" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Tests only: formatter import order and pragma placement; octane hydration tests use protocol 3 server HTML; Preact wrappers accept optional children.", - "evidence": [ - "packages/angular-hotkeys/tests/reactive-options.test.ts", - "test:lib passes" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/angular-hotkeys/tests/reactive-options.test.ts"] }, "source:packages/ember-hotkeys/src/useKeyHold.ts": { "fingerprint": "8478d41eae522055d0992cfa414005f9a336fd0096ca08510d7dba8b7597d063", @@ -16658,14 +16709,14 @@ ] }, "source:packages/hotkeys-devtools/src/HotkeysContextProvider.tsx": { - "fingerprint": "c7891ff0b3a27e40a9cf03c267fb4dd948037d3c691811158a21a7134e7a63f5", + "fingerprint": "74304d8b0b398d33267b15fad39c0367f2ec11a339f5251b28d72a203beeae6e", "snapshot": { - "packages/hotkeys-devtools/src/HotkeysContextProvider.tsx": "c903867d43db5491b0b32f495604e99e7ac543a5299b340729a8da34301c4c02" + "packages/hotkeys-devtools/src/HotkeysContextProvider.tsx": "c1106db6414d171f5b34ece6249ebb10a65a569eb596adc88fce39a42920eb68" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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"] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/hotkeys-devtools/src/HotkeysContextProvider.tsx"] }, "source:packages/hotkeys-devtools/src/_registrations.ts": { "fingerprint": "7811d44c24c341e818002ddde305f48c71b751783a8686bf3c1d8c356cb09ae4", @@ -16924,17 +16975,14 @@ "evidence": ["packages/preact-hotkeys-devtools/tsconfig.json"] }, "source:packages/preact-hotkeys-devtools/tsdown.config.ts": { - "fingerprint": "9ba3f3cb0542a45dd3243ce055543e850d989a4311e4594a13f412b719240a9f", + "fingerprint": "b02164253f97cdba0aef689efb8508219c5f16130ff14014703c5e5914573e86", "snapshot": { - "packages/preact-hotkeys-devtools/tsdown.config.ts": "e09d799029c8f5b90bb864e63c3813a691a14bf1b7369267e04a1781dca829bc" + "packages/preact-hotkeys-devtools/tsdown.config.ts": "5ff2c155ef81eaf1d3262b5879fcab69695d0bd1ffc5c978aed119f3c7971538" }, - "head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Build or test config: import order changed by oxfmt only. No behavior change.", - "evidence": [ - "packages/preact-hotkeys-devtools/tsdown.config.ts", - "git diff origin/main: only import lines change" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/preact-hotkeys-devtools/tsdown.config.ts"] }, "source:packages/preact-hotkeys-devtools/vitest.config.ts": { "fingerprint": "55b6fafa1981ff534401f1733423cdcd7e4bc7131cac7d9696641224945b177c", @@ -17556,16 +17604,14 @@ ] }, "source:test-utils/src/index.ts": { - "fingerprint": "f5b2acb0cfae1d0b27265c3d47914e374c05781247aa664ac950629c6e96d0dd", + "fingerprint": "e174e2d081dbe1bb87bec4c79d50272fd7a3d59bb9cab1e00875e64b7dcbef96", "snapshot": { - "test-utils/src/index.ts": "82b412cae4754a417cd1834956dbdeddb9fdcf1a77f496f442c0f68b085e86bb" + "test-utils/src/index.ts": "c1d355a35478d29fbde3c34256ac21016d7942620a556c5ec5ec33c0f97eb561" }, - "head": "a9dd5ea3fb8a4d3d660638add1766bc35ef114f6", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Test infrastructure only: shared Vitest setup, coverage config and thresholds, test fingerprints. No library behavior or public API changed, so no skill guidance is affected.", - "evidence": [ - "Changed: test-utils/src/index.ts at a9dd5ea3fb8a4d3d660638add1766bc35ef114f6" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["test-utils/src/index.ts"] }, "source:test-utils/src/platform.ts": { "fingerprint": "04661febbd0242914ed53e5748a1d532c2062c812fefbb3ffa8bdccc8c20021c", @@ -17832,13 +17878,13 @@ ] }, "source:e2e/adapters/adapters.spec.ts": { - "fingerprint": "ff474bd1f24df0e3c14f27176cd19b1c9c9c4f97fa2e6e010ff656a22e8a946e", + "fingerprint": "52b52954cd36febbbe5fd02d5bb994423ecb5031cb595ba8110c527ac3b2021f", "snapshot": { - "e2e/adapters/adapters.spec.ts": "114764a254031fb9a5358b7a82ed37cf9e75acb12df2e19e0ff349897ba02d5f" + "e2e/adapters/adapters.spec.ts": "8ca8a28d2b83f064e914a99216c40cb8decc2379edfb536f963e5524e5a3f174" }, - "head": "94358d54fd72a38952b6fb68560b48043a3f8277", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Tests for the recorder's new default and the conflict check context. Skills don't describe the test suites.", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", "evidence": ["e2e/adapters/adapters.spec.ts"] }, "source:e2e/adapters/apps.ts": { @@ -17854,28 +17900,24 @@ ] }, "source:e2e/adapters/apps/alpine/index.html": { - "fingerprint": "2d2c7316a4a01bc72a40adb8004500400b6d2b532d30cfdc9042e64a818f852f", + "fingerprint": "849878bd30be85a786087eee1478eaca229672d5a55d7523df57068790fdbd5d", "snapshot": { - "e2e/adapters/apps/alpine/index.html": "d428d72ffe81ad0b3330a67e3745d7f0f2856e9925ef0e63b0e80b4922d79f95" + "e2e/adapters/apps/alpine/index.html": "9f30a2236c9f2cbfd34f980724fdf31f0c006a1fd5b0374941e252b06df50fc3" }, - "head": "ce272666d8aae7bebafc02b184b29fcd2e853125", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Combined test-coverage branch: tests, test setup, e2e suites, CI workflows and tooling config only. Regenerated reference pages only reorder a union type or change a node_modules path. No API or guidance change.", - "evidence": [ - "Changed: e2e/adapters/apps/alpine/index.html at ce272666d8aae7bebafc02b184b29fcd2e853125" - ] + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["e2e/adapters/apps/alpine/index.html"] }, "source:e2e/adapters/apps/alpine/src/main.ts": { - "fingerprint": "887ddc59bd06889dfeb25164b352f4ce1795e36ec59f2753071db74ccf700bc7", + "fingerprint": "905aa84a488d6755fceaa2b2fe632db6d8c74f3d9bb2a52a84404cd4447cff57", "snapshot": { - "e2e/adapters/apps/alpine/src/main.ts": "e6f6496ca71f61fffdbfdaf8b39ca287931cfe1aae1f294bd4bfffbd02bda70f" + "e2e/adapters/apps/alpine/src/main.ts": "c3cfb729aee6c904b81e4e0358c171e2f549d49ca5b0acfa278b65fe20d1e77d" }, - "head": "ce272666d8aae7bebafc02b184b29fcd2e853125", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Combined test-coverage branch: tests, test setup, e2e suites, CI workflows and tooling config only. Regenerated reference pages only reorder a union type or change a node_modules path. No API or guidance change.", - "evidence": [ - "Changed: e2e/adapters/apps/alpine/src/main.ts at ce272666d8aae7bebafc02b184b29fcd2e853125" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["e2e/adapters/apps/alpine/src/main.ts"] }, "source:e2e/adapters/apps/alpine/vite.config.ts": { "fingerprint": "812c2b3ee26bcd9d2edd12e888acb5dd11475ff31a4976dc132eedfdefd6b276", @@ -17902,16 +17944,14 @@ ] }, "source:e2e/adapters/apps/angular/src/main.ts": { - "fingerprint": "ba3e535146ea38512efe0644843c983fdba02d477431c374f07a4531f1f28bd9", + "fingerprint": "136bd94707024923e9096d0ebd606b3a2ca9f33bb9dd371df9631cf620c71534", "snapshot": { - "e2e/adapters/apps/angular/src/main.ts": "767b2356d20f4173e29ebb640d24312afa54f58451acdb0a0fe67794ba5cebc8" + "e2e/adapters/apps/angular/src/main.ts": "38b09509059e1355fb8a2d4c02bc5330b23967ea4aebb77ce8c41e51864b01f0" }, - "head": "ce272666d8aae7bebafc02b184b29fcd2e853125", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Combined test-coverage branch: tests, test setup, e2e suites, CI workflows and tooling config only. Regenerated reference pages only reorder a union type or change a node_modules path. No API or guidance change.", - "evidence": [ - "Changed: e2e/adapters/apps/angular/src/main.ts at ce272666d8aae7bebafc02b184b29fcd2e853125" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["e2e/adapters/apps/angular/src/main.ts"] }, "source:e2e/adapters/apps/angular/vite.config.ts": { "fingerprint": "784b8eb5334ccd515ea1bd621023924d6fa88ad7c8d101e72e49fc619fc91a7f", @@ -17962,16 +18002,14 @@ ] }, "source:e2e/adapters/apps/ember/app/templates/application.gts": { - "fingerprint": "fb27c4a95c6da25b2c67409e7bf1cb89e7caf0727d0a9a430adfd6f7a8ca8e07", + "fingerprint": "7fc46f0b7d2364c4716d65a18744d5de0fce1835630d111cfcda7fafc8001d4f", "snapshot": { - "e2e/adapters/apps/ember/app/templates/application.gts": "4ba92d5711e722d22d7af279c0222efc5585a8122774f779f9e64433b7a37c40" + "e2e/adapters/apps/ember/app/templates/application.gts": "65883209ce9979a2b2283b003ad09192aa5421d0d92f5d508165cdc40aafaba5" }, - "head": "ce272666d8aae7bebafc02b184b29fcd2e853125", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Combined test-coverage branch: tests, test setup, e2e suites, CI workflows and tooling config only. Regenerated reference pages only reorder a union type or change a node_modules path. No API or guidance change.", - "evidence": [ - "Changed: e2e/adapters/apps/ember/app/templates/application.gts at ce272666d8aae7bebafc02b184b29fcd2e853125" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["e2e/adapters/apps/ember/app/templates/application.gts"] }, "source:e2e/adapters/apps/ember/babel.config.js": { "fingerprint": "1763e9b651c303c561b662d431ef98f0e81a6d8845d0d0a7615c54b201af75de", @@ -18022,16 +18060,14 @@ ] }, "source:e2e/adapters/apps/lit/src/main.ts": { - "fingerprint": "6edf36616e8db629c6ca3234b3364fdd4363b1a00b0916768c10c61efb42468c", + "fingerprint": "47c02e61fee9fac17272db671616589a6354376ba71706bcab6427ef2ec43867", "snapshot": { - "e2e/adapters/apps/lit/src/main.ts": "50680c093761983e37bf475db5ea71bbcbb51891f583ccd27b5fa69d4b9f8c6d" + "e2e/adapters/apps/lit/src/main.ts": "1888bc3c29145bd82aadaef77c747f582965cc73ec27940f4cae5f53edca19d9" }, - "head": "ce272666d8aae7bebafc02b184b29fcd2e853125", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Combined test-coverage branch: tests, test setup, e2e suites, CI workflows and tooling config only. Regenerated reference pages only reorder a union type or change a node_modules path. No API or guidance change.", - "evidence": [ - "Changed: e2e/adapters/apps/lit/src/main.ts at ce272666d8aae7bebafc02b184b29fcd2e853125" - ] + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["e2e/adapters/apps/lit/src/main.ts"] }, "source:e2e/adapters/apps/lit/vite.config.ts": { "fingerprint": "f3d3b5fcb9e868cf94b3b638ea28c59f853f5c3b7dce04fd1cec9b09605cdc0f", @@ -18058,16 +18094,14 @@ ] }, "source:e2e/adapters/apps/octane/src/main.tsrx": { - "fingerprint": "3d423ee242233a5622d636421bc77699a97edaf143d197172e60ecbbcaa99e4c", + "fingerprint": "472dad6c1c2b8ecd56c2877e0e33aa4513cfcea11b51f54374e94049efedab16", "snapshot": { - "e2e/adapters/apps/octane/src/main.tsrx": "fcdb2dc7d1f38396db8c641f8f3a975fc22c115538540d88bdaa356fc27c2f64" + "e2e/adapters/apps/octane/src/main.tsrx": "84e891cd08c666b6ea77137ca92a2f4f43e3801bcb5407382fd96b631160ce3e" }, - "head": "ce272666d8aae7bebafc02b184b29fcd2e853125", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Combined test-coverage branch: tests, test setup, e2e suites, CI workflows and tooling config only. Regenerated reference pages only reorder a union type or change a node_modules path. No API or guidance change.", - "evidence": [ - "Changed: e2e/adapters/apps/octane/src/main.tsrx at ce272666d8aae7bebafc02b184b29fcd2e853125" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["e2e/adapters/apps/octane/src/main.tsrx"] }, "source:e2e/adapters/apps/octane/vite.config.ts": { "fingerprint": "398c42206a3d5932dbc8505cc36abcf28afe79c60100f8dabab5e6ec4d71aae7", @@ -18094,16 +18128,14 @@ ] }, "source:e2e/adapters/apps/preact/src/main.tsx": { - "fingerprint": "ea5ee1281531c42b7c3389023d06cf742d4efc734d1334c41a1682df245e7b7f", + "fingerprint": "4a574cf96ad34ab9c3fa2398145706ff92e6003dee60420b8adef9ae12524c49", "snapshot": { - "e2e/adapters/apps/preact/src/main.tsx": "1443fd8eec57f33acdf754c9ee3253975664d7eeaddec42e6f3de9ff324809f6" + "e2e/adapters/apps/preact/src/main.tsx": "07f9506bf89fc51748f5e344c85c926f398edaecaa028c904ce53f63757e4b52" }, - "head": "ce272666d8aae7bebafc02b184b29fcd2e853125", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Combined test-coverage branch: tests, test setup, e2e suites, CI workflows and tooling config only. Regenerated reference pages only reorder a union type or change a node_modules path. No API or guidance change.", - "evidence": [ - "Changed: e2e/adapters/apps/preact/src/main.tsx at ce272666d8aae7bebafc02b184b29fcd2e853125" - ] + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["e2e/adapters/apps/preact/src/main.tsx"] }, "source:e2e/adapters/apps/preact/vite.config.ts": { "fingerprint": "e83a8d72b4aa0dbf1f51f1bb744c1d17a179554f7f66ea57a7206f0f52b19180", @@ -18130,16 +18162,14 @@ ] }, "source:e2e/adapters/apps/react/src/main.tsx": { - "fingerprint": "6a48260e8e5a06c4a6ea55d8714ed0a2b619db9c171a63a2c36d0f8ba50efcdd", + "fingerprint": "0745eaa17ede4a507ebd24d68ffe0bb9454876a8fe42b5d6db01ccd6517087b8", "snapshot": { - "e2e/adapters/apps/react/src/main.tsx": "4d7c23ffd8384abefb40dbe40ac3e57e8e3bdac577630c1a5b9a24d31b06abe6" + "e2e/adapters/apps/react/src/main.tsx": "4f8eaa2ae71f91b3a5e15b896e2c803ae2349918ec33fdf0caca47b729bd4777" }, - "head": "ce272666d8aae7bebafc02b184b29fcd2e853125", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Combined test-coverage branch: tests, test setup, e2e suites, CI workflows and tooling config only. Regenerated reference pages only reorder a union type or change a node_modules path. No API or guidance change.", - "evidence": [ - "Changed: e2e/adapters/apps/react/src/main.tsx at ce272666d8aae7bebafc02b184b29fcd2e853125" - ] + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["e2e/adapters/apps/react/src/main.tsx"] }, "source:e2e/adapters/apps/react/vite.config.ts": { "fingerprint": "e75ceff92f0e98a0f4674517abf6afdda4ce8dfe4a92640551d3f254d28cd459", @@ -18166,14 +18196,14 @@ ] }, "source:e2e/adapters/apps/solid/src/main.tsx": { - "fingerprint": "9d7362896dca2567934a56c82a857c80f0adfff3da58e607a83a496bddbe0ab4", + "fingerprint": "999f5797110c89b96a8c4e85031d3315b9181d51e074939bf96922afe5a46d65", "snapshot": { - "e2e/adapters/apps/solid/src/main.tsx": "2aaa72da5ef859dcf52b7a496961d0a7411ce394d4a17d9cffa7c536929891e3" + "e2e/adapters/apps/solid/src/main.tsx": "601108eba6fe745bfc69e837afa8ee644aa83f333c94a620194645847c8fd257" }, - "head": "62484c0a986018704e1ebe3a7f7c93061fa90942", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["e2e/adapters/apps/solid/src/main.tsx"] }, "source:e2e/adapters/apps/solid/vite.config.ts": { "fingerprint": "fe7a2c3ba69a237e45cc79cde77daf7a78f0e38e1ab1e5b0e1f42599017895c2", @@ -18198,16 +18228,14 @@ ] }, "source:e2e/adapters/apps/svelte/src/App.svelte": { - "fingerprint": "aebba29f8652fa65109c55fbeed37e250cf9b30fd598f6695376528cfbe00d24", + "fingerprint": "812afd2d9ea67eb847fba7ffa56485a9ba08c452001918c4ac22b5cfa94fbe8e", "snapshot": { - "e2e/adapters/apps/svelte/src/App.svelte": "3e2091ec8b8445e63a67b4812e278e47a4eac42cd8a624335fe340b365dfa8ed" + "e2e/adapters/apps/svelte/src/App.svelte": "6181be78c5c8858246c0a3013f80bd86b5599459c77068695778fc91821f6a3b" }, - "head": "ce272666d8aae7bebafc02b184b29fcd2e853125", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Combined test-coverage branch: tests, test setup, e2e suites, CI workflows and tooling config only. Regenerated reference pages only reorder a union type or change a node_modules path. No API or guidance change.", - "evidence": [ - "Changed: e2e/adapters/apps/svelte/src/App.svelte at ce272666d8aae7bebafc02b184b29fcd2e853125" - ] + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["e2e/adapters/apps/svelte/src/App.svelte"] }, "source:e2e/adapters/apps/svelte/src/HotkeyHost.svelte": { "fingerprint": "53254a6edb6f35e2911931138dd1554e9ee57d450b42611acab19b9322b48430", @@ -18270,16 +18298,14 @@ ] }, "source:e2e/adapters/apps/vue/src/App.vue": { - "fingerprint": "222a8dc54db814482df7ea89191ba7f2d6f39b2f3235697f74f43f33410cb29b", + "fingerprint": "22a6da02ab95f7e8b85f52c558ef15c02fae225f54522f3773088d976f74eeab", "snapshot": { - "e2e/adapters/apps/vue/src/App.vue": "2d7ecc7ba8d19bdcc5bdc0d5d9367fc40e7d6e772404384afcfaba1dc5b16aac" + "e2e/adapters/apps/vue/src/App.vue": "0d21c27478e07783b2fe3635cf676441dbd33e69a673c850a49cd085275562d6" }, - "head": "ce272666d8aae7bebafc02b184b29fcd2e853125", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Combined test-coverage branch: tests, test setup, e2e suites, CI workflows and tooling config only. Regenerated reference pages only reorder a union type or change a node_modules path. No API or guidance change.", - "evidence": [ - "Changed: e2e/adapters/apps/vue/src/App.vue at ce272666d8aae7bebafc02b184b29fcd2e853125" - ] + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["e2e/adapters/apps/vue/src/App.vue"] }, "source:e2e/adapters/apps/vue/src/HotkeyHost.vue": { "fingerprint": "6e4644e06562f6abdfbbeaffc00fffa0f6b6376f5e1cd0095e4860f94d9dc0fc", @@ -18480,14 +18506,14 @@ ] }, "source:packages/hotkeys-devtools/tests/shell.test.tsx": { - "fingerprint": "4b1211d6fba6e84b2faa661ba13c8603dba6ed02dc41cbd22434de65908d607e", + "fingerprint": "d6e568611cd4a545e2d712963339f78cb953e5396e4204cdb4634104c8606f10", "snapshot": { - "packages/hotkeys-devtools/tests/shell.test.tsx": "b6d5dc10df1e9a1f55f2f5a42ce6ccc02a2942c8461439dc3d8e5e57b9a6a44c" + "packages/hotkeys-devtools/tests/shell.test.tsx": "11cc5962a2c009b8aa12a4e5e942f96ba402c4ec06240f8e9452d8305099f53e" }, - "head": "62484c0a986018704e1ebe3a7f7c93061fa90942", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["packages/hotkeys-devtools/tests/shell.test.tsx"] }, "source:packages/hotkeys/tests/alt-graph.test.ts": { "fingerprint": "85e9d156774a6cd3be55fd95fb2789227941c56795190c56b67d1c1d9676bc1f", @@ -18556,16 +18582,14 @@ "evidence": ["packages/hotkeys/tests/hotkey-recorder.test.ts"] }, "source:packages/hotkeys/tests/invariants/event-fuzz.test.ts": { - "fingerprint": "30631b65172be55b9e20ee5715d647c2bfe6c78cdcce17c5e0615ee217548e1d", + "fingerprint": "9bdf03502ed83aba3696306bb568db6b510e1ab2b8f3a569c520d4c3ddf48354", "snapshot": { - "packages/hotkeys/tests/invariants/event-fuzz.test.ts": "7dfdd7e33c74b37ec82d828a9ae023cf42ece446e7057e876a830137aae41e5c" + "packages/hotkeys/tests/invariants/event-fuzz.test.ts": "8fdfc986851cffee06827e60b7b03ea0d5b98a848da6c1bd63532b2a919599a8" }, - "head": "5cbf2d91c1a15381ad5af38592181487cbd023d3", - "outcome": "updated", - "reason": "Merged test/coverage-overhaul: tests from #256 and guidance from #257-#259, reviewed in those PRs", - "evidence": [ - "Changed: packages/hotkeys/tests/invariants/event-fuzz.test.ts at 5cbf2d91c1a15381ad5af38592181487cbd023d3" - ] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/hotkeys/tests/invariants/event-fuzz.test.ts"] }, "source:packages/hotkeys/tests/invariants/fixtures.ts": { "fingerprint": "c208b93d176cd8dda42d811bd554ca749eaa175c0343ea99b4778d1357df7862", @@ -18578,60 +18602,54 @@ "evidence": ["packages/hotkeys/tests/invariants/fixtures.ts"] }, "source:packages/hotkeys/tests/invariants/matching.test.ts": { - "fingerprint": "060462d610627263728e7343ea9f23f8e4e4e9659729cc0ad5f8ebb0cc45e541", + "fingerprint": "3e9fb894f4d64a435b9d03bf62c968d14ce2bd200e10603d33ee73f5095bd43d", "snapshot": { - "packages/hotkeys/tests/invariants/matching.test.ts": "0e3d36f982b69c8f79e741ac0085322c22a283980612979f0fba8f1242e1cc29" + "packages/hotkeys/tests/invariants/matching.test.ts": "e73f80bb418a329c37ed4af49e28cf68ccd1e95fa79828e99e1bff6283207dd8" }, - "head": "263455eae65aaaae54818bf1150f6e32ffd967ec", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Test timeout only; no guidance changes.", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", "evidence": ["packages/hotkeys/tests/invariants/matching.test.ts"] }, "source:packages/hotkeys/tests/invariants/parse-fuzz.test.ts": { - "fingerprint": "717614d0339feabf4ff1e849854b2933e5ff5a45883ac69cfde0d59958fa86c0", + "fingerprint": "8ad7b01d6722cbd2f1fe23fae0a7172afc42890885863b072a134718b23ac620", "snapshot": { - "packages/hotkeys/tests/invariants/parse-fuzz.test.ts": "23e1c950e9f9228ccb806836714478055121838ac1b579803450cfb2dc1c182a" + "packages/hotkeys/tests/invariants/parse-fuzz.test.ts": "1111a66f9fa05f3a1166de480206565127b51c93c857badf5cd680d79b303ba3" }, - "head": "ce272666d8aae7bebafc02b184b29fcd2e853125", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Combined test-coverage branch: tests, test setup, e2e suites, CI workflows and tooling config only. Regenerated reference pages only reorder a union type or change a node_modules path. No API or guidance change.", - "evidence": [ - "Changed: packages/hotkeys/tests/invariants/parse-fuzz.test.ts at ce272666d8aae7bebafc02b184b29fcd2e853125" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/hotkeys/tests/invariants/parse-fuzz.test.ts"] }, "source:packages/hotkeys/tests/invariants/recorder-match.test.ts": { - "fingerprint": "4ec141dbbc394567aeec6101e47e62fd4a02e5175954d013991cb1b77e8f2d41", + "fingerprint": "51bcd6dc177042a767a872e4c7ec3af1f023631201767efef32975089947514e", "snapshot": { - "packages/hotkeys/tests/invariants/recorder-match.test.ts": "c4e12a870251a42a8b5d3fad6f60e9567a9994de63f1acd5f85c310ab539aba9" + "packages/hotkeys/tests/invariants/recorder-match.test.ts": "8d79acb7902c53d30c6be52b5762b0975227001c4efa4c57302a27d35261a862" }, - "head": "6305200d4b2fc98a6b0f9dd64da148a067a16163", - "outcome": "out-of-scope", - "reason": "Test-only change: invariant tests count hotkey callbacks with a plain counter instead of vi.fn() and one sweep gets an explicit timeout. No public API, option, or runtime behavior changes.", - "evidence": [ - "Changed: packages/hotkeys/tests/invariants/recorder-match.test.ts at 6305200d4b2fc98a6b0f9dd64da148a067a16163" - ] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/hotkeys/tests/invariants/recorder-match.test.ts"] }, "source:packages/hotkeys/tests/invariants/round-trip.test.ts": { - "fingerprint": "f80e36e694dd618f7fc4c34def7ed4afdb2b0c22dbef614801e5884832dced36", + "fingerprint": "3251da0edd7950035074a33d6c46d87ebf1cb76dea7996cb9035e943adaa711a", "snapshot": { - "packages/hotkeys/tests/invariants/round-trip.test.ts": "e93693c81fed98e32cf8b73f9f979f4ebac77fa41f2c0231e2952cfcee2f1dd7" + "packages/hotkeys/tests/invariants/round-trip.test.ts": "a9e49f76f649d3f8082c63d5ef0f014c61278897d5c8732e6238201d9e9d555a" }, - "head": "ce272666d8aae7bebafc02b184b29fcd2e853125", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Combined test-coverage branch: tests, test setup, e2e suites, CI workflows and tooling config only. Regenerated reference pages only reorder a union type or change a node_modules path. No API or guidance change.", - "evidence": [ - "Changed: packages/hotkeys/tests/invariants/round-trip.test.ts at ce272666d8aae7bebafc02b184b29fcd2e853125" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/hotkeys/tests/invariants/round-trip.test.ts"] }, "source:packages/hotkeys/tests/invariants/sequence-fuzz.test.ts": { - "fingerprint": "384a6ea1aa43c8df037f5b680396c867c55569c612c622537726afc7ef19febf", + "fingerprint": "f9faf7cd4c81e06390e1283f5de9fe7192b5af188d8042be97daba616a9357de", "snapshot": { - "packages/hotkeys/tests/invariants/sequence-fuzz.test.ts": "e680d7614bc289a360319c8a82cf4af1cb33a59a2756b334ee0fa0556f6765b3" + "packages/hotkeys/tests/invariants/sequence-fuzz.test.ts": "57a79fb2577dd7abed5d08d7046782176c34b7e2c5244ebcf4b213a6c1899bef" }, - "head": "1a7f595fd145e732f18293cbf39856b7f8f27017", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/hotkeys/tests/invariants/sequence-fuzz.test.ts"] }, "source:packages/hotkeys/tests/recorder-options.test.ts": { "fingerprint": "4efa38b608766065daf3a9f4e5879f48e29b5238d8c9eac0ca32e87bd94b1391", @@ -18926,105 +18944,105 @@ ] }, "source:packages/alpine-hotkeys/tests/conformance.test.ts": { - "fingerprint": "7f0d1820fb56b9a3db24794c87e77f967dec8cc156d5e615621974a1abc34e60", + "fingerprint": "e77777a06b92fa91fc347f8b5314e0330d5dd5ef345df754f946edc523892fa1", "snapshot": { - "packages/alpine-hotkeys/tests/conformance.test.ts": "c2a85c4d1530d9114217a2d40296d05258f21c3c5620b9386459c3757a11eb45" + "packages/alpine-hotkeys/tests/conformance.test.ts": "12f6a00f206c067bb5e127bf6115d4aa9a5e2e6520cfd62b5c7984ab26ac77cc" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", - "outcome": "out-of-scope", - "reason": "Test change; it describes no library behavior the guidance covers.", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", "evidence": ["packages/alpine-hotkeys/tests/conformance.test.ts"] }, "source:packages/angular-hotkeys/tests/conformance.test.ts": { - "fingerprint": "5d298a8fc3ee473cd85854974884d6af6ddc036c7e4197d9ba17830d28b1d694", + "fingerprint": "30eca377e7a642cee6a4f37317830758ca7eaa478c6b36b69c527d8574e5ccf4", "snapshot": { - "packages/angular-hotkeys/tests/conformance.test.ts": "3ef4f9d66332a087580f1a8849d5fbe8e2db14c863e68fb4391c1330ef8e7dfa" + "packages/angular-hotkeys/tests/conformance.test.ts": "e594d355b96ae49612f23310c8949a478af58d2f6ec02b8d89392218f16defd6" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", - "outcome": "out-of-scope", - "reason": "Test change; it describes no library behavior the guidance covers.", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", "evidence": ["packages/angular-hotkeys/tests/conformance.test.ts"] }, "source:packages/ember-hotkeys/tests/integration/conformance.test.gts": { - "fingerprint": "d8e8b21199a9f1f6134a9de470f0d3ceeee6c525752eed5dd4cff95a7152d127", + "fingerprint": "ba2ecd1925aa138b761e83f5578492536113e02aa243d145f40686683c7fd5d6", "snapshot": { - "packages/ember-hotkeys/tests/integration/conformance.test.gts": "159fa66b39f23f8b7dc6d4935cca6a2ec65b5c154f027fcc70755cf10b511048" + "packages/ember-hotkeys/tests/integration/conformance.test.gts": "f16a3474c4539b330b05d89be131bdf464e03b695d8525d1d6959bd49ebb1a69" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", - "outcome": "out-of-scope", - "reason": "Test change; it describes no library behavior the guidance covers.", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", "evidence": [ "packages/ember-hotkeys/tests/integration/conformance.test.gts" ] }, "source:packages/lit-hotkeys/tests/conformance.test.ts": { - "fingerprint": "9de3dc4f9e65001d467448937ec9b95dd03b1f87627253cae8846d1a0b50438e", + "fingerprint": "5aed7b226453d58a23cb27f86c345c64b83b76efa2fd55611b3516499b6225b8", "snapshot": { - "packages/lit-hotkeys/tests/conformance.test.ts": "04c92c36c3313d64df00660ce66223eaae42da57e6a84c056bde4035b43e9530" + "packages/lit-hotkeys/tests/conformance.test.ts": "3e1ac8e76f65e6caff73910e99a079a433f69e7df7c2cca504efafb387bb3525" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", - "outcome": "out-of-scope", - "reason": "Test change; it describes no library behavior the guidance covers.", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", "evidence": ["packages/lit-hotkeys/tests/conformance.test.ts"] }, "source:packages/octane-hotkeys/tests/conformance.test.ts": { - "fingerprint": "61de9d35f3b193bf15bd22d7cc1fc4989c7556a11a355acaebee2846eba79f90", + "fingerprint": "16c9687fc8f1acb482977ff729304c026f339f02a421afbfdb4b3c8540cd74a4", "snapshot": { - "packages/octane-hotkeys/tests/conformance.test.ts": "1e9066ccb3c8d467de540079fcc09e07c83d4e7afbd6828bf8617d3c2f63ace0" + "packages/octane-hotkeys/tests/conformance.test.ts": "0ada909c812ba092644633fcefbf67806046e22e80448ad405136c8ea00beaae" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", - "outcome": "out-of-scope", - "reason": "Test change; it describes no library behavior the guidance covers.", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", "evidence": ["packages/octane-hotkeys/tests/conformance.test.ts"] }, "source:packages/octane-hotkeys/tests/conformance.tsrx": { - "fingerprint": "2090be1c5e5ae4a1806d3797cac4fbbec6534bb357dbdd36d2720046f871a620", + "fingerprint": "17991fcac89a21c363c6d56f59f2a2cda92663629df63cbd827fd2e8b99bd034", "snapshot": { - "packages/octane-hotkeys/tests/conformance.tsrx": "de836cf23203fc2b04a07f2e13208604592ec4dd434e13a69081460dc6e8b691" + "packages/octane-hotkeys/tests/conformance.tsrx": "857b030ebccbe56d05d2b3767a00ccdc78ae330885fd8bcf2eb808c41a832821" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", - "outcome": "out-of-scope", - "reason": "Test change; it describes no library behavior the guidance covers.", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", "evidence": ["packages/octane-hotkeys/tests/conformance.tsrx"] }, "source:packages/preact-hotkeys/tests/conformance.test.tsx": { - "fingerprint": "e765db6164cb832d1271470cf43d42fbe48442da65e9e0e9bc0cc07b30c1d484", + "fingerprint": "d10be06a6454270957cedd3539cc55d7f7a9afef209a879d86cc02c070df28e9", "snapshot": { - "packages/preact-hotkeys/tests/conformance.test.tsx": "d2e00005a274197416ebb4594b16656656e516a4ec3f7c6eb426731295cf57a6" + "packages/preact-hotkeys/tests/conformance.test.tsx": "e63f80d27d3cce21ee5856bce3e234c11fdafbb76dcd7389bdd5daed4c13330a" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", - "outcome": "out-of-scope", - "reason": "Test change; it describes no library behavior the guidance covers.", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", "evidence": ["packages/preact-hotkeys/tests/conformance.test.tsx"] }, "source:packages/react-hotkeys/tests/conformance.test.tsx": { - "fingerprint": "4a63c9b746b0bec139fa55f4c8639024ef1d882e2f5136867c153f1490dd3c26", + "fingerprint": "5131df4559f9130a077138d670fcc6c256083292592a4f12acb64eb32cbe13d3", "snapshot": { - "packages/react-hotkeys/tests/conformance.test.tsx": "e311261e9adb2e97faaa9244105e262b6bb98ad41b98880f065182b7c2249708" + "packages/react-hotkeys/tests/conformance.test.tsx": "13b7c5463d1b9773173d9397a50244590ed7f9751a3229ebb3e4e295078fed99" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", - "outcome": "out-of-scope", - "reason": "Test change; it describes no library behavior the guidance covers.", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", "evidence": ["packages/react-hotkeys/tests/conformance.test.tsx"] }, "source:packages/solid-hotkeys/tests/conformance.test.tsx": { - "fingerprint": "6b9383bb3ac0dea98c97eba9628ccfdfa505ce5019ce644d0d35c51aaa232eef", + "fingerprint": "a10f77357f59c440e95c9fae8f76c3c6c697e069bf76d122c3fca615f36f8b82", "snapshot": { - "packages/solid-hotkeys/tests/conformance.test.tsx": "d03dec1e4498766408b4e659c609e5b0d6288d4d9f2efdb7e0ca516c13fa6cd2" + "packages/solid-hotkeys/tests/conformance.test.tsx": "06a9cbae1765e3823d34e0b846227dd91739caf6f7db50d616b01e81879f7a1e" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", - "outcome": "out-of-scope", - "reason": "Test change; it describes no library behavior the guidance covers.", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", "evidence": ["packages/solid-hotkeys/tests/conformance.test.tsx"] }, "source:packages/svelte-hotkeys/tests/conformance.test.ts": { - "fingerprint": "3220309f04971e52101c3bfe609fce10315e4cad4dce678b449f17e31f396009", + "fingerprint": "d37f518e4568612091e7d64684aaa4ed278cfb030fea341d117fbeefa3f73a75", "snapshot": { - "packages/svelte-hotkeys/tests/conformance.test.ts": "f4b623feaad7888d8c7b7cfec2e8f03c40fa6f87983993cbb898828aeb542586" + "packages/svelte-hotkeys/tests/conformance.test.ts": "1c3ab51aa42dae3d809b3ffb5af332e1a7b7399d8ddad327aa4fab94aeeadec9" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", - "outcome": "out-of-scope", - "reason": "Test change; it describes no library behavior the guidance covers.", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", "evidence": ["packages/svelte-hotkeys/tests/conformance.test.ts"] }, "source:packages/svelte-hotkeys/tests/conformance/Format.svelte": { @@ -19156,13 +19174,13 @@ ] }, "source:packages/vue-hotkeys/tests/conformance.test.ts": { - "fingerprint": "e4b2ca200f897ad8e8195bf91955a736ad2ef88d40325e022f6c0a0058683083", + "fingerprint": "971f5695d99d3931ba5cd0cf42d9a63d284e88b49b92a7e6c730dbe6a037c48b", "snapshot": { - "packages/vue-hotkeys/tests/conformance.test.ts": "db20cac7445bbef3615e5735708ee919d5e66d616fefea6f1fbc60a194cf683e" + "packages/vue-hotkeys/tests/conformance.test.ts": "30ad8f67e1a7b0d74e3adc208d9d8a1617ede7c219a5a6e65e33cd9a8f0dad80" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", - "outcome": "out-of-scope", - "reason": "Test change; it describes no library behavior the guidance covers.", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", "evidence": ["packages/vue-hotkeys/tests/conformance.test.ts"] }, "source:test-utils/src/conformance/cases/held-keys.ts": { @@ -19234,16 +19252,14 @@ ] }, "source:test-utils/src/conformance/index.ts": { - "fingerprint": "d626f6ec27dafe0244d958b0214352904fa83b0d74fcdd334d7c0670fed0f8f9", + "fingerprint": "514d9c22da936b13d649f5b3a9b299649a55a1be07637adfe4becb8751a3a2d4", "snapshot": { - "test-utils/src/conformance/index.ts": "3527da5779dbe83daf345c3de7095b1927dbdbf035021ce3fb9f6d054bcb69d5" + "test-utils/src/conformance/index.ts": "8c9540f8365941ae1cd03c4543b79b7f8c8a29da07fcfada9261c2b85d6cb074" }, - "head": "8fe6e81b5696979beb1c663ce4aac6c7d6696b77", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "outcome": "no-change", - "reason": "Shared adapter conformance suite: test-utils cases and per-adapter test harnesses only; no API or guidance change.", - "evidence": [ - "Changed: test-utils/src/conformance/index.ts at 8fe6e81b5696979beb1c663ce4aac6c7d6696b77" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["test-utils/src/conformance/index.ts"] }, "source:test-utils/src/conformance/keys.ts": { "fingerprint": "520720491aa8752aace9a27de0525f4436be86c0e76eee2a5502ac2e19fe0f71", @@ -19270,13 +19286,13 @@ ] }, "source:test-utils/src/conformance/types.ts": { - "fingerprint": "6922086b06ed1d4c0c92fdae116e662805d40c40b16b73faeece0e0f029b3f08", + "fingerprint": "72a7c06e4a3c8707536f4c4f7007905fa06c4c5905ad1c26e2d043f5fc15c7be", "snapshot": { - "test-utils/src/conformance/types.ts": "817fccb20ff9105d25db5dde8fc799f7df70e433fa064bd7d426dc2d087982a2" + "test-utils/src/conformance/types.ts": "7c736dbf26fafbec9bb7ee25be0d32e5533febdaeb1259b265876629a8d156b0" }, - "head": "cd1c66aab538ccac294e72ee36ae4466fa9b2d2b", - "outcome": "out-of-scope", - "reason": "Test change; it describes no library behavior the guidance covers.", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", "evidence": ["test-utils/src/conformance/types.ts"] }, "source:test-utils/src/conformance/vitest.ts": { @@ -19314,17 +19330,14 @@ "evidence": ["Core, adapter and e2e suites pass"] }, "source:packages/lit-hotkeys/tests/ssr-dom-shim.test.ts": { - "fingerprint": "8f3a08795fa3943fdf43a37d0fed3176b3e4931adaa2e816d1a817f911615883", + "fingerprint": "a14f2e1ad8e95ea739fbb1279f9b9d7cdea84a88312824a43047cf5ab10bc36c", "snapshot": { - "packages/lit-hotkeys/tests/ssr-dom-shim.test.ts": "377fdde72d5eede91a3e4ca8b0a1bd3c02f0d9319ca0e1c86430cb228df49c71" + "packages/lit-hotkeys/tests/ssr-dom-shim.test.ts": "d5e41bc6185b3f3160d51cdc885feab1784254502e855bd2bd18102af6c629a7" }, - "head": "b627bb89ca8120dc83d9664c938ee06117579761", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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/ssr-dom-shim.test.ts", - "git diff 7d9cccc3 -- packages/lit-hotkeys/tests/ssr-dom-shim.test.ts" - ] + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/lit-hotkeys/tests/ssr-dom-shim.test.ts"] }, "source:packages/svelte-hotkeys/tests/LateNestedAppHotkeysHarness.svelte": { "fingerprint": "bb0b962d342520e86ebfb4c357d6f90576ac68cadf074a5c125c721487c9a772", @@ -19613,9 +19626,9 @@ "snapshot": { "docs/framework/ember/reference/functions/useKeyboardLayout.md": "c0f2ca768c01d30435d0370595ef33572c60e4cf586d4e1ae5ab7d55c30b6273" }, - "head": "d734ca11c40743d80f09683818259240c96dc55e", - "outcome": "no-change", - "reason": "Generated API reference for the keyboard layout primitives, regenerated with current source line numbers. The skill rows updated for this change cover the label behavior.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ "docs/framework/ember/reference/functions/useKeyboardLayout.md" ] @@ -19685,11 +19698,11 @@ "snapshot": { "docs/framework/svelte/reference/functions/getKeyboardLayout.md": "c8698d0baccee8c6ec997766bde7577300c9c201a1ec58c700bb06231345175a" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/svelte/reference/functions/getKeyboardLayout.md" ] }, "source:docs/framework/svelte/reference/interfaces/SvelteKeyboardLayout.md": { @@ -19697,11 +19710,11 @@ "snapshot": { "docs/framework/svelte/reference/interfaces/SvelteKeyboardLayout.md": "88f3c9b58d167deb2552bc9841cdff2b6048f07af4d6126c639a317e5c37af9e" }, - "head": "1f0a2c627c4a18f005762600966a81e9b8daef3a", - "outcome": "no-change", - "reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.", + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", "evidence": [ - "Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs." + "docs/framework/svelte/reference/interfaces/SvelteKeyboardLayout.md" ] }, "source:docs/framework/vue/reference/functions/useKeyboardLayout.md": { @@ -20188,10 +20201,12 @@ "snapshot": { "docs/framework/ember/reference/variables/formatForDisplay.md": "bb84ad440437e13fd2dfb041907024ed15af9c5d8902b7ab60ae0f94d4692fa0" }, - "head": "e743f36e8849b858bbc5370182b0642f137f230d", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/ember/reference/variables/formatForDisplay.md" + ] }, "source:docs/framework/lit/reference/classes/FormatForDisplayController.md": { "fingerprint": "65899a67d17b4f8757073a732cc6b02e84981e41f5cfb4068de8cb58af276779", @@ -20270,10 +20285,12 @@ "snapshot": { "docs/framework/svelte/reference/variables/formatForDisplay.md": "341fe06ae1870e9cb6729a238b98ac70d92a3e58569a2f19e9042e8b8abdf126" }, - "head": "e743f36e8849b858bbc5370182b0642f137f230d", - "outcome": "no-change", - "reason": "Regenerated TypeDoc page: Defined-in links follow source line shifts from formatting.", - "evidence": ["pnpm generate-docs"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/variables/formatForDisplay.md" + ] }, "source:docs/framework/vue/reference/variables/formatForDisplay.md": { "fingerprint": "a09a9e82652ac6196525a1d476b69709eadb1c319253e0a56c6f8bdd8b1b01b4", @@ -22738,16 +22755,14 @@ "evidence": ["No skill references this file"] }, "source:packages/hotkeys/tests/invariants/layouts.test.ts": { - "fingerprint": "0baf324e9f8fc0b8771437a87082d185f5fc1908ee6e53f58efbc48528c8c9bb", + "fingerprint": "51190fe1118b341f033f3c5d048782ae9209bf0d5beb48b9a1b08fdcd3408e89", "snapshot": { - "packages/hotkeys/tests/invariants/layouts.test.ts": "1477ec90c69a2637d73ab495fa673a72ef3dc4a51ff3c3a935be98fc48451bd9" + "packages/hotkeys/tests/invariants/layouts.test.ts": "deb2b8d3461cd2a2a7a4ee87e7f2e73eb5d43029dee2b8675e7c39c0f57370a3" }, - "head": "6305200d4b2fc98a6b0f9dd64da148a067a16163", - "outcome": "out-of-scope", - "reason": "Test-only change: invariant tests count hotkey callbacks with a plain counter instead of vi.fn() and one sweep gets an explicit timeout. No public API, option, or runtime behavior changes.", - "evidence": [ - "Changed: packages/hotkeys/tests/invariants/layouts.test.ts at 6305200d4b2fc98a6b0f9dd64da148a067a16163" - ] + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/hotkeys/tests/invariants/layouts.test.ts"] }, "source:scripts/layout-table/dump-xkb.sh": { "fingerprint": "0425d7f60d1a07a1833701a3cff2a7ca45604e8a3b6e8c13999032a1dc537125", @@ -23462,13 +23477,13 @@ "evidence": ["hotkey-recorder.test.ts"] }, "source:packages/hotkeys/tests/invariants/recorder-layouts.test.ts": { - "fingerprint": "26be851d8c52ebecbb39e7ef8617cb9c8fd6725682358f90dff02b825ab0ff54", + "fingerprint": "2c0722586f2b3d99f639c25d1c513d30dddb3bc71bcd8e4c3eb32898285fbb04", "snapshot": { - "packages/hotkeys/tests/invariants/recorder-layouts.test.ts": "ce747e03f0e069ae3e1fbd6b05049415ef26004be771f69f2de596e3171bec61" + "packages/hotkeys/tests/invariants/recorder-layouts.test.ts": "153c95723680c741ea1013132c38ae1dc36cd1c123ffd38474d6c574621e8958" }, - "head": "05be1291a103f39c2570697d44e8df5e039f4497", + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", "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.", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", "evidence": ["packages/hotkeys/tests/invariants/recorder-layouts.test.ts"] }, "source:.github/workflows/ember-compat.yml": { @@ -23668,20 +23683,22 @@ "snapshot": { "docs/framework/ember/reference/functions/useFormatForAria.md": "1ab3508645e7657f66f2ccb7453b16c8e6b39c272fe15083ce4b8cb8b6f2c63f" }, - "head": "95c311c273b9eb8df7854d28123f76b64fef478a", - "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the ARIA formatter and suspension changes.", - "evidence": ["packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/ember/reference/functions/useFormatForAria.md" + ] }, "source:docs/framework/ember/reference/variables/formatForAria.md": { "fingerprint": "0a7dacc42c2a8a3da95501911b03db5f723210bb025906747c9e6c8b43c32065", "snapshot": { "docs/framework/ember/reference/variables/formatForAria.md": "4a89a2db67785acfca6df5ca5b79556b59cdd28a3dbe09ce0414db383b236eba" }, - "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", - "outcome": "no-change", - "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"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": ["docs/framework/ember/reference/variables/formatForAria.md"] }, "source:docs/framework/lit/guides/accessibility.md": { "fingerprint": "24470585e6f53940f38384d960db19d4668bc8f8c73227aa56d8b24c8f46d5ce", @@ -23858,20 +23875,22 @@ "snapshot": { "docs/framework/svelte/reference/functions/getFormatForAria.md": "b46c65e341fb6a8756e5de95c956dbb14ca84520211fddb603828a48c4482398" }, - "head": "95c311c273b9eb8df7854d28123f76b64fef478a", - "outcome": "no-change", - "reason": "Regenerated reference page. The skills cover the ARIA formatter and suspension changes.", - "evidence": ["packages/svelte-hotkeys/skills/svelte-hotkeys/SKILL.md"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/functions/getFormatForAria.md" + ] }, "source:docs/framework/svelte/reference/variables/formatForAria.md": { "fingerprint": "7a766a495d1adae714d4a2a9a720a7b7c015232757afde7bbe43447394c2a5a9", "snapshot": { "docs/framework/svelte/reference/variables/formatForAria.md": "958dd9fe74eebeddf6c3b5a95b1a0030c06ac33369249c9e6682f21cce0dccf4" }, - "head": "4c73ae775cc52a41a1ba05a60750cfed3de991a1", - "outcome": "no-change", - "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"] + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": ["docs/framework/svelte/reference/variables/formatForAria.md"] }, "source:docs/framework/vue/guides/accessibility.md": { "fingerprint": "f8d9437ec3b1f6e3fc9fd5c5efa54af9ec7f736a4b6602f4db4bc95831fe149b", @@ -24232,6 +24251,1314 @@ "outcome": "no-change", "reason": "Kitchen sink example that uses the ARIA formatter and the character key setting; the framework skill already covers both.", "evidence": ["examples/angular/kitchen-sink/src/app/app.config.ts"] + }, + "source:CONTRIBUTING.md": { + "fingerprint": "2ec14db7b3383ae568c82bb5de87b28b2121a17689131630805c72a0692c0597", + "snapshot": { + "CONTRIBUTING.md": "fe5196988571f29b62e28e1532bfa10bcce905833de09ba139c7d5c1e985f2b5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "No change in this branch affects skill guidance", + "evidence": ["CONTRIBUTING.md"] + }, + "source:README.md": { + "fingerprint": "d7b6eed28f17d12ee708fcd27dbf93ef7bc30710a371e2c83bcfc28f2dad8477", + "snapshot": { + "README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "No change in this branch affects skill guidance", + "evidence": ["README.md"] + }, + "source:docs/framework/alpine/guides/key-lock-state.md": { + "fingerprint": "cce2ff798c7e5554a1673d8166cf8934fedc985825b0816fb5c514483f31a69d", + "snapshot": { + "docs/framework/alpine/guides/key-lock-state.md": "d53a7c662311905ffbf19e70fe2db5e57804b6e666df321b044c1d19914a7e30" + }, + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", + "outcome": "no-change", + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/alpine/guides/key-lock-state.md"] + }, + "source:docs/framework/angular/guides/key-lock-state.md": { + "fingerprint": "5690ce92aace3c003b17514fb183ae8ea7eae85f97c8f5d01ae6024aadc8c7f1", + "snapshot": { + "docs/framework/angular/guides/key-lock-state.md": "e7a85282bc36d5e107e95afd914adcb12e0b7abc391a1b3884e50ba249280d2c" + }, + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", + "outcome": "no-change", + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/angular/guides/key-lock-state.md"] + }, + "source:docs/framework/angular/reference/functions/injectKeyLockState.md": { + "fingerprint": "50db7826c59652178011ec4056bccc7287fbd94f43f9c16cdabd9ed13359fb9b", + "snapshot": { + "docs/framework/angular/reference/functions/injectKeyLockState.md": "0fd06c0bea1e77cedd51542d2742ae32eb5b83df334a8c6ef9a8520c5cf05d57" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages regenerated after JSDoc wording fixes", + "evidence": [ + "docs/framework/angular/reference/functions/injectKeyLockState.md" + ] + }, + "source:docs/framework/ember/guides/key-lock-state.md": { + "fingerprint": "5438081349b6e2d9a3b5a0dac61da0c78dc69e15e77a69861cc3b6812e5b3bdf", + "snapshot": { + "docs/framework/ember/guides/key-lock-state.md": "afdf9cfda716f73baecb6547d9d1402685ca347c2c61c21e7e1d6f8eef5ebc95" + }, + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", + "outcome": "no-change", + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/ember/guides/key-lock-state.md"] + }, + "source:docs/framework/ember/reference/functions/useKeyLockState.md": { + "fingerprint": "22e94d5e6efed2cd2ec41585f4ba00977a77c52f27ceac9fbd56e451459d7e9c", + "snapshot": { + "docs/framework/ember/reference/functions/useKeyLockState.md": "94b754ea26170ecc247d85b1dad66fe016695377f326c47ecbdca95af36092b6" + }, + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/ember/reference/functions/useKeyLockState.md" + ] + }, + "source:docs/framework/lit/guides/key-lock-state.md": { + "fingerprint": "d0c8d648f22cbacf67bdcc65a5befe9034a56cadda10d2ed29cc7ed74331d310", + "snapshot": { + "docs/framework/lit/guides/key-lock-state.md": "6520fbf7b5e4020a1a29b07c47f52d928762e6d7b9bd0764811a76c80d6efc96" + }, + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", + "outcome": "no-change", + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/lit/guides/key-lock-state.md"] + }, + "source:docs/framework/lit/reference/classes/KeyLockStateController.md": { + "fingerprint": "131d489ecf3d425f838916a94fd9ad5c5d94e52bf417978f0f6998997fa4a77a", + "snapshot": { + "docs/framework/lit/reference/classes/KeyLockStateController.md": "87ed0fb12ce5e995037ef40e686cc47a4e1f622463449d020fd10c8acc784668" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages regenerated after JSDoc wording fixes", + "evidence": [ + "docs/framework/lit/reference/classes/KeyLockStateController.md" + ] + }, + "source:docs/framework/octane/guides/key-lock-state.md": { + "fingerprint": "1665396132dc93faf285e78c79534df36f8439bff6284a2de15676e5b6e9bc66", + "snapshot": { + "docs/framework/octane/guides/key-lock-state.md": "28d37f2155286f15359e16f2f2407422bb6ebd3ef79a1d172344d571c1ecbec6" + }, + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", + "outcome": "no-change", + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/octane/guides/key-lock-state.md"] + }, + "source:docs/framework/octane/reference/functions/useKeyLockState.md": { + "fingerprint": "c5552963e267e7a138bac8563472e9c3cd743ab57f387c21c44d0afa2009282f", + "snapshot": { + "docs/framework/octane/reference/functions/useKeyLockState.md": "102859508e55ee9a2addbbf89e1587d51a038f16507a8b63e03fac1bc6757b2c" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages regenerated after JSDoc wording fixes", + "evidence": [ + "docs/framework/octane/reference/functions/useKeyLockState.md" + ] + }, + "source:docs/framework/preact/guides/key-lock-state.md": { + "fingerprint": "92e5f168a628c474cb929f122ec8a04ed22cfdba8452bf931d714ddb620afade", + "snapshot": { + "docs/framework/preact/guides/key-lock-state.md": "cbb250fee273e5d62f92395e9409c5aa22b9815fdcd0718d350f349cf0b6301a" + }, + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", + "outcome": "no-change", + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/preact/guides/key-lock-state.md"] + }, + "source:docs/framework/preact/reference/functions/useKeyLockState.md": { + "fingerprint": "da882dc9c16e7ac7e9945061a15c4c6e7ec3f4e963d3b65a47e8282e430118cd", + "snapshot": { + "docs/framework/preact/reference/functions/useKeyLockState.md": "e2cda6c1bd2f9d8b6faa6188271ddd826cab500feea66e9483f8d61eed4fa8c7" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages regenerated after JSDoc wording fixes", + "evidence": [ + "docs/framework/preact/reference/functions/useKeyLockState.md" + ] + }, + "source:docs/framework/react/guides/key-lock-state.md": { + "fingerprint": "41db0c8d9a088b257d713e82a8ec35a7e505880d2c3615bf80efc9c406a7ccee", + "snapshot": { + "docs/framework/react/guides/key-lock-state.md": "6b32d2b0dead5a2a9818b36ec9971e03562489b4bab0232b30ba222234359fd5" + }, + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", + "outcome": "no-change", + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/react/guides/key-lock-state.md"] + }, + "source:docs/framework/react/reference/functions/useKeyLockState.md": { + "fingerprint": "92fbbc27e0079ccc531a45e81d77c0008f43b0c2fec89b68bab3dd8d8c185396", + "snapshot": { + "docs/framework/react/reference/functions/useKeyLockState.md": "d7245f7c120e90feadc19a118a42b2442922ce1e65eef8f66399387313d504ba" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages regenerated after JSDoc wording fixes", + "evidence": [ + "docs/framework/react/reference/functions/useKeyLockState.md" + ] + }, + "source:docs/framework/solid/guides/key-lock-state.md": { + "fingerprint": "607e33ab826b9dbe3418752c17e71a4113fd786d3dc6ab56a69cb27dd7c8d36e", + "snapshot": { + "docs/framework/solid/guides/key-lock-state.md": "a27b4dd3501ff687da84fc369c736727628fbf42ff7291f0ac97c1cb0aed5f41" + }, + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", + "outcome": "no-change", + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/solid/guides/key-lock-state.md"] + }, + "source:docs/framework/solid/reference/functions/createKeyLockState.md": { + "fingerprint": "3b002d77d251e1b3faaba2859c7c25985e7959d48aed2c4cde0f7be3a555cdf4", + "snapshot": { + "docs/framework/solid/reference/functions/createKeyLockState.md": "57123e8abc4e182476b363653801641a7b32cece719be9173abcd90d49ba9992" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages regenerated after JSDoc wording fixes", + "evidence": [ + "docs/framework/solid/reference/functions/createKeyLockState.md" + ] + }, + "source:docs/framework/svelte/guides/key-lock-state.md": { + "fingerprint": "6daa32e3a6cdf20fdcf3cbd11a64ebeffc527995a4094d70f4da2115d21c1029", + "snapshot": { + "docs/framework/svelte/guides/key-lock-state.md": "e65d131091b825b4c165e815f3b8264d42d859971fbba877ddaf4ecbea0106af" + }, + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", + "outcome": "no-change", + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/svelte/guides/key-lock-state.md"] + }, + "source:docs/framework/svelte/reference/functions/getKeyLockState.md": { + "fingerprint": "c621ef1bc36548bb0a89af9023a5daea3e79acd428071e7971b7dc7072cf2a51", + "snapshot": { + "docs/framework/svelte/reference/functions/getKeyLockState.md": "89869786d46029e0716e4f529ffdf4794b64918c8565d038f56a33b769d6c71e" + }, + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/functions/getKeyLockState.md" + ] + }, + "source:docs/framework/svelte/reference/interfaces/SvelteKeyLockState.md": { + "fingerprint": "122a80023a69f123f3f6cabf3c5f9f31c63ad7d290b6dd889d4a78eb68f13671", + "snapshot": { + "docs/framework/svelte/reference/interfaces/SvelteKeyLockState.md": "2ac7d3461ffb10d70e34066a8b2d38f3e7c7883b5021cd06b493793a948b2fa2" + }, + "head": "26de2dac2e72cec969405f8f76b72dc94a9fc928", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; CI regenerated their source links", + "evidence": [ + "docs/framework/svelte/reference/interfaces/SvelteKeyLockState.md" + ] + }, + "source:docs/framework/vue/guides/key-lock-state.md": { + "fingerprint": "a4c0e59f2ab2706810fedb496bbf5f7813f28fa9e07566b3d86154289036afe6", + "snapshot": { + "docs/framework/vue/guides/key-lock-state.md": "c70d56361e3f9d92f99d84fcc48482271847978be27a54a279a1212118efe258" + }, + "head": "473beaf979c5e4bd6b51c3b8708675588d7cca60", + "outcome": "no-change", + "reason": "Review fixes: keyup publishes only on change, doc imports, focus wording, wrapping top bar; skill guidance unchanged", + "evidence": ["docs/framework/vue/guides/key-lock-state.md"] + }, + "source:docs/framework/vue/reference/functions/useKeyLockState.md": { + "fingerprint": "4967bd83e0cad3337deb1f92bb2c0588dfdec3fb2787edbd5539ad2ff734b2c8", + "snapshot": { + "docs/framework/vue/reference/functions/useKeyLockState.md": "d13a01f5c714c02035e27714ce088dafb32013118f99ebf0a17d0408b1c21b1a" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages regenerated after JSDoc wording fixes", + "evidence": ["docs/framework/vue/reference/functions/useKeyLockState.md"] + }, + "source:docs/reference/type-aliases/LockKey.md": { + "fingerprint": "a860fe36f80fd3fa21a6c9096257b3c37ae6b7f40afb2f7b8f01507d6dd1f3d2", + "snapshot": { + "docs/reference/type-aliases/LockKey.md": "313f3ec71d72cec0ea53cf3c2f6bdfb672847ce4b4fa24454fc3d4ed00f69564" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "out-of-scope", + "reason": "Generated API reference pages; the skills cite guides and source, not reference pages", + "evidence": ["docs/reference/type-aliases/LockKey.md"] + }, + "source:e2e/.gitignore": { + "fingerprint": "4a13c3ccc4b11d8b9ebcf939356fcf80de46625296dd7248d3469fab25d82172", + "snapshot": { + "e2e/.gitignore": "9960a45e45ba8d01fb66c5cbc5168104201938597a32858ccd05184035c5690c" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["e2e/.gitignore"] + }, + "source:e2e/docker/tanstack.xkb": { + "fingerprint": "a928aba54c2625b09ee984af1d11bc05899aee470c4432cfb10b1b9ef4c1ce05", + "snapshot": { + "e2e/docker/tanstack.xkb": "d9ce508b2e2ad5ddf0166d670002fe31e2653996305665fd1250007be77d4f22" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["e2e/docker/tanstack.xkb"] + }, + "source:e2e/scripts/layouts-docker.ts": { + "fingerprint": "b96a5d5e62fd37c8f2692321dfc244a16a5395aca772d5edd8756b18fdc7f491", + "snapshot": { + "e2e/scripts/layouts-docker.ts": "d9483fed03eeeb29a767f5033a534d2c7dcebc31e7f6ef878c78d206f2acc963" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["e2e/scripts/layouts-docker.ts"] + }, + "source:examples/alpine/createKeyLockState/index.html": { + "fingerprint": "e87b1b3c1ef850f33818894db0cc99b1b374c6a5a15c27476f9272c3e7f18fe8", + "snapshot": { + "examples/alpine/createKeyLockState/index.html": "38c22063f6cf65c94bc62715ad8ed853d67dd0b59b8f9d6d53630ae4a2c19d49" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/alpine/createKeyLockState/index.html"] + }, + "source:examples/alpine/createKeyLockState/src/index.css": { + "fingerprint": "751fabfbe973d78c945b9623371396fc3e549eab7eb3d56550bfdb77e1a9e3cc", + "snapshot": { + "examples/alpine/createKeyLockState/src/index.css": "97d15ec3c617acef11aa028dc1b0fa946c7da7f49e8c0a6719d519b51d66162d" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/alpine/createKeyLockState/src/index.css"] + }, + "source:examples/alpine/createKeyLockState/src/main.ts": { + "fingerprint": "f8529d75aa9d790f89975620e675f422de04e4af7fcdecdac5e63680982ed4c2", + "snapshot": { + "examples/alpine/createKeyLockState/src/main.ts": "b47bf2b74b6e77ec64cc5a3b7a3e024779af77ed89f48ce5f9624ab4be376778" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/alpine/createKeyLockState/src/main.ts"] + }, + "source:examples/alpine/createKeyLockState/tsconfig.json": { + "fingerprint": "6ed3608cb899b4f68b68b6ff8df8df9373c7e3b000df087374e451907620ccfe", + "snapshot": { + "examples/alpine/createKeyLockState/tsconfig.json": "e20dc456ce5993b97eb690ca506d2c5a1f45ca0b6bfa972fabfd55da5641d2f6" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/alpine/createKeyLockState/tsconfig.json"] + }, + "source:examples/angular/injectHotkey/src/app/app.component.html": { + "fingerprint": "466dd7c508dc3cba72332a57f4e529747ba5e832e95405539cebeec455243e19", + "snapshot": { + "examples/angular/injectHotkey/src/app/app.component.html": "9b5200b71099e416eadb44b292f8f4b1d40e556378c1a67f73adc691202cad0d" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/angular/injectHotkey/src/app/app.component.html"] + }, + "source:examples/angular/injectKeyLockState/angular.json": { + "fingerprint": "17fa12d33a062e7e97fe4a6702a501416ec6b2e169f41aeeca43c3b0ca66ebda", + "snapshot": { + "examples/angular/injectKeyLockState/angular.json": "eb8990d9fbc373ecbd5a66d8be34f5424f34b1560efae3d46694654cb829373a" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["examples/angular/injectKeyLockState/angular.json"] + }, + "source:examples/angular/injectKeyLockState/src/app/app.component.css": { + "fingerprint": "08ba4d2210069eb1a36126695b98a9517225a851ec96d1f05ad44a4e40c1743f", + "snapshot": { + "examples/angular/injectKeyLockState/src/app/app.component.css": "ec2c89fde913caff741baa0b0f3cf68a9acb5e85467e4f21b6c824fdad201394" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": [ + "examples/angular/injectKeyLockState/src/app/app.component.css" + ] + }, + "source:examples/angular/injectKeyLockState/src/app/app.component.html": { + "fingerprint": "26c925eb4c67b3fcaa951fbf99acd38e0398b3818338b54a86b7058b8fe5ecec", + "snapshot": { + "examples/angular/injectKeyLockState/src/app/app.component.html": "23915cf3dd6520cecd14cb6e27248735b89c935f46e229775196ade2cfc64b06" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": [ + "examples/angular/injectKeyLockState/src/app/app.component.html" + ] + }, + "source:examples/angular/injectKeyLockState/src/app/app.component.ts": { + "fingerprint": "9f111011c51e7791099b849d7fb699d4f97e8dbd7a358d73e95b27511d33ee47", + "snapshot": { + "examples/angular/injectKeyLockState/src/app/app.component.ts": "2ffad7b69798c555931fb6859a0a3e1868d4ebd4c8b8aa7511dcdfac8770c875" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": [ + "examples/angular/injectKeyLockState/src/app/app.component.ts" + ] + }, + "source:examples/angular/injectKeyLockState/src/app/app.config.ts": { + "fingerprint": "e32151d65ea873b72c6dfb0b78927baf6bd95d88092bb30fc7d2f339d929a688", + "snapshot": { + "examples/angular/injectKeyLockState/src/app/app.config.ts": "30e6bbe05c4ca79f571ec04aa0d0b5264f07d6ac8cc21ca7c553bea2e6e4ec64" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/angular/injectKeyLockState/src/app/app.config.ts"] + }, + "source:examples/angular/injectKeyLockState/src/index.html": { + "fingerprint": "d9cf6395cd0db1416cd404c96065ca6bd8949967bedd2fb3bcb8ae005d831e97", + "snapshot": { + "examples/angular/injectKeyLockState/src/index.html": "0827ead964713ed832fdbe7fb5f3150e75157c82917169efcfcd9b1db405e8b7" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/angular/injectKeyLockState/src/index.html"] + }, + "source:examples/angular/injectKeyLockState/src/main.ts": { + "fingerprint": "1ce2b0f6a60385a0efa028c1048a477e8f8421757cfb611c7ce8a1d821c97a86", + "snapshot": { + "examples/angular/injectKeyLockState/src/main.ts": "fb692c0cd75f77a6fad81f02a03ba1ed284240c8900e3688bda8c85f6612cb0b" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/angular/injectKeyLockState/src/main.ts"] + }, + "source:examples/angular/injectKeyLockState/src/styles.css": { + "fingerprint": "ae4da5e3967165739db1a55d50814160d01b96fef82b224db412f78ee385b4a4", + "snapshot": { + "examples/angular/injectKeyLockState/src/styles.css": "97d15ec3c617acef11aa028dc1b0fa946c7da7f49e8c0a6719d519b51d66162d" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/angular/injectKeyLockState/src/styles.css"] + }, + "source:examples/angular/injectKeyLockState/tsconfig.json": { + "fingerprint": "1d8a043a07127693d1efbaa9798d9eff7a9daa0b815dac9dbc5d149b787c7e37", + "snapshot": { + "examples/angular/injectKeyLockState/tsconfig.json": "d2dd90e7f06909b0acd9ed572d0b262ced8cc2d757768037e3085d08f32e06b2" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/angular/injectKeyLockState/tsconfig.json"] + }, + "source:examples/ember/useKeyLockState/app/app.css": { + "fingerprint": "bac09997da228adc316000d425e5ddd9176065b2f33e775523125768bd9a9cfd", + "snapshot": { + "examples/ember/useKeyLockState/app/app.css": "97d15ec3c617acef11aa028dc1b0fa946c7da7f49e8c0a6719d519b51d66162d" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/ember/useKeyLockState/app/app.css"] + }, + "source:examples/ember/useKeyLockState/app/app.ts": { + "fingerprint": "466f5eac645e04dfd83e946dd2d4b2fa446821ce2002cd150e5378dd726726c7", + "snapshot": { + "examples/ember/useKeyLockState/app/app.ts": "d7cc420da1a8a88042df05ef10a061877eb6c94f70d6b9c5bed796c040ff70c3" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/ember/useKeyLockState/app/app.ts"] + }, + "source:examples/ember/useKeyLockState/app/config.ts": { + "fingerprint": "9288793f40a3a804b0b46d66e094f05c1e068e1868dffa49511741ea50e0a7f4", + "snapshot": { + "examples/ember/useKeyLockState/app/config.ts": "350730980588cada00a9ee50aa1a252042cf5334c8ef76b6f3a2a72064e82818" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/ember/useKeyLockState/app/config.ts"] + }, + "source:examples/ember/useKeyLockState/app/router.ts": { + "fingerprint": "d4dc65579e440351b28a0a99416f6a1937fd6c09ccc624d694d8d4f4e5568651", + "snapshot": { + "examples/ember/useKeyLockState/app/router.ts": "b0fc87422a226ddd4b9e868e6ab0c2605bf78bc944dc31dc5df7cff79efa6ea0" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/ember/useKeyLockState/app/router.ts"] + }, + "source:examples/ember/useKeyLockState/app/templates/application.gts": { + "fingerprint": "174b4d384a8e248599f55f51b7d2f9c15cf1ead6eb5b8fe04a4002337cc329f4", + "snapshot": { + "examples/ember/useKeyLockState/app/templates/application.gts": "4c768234f1ccf9918df8863757f5c76e1b3b1b083e4d74710831d02b9572a26d" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": [ + "examples/ember/useKeyLockState/app/templates/application.gts" + ] + }, + "source:examples/ember/useKeyLockState/babel.config.js": { + "fingerprint": "a1393fb091402387a579a74480dc20f9d581c57e1be1705e591b3368e7485895", + "snapshot": { + "examples/ember/useKeyLockState/babel.config.js": "86e9c4d3e7139cccfe5cf6a65eac998449e6810d6257c7ea80d430012a1fa068" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/ember/useKeyLockState/babel.config.js"] + }, + "source:examples/ember/useKeyLockState/index.html": { + "fingerprint": "2816785149a58bdf55add215557ae51af699ed28df0c07a2dccf4d91e4b04007", + "snapshot": { + "examples/ember/useKeyLockState/index.html": "d539f9f01bd4e97644fd1d195c83910105d1e5090b3ac9ef7c3f96b1a862d14c" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/ember/useKeyLockState/index.html"] + }, + "source:examples/ember/useKeyLockState/tsconfig.json": { + "fingerprint": "f6e7e955967756fba33db7e216854293baa4b2098ad9f69b8aa1b7ae2ea18c1e", + "snapshot": { + "examples/ember/useKeyLockState/tsconfig.json": "e6623b3bf25ca5e73f2f16fbc9ab6d85f4c0ffbca41bf5a3f57b6daa84df4c66" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/ember/useKeyLockState/tsconfig.json"] + }, + "source:examples/ember/useKeyLockState/vite.config.mjs": { + "fingerprint": "4b0c753bb0cb13ee6cff5038f553097eeed9b59f70d2cd9b92053e411dc466f3", + "snapshot": { + "examples/ember/useKeyLockState/vite.config.mjs": "e73c5d42f2936c023527c65cfcff8cf051d491bc20f980554d8330d2936bd4ab" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/ember/useKeyLockState/vite.config.mjs"] + }, + "source:examples/lit/key-lock-state/index.html": { + "fingerprint": "9050c48ba3265ffec3c588fa84ee91ae106341739493470031228fb369d3ad9e", + "snapshot": { + "examples/lit/key-lock-state/index.html": "2348be1ba13bfc884541a4d144a7246f7af11a457cff076d2e0360b985c5b93a" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/lit/key-lock-state/index.html"] + }, + "source:examples/lit/key-lock-state/src/app.ts": { + "fingerprint": "c69ecb344245cf4c42389f414233d6cc71a9833b885730b91211781c161c399f", + "snapshot": { + "examples/lit/key-lock-state/src/app.ts": "d5bfeb5adc9e8d3c47eff3ec477be69545bcbc2782f1f09d3d21bef8aafe20f9" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/lit/key-lock-state/src/app.ts"] + }, + "source:examples/lit/key-lock-state/src/index.css": { + "fingerprint": "b26ac4880ef27e4b51bec4e4ee9dc5c70e7a6e0f0cac91358efded0b55288e78", + "snapshot": { + "examples/lit/key-lock-state/src/index.css": "97d15ec3c617acef11aa028dc1b0fa946c7da7f49e8c0a6719d519b51d66162d" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/lit/key-lock-state/src/index.css"] + }, + "source:examples/lit/key-lock-state/tsconfig.json": { + "fingerprint": "d328278b37f4695153bdaa3ffbadbe966ed7a40692164024dd380c4cc7673a9a", + "snapshot": { + "examples/lit/key-lock-state/tsconfig.json": "505ffc8896ced0227343f72ad681ebb8bf1130ebfd1e6d62804d52e7f38e673f" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/lit/key-lock-state/tsconfig.json"] + }, + "source:examples/octane/useKeyLockState/index.html": { + "fingerprint": "593887ae422ba46332d3ba3b14cd5da788bf37ca25f4359f041487da91376655", + "snapshot": { + "examples/octane/useKeyLockState/index.html": "f04d9c4431ab9cbb3d4df177722c105e610c1539e5cf1a4150bbcb327f85a396" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/octane/useKeyLockState/index.html"] + }, + "source:examples/octane/useKeyLockState/src/index.css": { + "fingerprint": "2db0e5dab3e76ce3cf636a7009282bd2b2c5167cc25b860367992b722fa106d2", + "snapshot": { + "examples/octane/useKeyLockState/src/index.css": "97d15ec3c617acef11aa028dc1b0fa946c7da7f49e8c0a6719d519b51d66162d" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/octane/useKeyLockState/src/index.css"] + }, + "source:examples/octane/useKeyLockState/src/main.tsrx": { + "fingerprint": "86e29850a5e18ae178d69337e87ca807e95a9ac3faf5e9dc4f5190a9bc4cd74d", + "snapshot": { + "examples/octane/useKeyLockState/src/main.tsrx": "503408a303c0b0640fc330bfc6235e015b8784d4cc8d28d44ba1392b2cae9e23" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/octane/useKeyLockState/src/main.tsrx"] + }, + "source:examples/octane/useKeyLockState/tsconfig.json": { + "fingerprint": "03326837072c88833e383808cea7d0cc6bb336d49b2d77cb0275bf655476ed18", + "snapshot": { + "examples/octane/useKeyLockState/tsconfig.json": "9b89260e5def93f6d0013a8f699fe41bb83ffe5aa0295442ae7f43854da42d98" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/octane/useKeyLockState/tsconfig.json"] + }, + "source:examples/octane/useKeyLockState/vite.config.ts": { + "fingerprint": "5999fa7ad9368372a7c54a2b65faf502d5382cc1518b6779efe41bb98e719f11", + "snapshot": { + "examples/octane/useKeyLockState/vite.config.ts": "afb216ed61b7edffb952f3294fe364d4fd9377911f8ec8a285c221acdb26303b" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/octane/useKeyLockState/vite.config.ts"] + }, + "source:examples/preact/useKeyLockState/index.html": { + "fingerprint": "eb8f016337c902e4bbab55f5c36b32605b8172b616db468a2b3de10358f686d9", + "snapshot": { + "examples/preact/useKeyLockState/index.html": "c022b0354107cb462c1eeb0dadc088e39f291e65c4d7edf522fc4811a23dae3b" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/preact/useKeyLockState/index.html"] + }, + "source:examples/preact/useKeyLockState/src/index.css": { + "fingerprint": "9aed2cc418c2dda35d68a5a5d5af9e59ef46b8b06ce486d869efb5ecf15ae620", + "snapshot": { + "examples/preact/useKeyLockState/src/index.css": "97d15ec3c617acef11aa028dc1b0fa946c7da7f49e8c0a6719d519b51d66162d" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/preact/useKeyLockState/src/index.css"] + }, + "source:examples/preact/useKeyLockState/src/index.tsx": { + "fingerprint": "1a6c7ee2e91d1655e9092cb9e9b5c21209c1184ee1cec659e11a929ed6300a68", + "snapshot": { + "examples/preact/useKeyLockState/src/index.tsx": "590d85698792c9c5082af4c570782a97eb9b976672e32e58677dbab49d69cfef" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/preact/useKeyLockState/src/index.tsx"] + }, + "source:examples/preact/useKeyLockState/tsconfig.json": { + "fingerprint": "2e6d6a5e3e713543a1f493f90de512c50e4089e58cc58f1250271081f91cb8eb", + "snapshot": { + "examples/preact/useKeyLockState/tsconfig.json": "a4ee1e06027b66a186e09d9c0c6280c8b26dc3048d90264f1fd7f401616b0206" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/preact/useKeyLockState/tsconfig.json"] + }, + "source:examples/preact/useKeyLockState/vite.config.ts": { + "fingerprint": "c935fd89e7ae438272fe7bf1cbd192759851a618219392bf74382a0453aea1ca", + "snapshot": { + "examples/preact/useKeyLockState/vite.config.ts": "32531fae7b86b9f383808fd1b88af62240720090c9bf81a0528fdd57aae0b005" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/preact/useKeyLockState/vite.config.ts"] + }, + "source:examples/react/useKeyLockState/index.html": { + "fingerprint": "b84bc5f38897863ba5e80a186fc9605b8cae1dead9dea8b1ab5ba3fd3623cf57", + "snapshot": { + "examples/react/useKeyLockState/index.html": "a44fef38a001f93b35972da2724dc3ae458bcc55025ea45ec7d429317bc2b232" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/react/useKeyLockState/index.html"] + }, + "source:examples/react/useKeyLockState/src/index.css": { + "fingerprint": "90297a32b21076ce2429e0cb27c5fbfa313f6788dd0d801ae2915e32837c97ba", + "snapshot": { + "examples/react/useKeyLockState/src/index.css": "97d15ec3c617acef11aa028dc1b0fa946c7da7f49e8c0a6719d519b51d66162d" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/react/useKeyLockState/src/index.css"] + }, + "source:examples/react/useKeyLockState/src/index.tsx": { + "fingerprint": "4372c99cbcde6ab9d9414fe6e788a2c86e9a618229cbcb3870d84e565c1c9480", + "snapshot": { + "examples/react/useKeyLockState/src/index.tsx": "fcaecd13fecdb14c63a1b3f0b7e6ec69d48e3ebaa2200c918fc6217e10aa9544" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/react/useKeyLockState/src/index.tsx"] + }, + "source:examples/react/useKeyLockState/tsconfig.json": { + "fingerprint": "e4f2e76c692f56b8df03000715074ea947bb9f0e85c052acd92071c0c4928d2f", + "snapshot": { + "examples/react/useKeyLockState/tsconfig.json": "17233e3521461fecdb81a19a3346608dfc451673e2da532bd9ef0538de65e289" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/react/useKeyLockState/tsconfig.json"] + }, + "source:examples/react/useKeyLockState/vite.config.ts": { + "fingerprint": "f7a7ef468178575b759ed60226e40939df7f65463f29b267674c4c92deaba43b", + "snapshot": { + "examples/react/useKeyLockState/vite.config.ts": "7c3566d9467f52ec6736741d73e6259606200fffecdbc63aebee82d97a4ed157" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/react/useKeyLockState/vite.config.ts"] + }, + "source:examples/solid/createKeyLockState/index.html": { + "fingerprint": "aa76c057bd777f36e698bc28abb41e8d11220d21c6f4885591fb74f254e9ec5b", + "snapshot": { + "examples/solid/createKeyLockState/index.html": "b835610d922b1f052d9e67fd3ae49378951f71cd4e879d14c6f1aa9da008629d" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/solid/createKeyLockState/index.html"] + }, + "source:examples/solid/createKeyLockState/src/index.css": { + "fingerprint": "4f6b8764950c3c06739bafa7b3e2d5115171abfef1ca75cc03678b1eccfe1923", + "snapshot": { + "examples/solid/createKeyLockState/src/index.css": "97d15ec3c617acef11aa028dc1b0fa946c7da7f49e8c0a6719d519b51d66162d" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/solid/createKeyLockState/src/index.css"] + }, + "source:examples/solid/createKeyLockState/src/index.tsx": { + "fingerprint": "eafacd0388543fcd570c50e4b0f2b6e69e31fcc1acc1bb32210e5dbf55536bcf", + "snapshot": { + "examples/solid/createKeyLockState/src/index.tsx": "7a8d9295a8035a2fb94d2da56ec1f2eb40d52ddafd4fee653ff86a5c8e9867f2" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/solid/createKeyLockState/src/index.tsx"] + }, + "source:examples/solid/createKeyLockState/tsconfig.json": { + "fingerprint": "9df7b0b7ab54a82357197fed20693310989bccde075a0b3558625d6bed42ab9d", + "snapshot": { + "examples/solid/createKeyLockState/tsconfig.json": "716abc7c4743c77a4a880a9d4c839d8286c7fe0609491782c89ef0dfd9633a12" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/solid/createKeyLockState/tsconfig.json"] + }, + "source:examples/solid/createKeyLockState/vite.config.ts": { + "fingerprint": "032395f110a25695c54be57485bddd351caed474f8a3afd93900ba172f001153", + "snapshot": { + "examples/solid/createKeyLockState/vite.config.ts": "60c3b2225e24012f91c9910cb81b84fc922931477283b5357aad251dd8828298" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/solid/createKeyLockState/vite.config.ts"] + }, + "source:examples/svelte/get-key-lock-state/.gitignore": { + "fingerprint": "23be0b1b30a6539b06c01a14d1031ae902e38723c2e7cc7fb084803ded0692e4", + "snapshot": { + "examples/svelte/get-key-lock-state/.gitignore": "d1aec8becdfa546cbb4ed193ffd576dd7f353c742cb9f361be4b2697ecefe992" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/svelte/get-key-lock-state/.gitignore"] + }, + "source:examples/svelte/get-key-lock-state/index.html": { + "fingerprint": "751ee3de59e781c5bc182aefe1cc8b3523e07145977490c2e92c912f3c8ecdfb", + "snapshot": { + "examples/svelte/get-key-lock-state/index.html": "8059eae0d577a817fcb964214c7ea411787f90826eedc83ea54b716c4d5689c6" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/svelte/get-key-lock-state/index.html"] + }, + "source:examples/svelte/get-key-lock-state/src/App.svelte": { + "fingerprint": "db64ff19c7d29b62625f9900c82105ea514971cd206240988abec998adef1dd1", + "snapshot": { + "examples/svelte/get-key-lock-state/src/App.svelte": "1d1ad814f9253f36f46d7f4fd3dd1f0f594198fb1febf290cd03b03a54615f47" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["examples/svelte/get-key-lock-state/src/App.svelte"] + }, + "source:examples/svelte/get-key-lock-state/src/Root.svelte": { + "fingerprint": "35e21db07bcfbbc22b301bdefb3274bcfc4b56cac5f645030e358584ae7613dd", + "snapshot": { + "examples/svelte/get-key-lock-state/src/Root.svelte": "db16686a0977af4685973fbeca67f87639d666925b96626413d19001e8cb329f" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/svelte/get-key-lock-state/src/Root.svelte"] + }, + "source:examples/svelte/get-key-lock-state/src/index.css": { + "fingerprint": "01fb3abf8a24c60ba0328cd87747dfb2fdd992788f49d44869e7cbca1528b020", + "snapshot": { + "examples/svelte/get-key-lock-state/src/index.css": "97d15ec3c617acef11aa028dc1b0fa946c7da7f49e8c0a6719d519b51d66162d" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/svelte/get-key-lock-state/src/index.css"] + }, + "source:examples/svelte/get-key-lock-state/src/main.ts": { + "fingerprint": "3e30fbc551c24fee7beac6ebcd128b69f6e637a74ba6189433206c8840c2669b", + "snapshot": { + "examples/svelte/get-key-lock-state/src/main.ts": "18dded74b53ab4c24f2dba687ee998e0671dafbb223cb87b0530f6469704041f" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/svelte/get-key-lock-state/src/main.ts"] + }, + "source:examples/svelte/get-key-lock-state/static/robots.txt": { + "fingerprint": "ae8f0bf31fe4699a4adbad1551249cb4b73a23cf6f2ea820e5204ef557786248", + "snapshot": { + "examples/svelte/get-key-lock-state/static/robots.txt": "b033243267bcbdab84cb01e940811d6d77a894d78f0470faaf0eb43f8e4efcc9" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/svelte/get-key-lock-state/static/robots.txt"] + }, + "source:examples/svelte/get-key-lock-state/svelte.config.js": { + "fingerprint": "0571731ff4cae5082f8de58fb74e557940a10abf7ce4d893a604a3281af9b87f", + "snapshot": { + "examples/svelte/get-key-lock-state/svelte.config.js": "65312970777b42cd299ed716d6b340790dac5833d8c8dc8ba017bf618c68c129" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/svelte/get-key-lock-state/svelte.config.js"] + }, + "source:examples/svelte/get-key-lock-state/tsconfig.json": { + "fingerprint": "d08c43a20b0fdd97786112ac25cfcea8c4873652288fcd65e767f02683ed0b34", + "snapshot": { + "examples/svelte/get-key-lock-state/tsconfig.json": "3bb0675a478eb366f816c40ad23f9908036db7edb9ea8caf11a34fed9eecf0e3" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/svelte/get-key-lock-state/tsconfig.json"] + }, + "source:examples/svelte/get-key-lock-state/vite.config.ts": { + "fingerprint": "91120af9a416368301df51d474006e5dfae0646a4a2473a7327b660a7fb8d2fe", + "snapshot": { + "examples/svelte/get-key-lock-state/vite.config.ts": "386ef819f4d749851e90127a5bc3d65e0d22a7e773fa6ca23589e20336d43edf" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/svelte/get-key-lock-state/vite.config.ts"] + }, + "source:examples/vue/useKeyLockState/index.html": { + "fingerprint": "2483b857215783e0ce30921230abd6d432a5662f0240b5c0ef6e2ae1262e3d95", + "snapshot": { + "examples/vue/useKeyLockState/index.html": "dd197d0cef17e285764606d3a2a2e910cf6c407e2909796cc5a992f8eba81a6d" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/vue/useKeyLockState/index.html"] + }, + "source:examples/vue/useKeyLockState/src/App.vue": { + "fingerprint": "3d30d431283ff928add2f952501cb660b3a754a21e3cc37e109b8c4949cb414e", + "snapshot": { + "examples/vue/useKeyLockState/src/App.vue": "98f83816d8183ed562791e9a28819d0bbef07192efaa0b0fd72f6fa3fb305012" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/vue/useKeyLockState/src/App.vue"] + }, + "source:examples/vue/useKeyLockState/src/index.css": { + "fingerprint": "278ca632938d92efd4371998be2dd30f8ed6d94e882e595b33cd1de4f7fb68a1", + "snapshot": { + "examples/vue/useKeyLockState/src/index.css": "97d15ec3c617acef11aa028dc1b0fa946c7da7f49e8c0a6719d519b51d66162d" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/vue/useKeyLockState/src/index.css"] + }, + "source:examples/vue/useKeyLockState/src/index.ts": { + "fingerprint": "06267cca2ecfd51ba2e34f1ceebaac6839dae84b668736e03df3e1dfb17e5553", + "snapshot": { + "examples/vue/useKeyLockState/src/index.ts": "2ce6690b499ba97d16fdc87c615cb4724e2560610453f6589f0bc05ef865eb27" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/vue/useKeyLockState/src/index.ts"] + }, + "source:examples/vue/useKeyLockState/src/vue.d.ts": { + "fingerprint": "fa66caf661ff370cbbf986c9d7083902ae8c61979e228e16af2f5a0b61c06b13", + "snapshot": { + "examples/vue/useKeyLockState/src/vue.d.ts": "a8bcef84fbb5c7f86868e98ab136b1e881514bc6ee3110f39070929f5e8eeae9" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/vue/useKeyLockState/src/vue.d.ts"] + }, + "source:examples/vue/useKeyLockState/tsconfig.json": { + "fingerprint": "01c17bb0cfdeb48228a1e67f6f25922cbd508820649da9947d8e484e4f622673", + "snapshot": { + "examples/vue/useKeyLockState/tsconfig.json": "ce70ec1a28cc08e3bbded1fd405356183abb7397acd4021c970aa0399c075ce9" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/vue/useKeyLockState/tsconfig.json"] + }, + "source:examples/vue/useKeyLockState/vite.config.ts": { + "fingerprint": "7d54891a865e983752732b5326da5cc7f412f5136c6d5c3cb73403c009dcc833", + "snapshot": { + "examples/vue/useKeyLockState/vite.config.ts": "0646e0ff42ef72dab57bc185b5532332fda14aec21625357b8ce272028a2cffe" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["examples/vue/useKeyLockState/vite.config.ts"] + }, + "source:packages/alpine-hotkeys/README.md": { + "fingerprint": "96f0230e6f47dd048463147b5ba893024ab182964220d23fd6e5c576759d1871", + "snapshot": { + "packages/alpine-hotkeys/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/alpine-hotkeys/README.md"] + }, + "source:packages/alpine-hotkeys/src/createKeyLockState.ts": { + "fingerprint": "d5ef9f89aed0448becf45875b17d4212c720e4c98011e302f1bdfb2f82e09a3c", + "snapshot": { + "packages/alpine-hotkeys/src/createKeyLockState.ts": "3285a077f50a76197ebb1b06b8e7ee4e0573a5e764a935e99928c248067ca3f3" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/alpine-hotkeys/src/createKeyLockState.ts"] + }, + "source:packages/angular-hotkeys-devtools/README.md": { + "fingerprint": "d03ce86e609c7c0327c379e1a83a76ad9945eae0d0944d8bb891fb2dc2398b9d", + "snapshot": { + "packages/angular-hotkeys-devtools/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/angular-hotkeys-devtools/README.md"] + }, + "source:packages/angular-hotkeys/README.md": { + "fingerprint": "fc6cfd1c30fd82a72b0d42f71a04c3e19db8ba2e1a9e9e408c704b6325a53bae", + "snapshot": { + "packages/angular-hotkeys/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/angular-hotkeys/README.md"] + }, + "source:packages/angular-hotkeys/src/injectKeyLockState.ts": { + "fingerprint": "311887410113188153fc26854d298f5be089c71a7f6abc0ecdec8380b70b8e0a", + "snapshot": { + "packages/angular-hotkeys/src/injectKeyLockState.ts": "43d5b9c87dd1ad7ccbd5cea95d2a4741ba629b77e37d29331f4f5342542649bf" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["packages/angular-hotkeys/src/injectKeyLockState.ts"] + }, + "source:packages/ember-hotkeys/README.md": { + "fingerprint": "7fcc143ef4897f9321f15cab0e841cf511dcd31d21f0a5075d1b99ca51636315", + "snapshot": { + "packages/ember-hotkeys/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/ember-hotkeys/README.md"] + }, + "source:packages/ember-hotkeys/src/useKeyLockState.ts": { + "fingerprint": "a12969f3203520321761337a84a6947cca83a3591f013108e8c3f2e38d3117fd", + "snapshot": { + "packages/ember-hotkeys/src/useKeyLockState.ts": "fb790008566e07754b3dd8ad17af1d461fb5545297e314c9f6d40e524c4b5591" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["packages/ember-hotkeys/src/useKeyLockState.ts"] + }, + "source:packages/hotkeys-devtools/README.md": { + "fingerprint": "7114cf9344fea5477ddfe26cafb2768f307ee8fd1832a116705e70b8ea3b2840", + "snapshot": { + "packages/hotkeys-devtools/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/hotkeys-devtools/README.md"] + }, + "source:packages/hotkeys/README.md": { + "fingerprint": "775a04e682aa6e8867f456995332bbe5fc0a1c1d92f32b211237149f36b2f87f", + "snapshot": { + "packages/hotkeys/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/hotkeys/README.md"] + }, + "source:packages/lit-hotkeys/README.md": { + "fingerprint": "cb17aa1679c751245efb3e9aeda53ee04cd13505f5bcfe2cb6a127bed3ff09f6", + "snapshot": { + "packages/lit-hotkeys/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/lit-hotkeys/README.md"] + }, + "source:packages/lit-hotkeys/src/controllers/key-lock-state.ts": { + "fingerprint": "e2e4db1bfa3f37f932bbe0146f0987da53409633654135d4f2248548e7bf6270", + "snapshot": { + "packages/lit-hotkeys/src/controllers/key-lock-state.ts": "bc3dba0fc76f139a60d3e454b6c4cf1c37f9c2ed399f3933d869a46eaf4e79b2" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["packages/lit-hotkeys/src/controllers/key-lock-state.ts"] + }, + "source:packages/octane-hotkeys/README.md": { + "fingerprint": "6b1d922e0d848eba19c6ed0e4ea6a2dfd07fb67c150fc8df7199e67d9bcf759b", + "snapshot": { + "packages/octane-hotkeys/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/octane-hotkeys/README.md"] + }, + "source:packages/octane-hotkeys/src/useKeyLockState.ts": { + "fingerprint": "3584ead34a88454e80e0372b43dbc55eb4768bc5d1dce4d1bda61e172d629f3b", + "snapshot": { + "packages/octane-hotkeys/src/useKeyLockState.ts": "100d097a66e6fc0abf46e610c07340b5aae1c472e56a93698ea7f5ca05fde44f" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["packages/octane-hotkeys/src/useKeyLockState.ts"] + }, + "source:packages/preact-hotkeys-devtools/README.md": { + "fingerprint": "94b268a7de1952fc7afbe03b2decbb1567d42454ff455eff7724f9f62459127c", + "snapshot": { + "packages/preact-hotkeys-devtools/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/preact-hotkeys-devtools/README.md"] + }, + "source:packages/preact-hotkeys-devtools/src/production.ts": { + "fingerprint": "69828300ee3d741e879afe8fa1b7a6a8ab49309cffd0b390a2b5ac01001eb06f", + "snapshot": { + "packages/preact-hotkeys-devtools/src/production.ts": "7c411f96344404ecb811c4dec9f5dcff817da3f36347cd98fe1e9295a92eef92" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/preact-hotkeys-devtools/src/production.ts"] + }, + "source:packages/preact-hotkeys-devtools/tests/production.test.ts": { + "fingerprint": "44e65108bbb514d0877596b55b9d2922b1df68cf287f444e9c7f777c58c57a60", + "snapshot": { + "packages/preact-hotkeys-devtools/tests/production.test.ts": "eb70a2c29f77fb4c26247e9221d74a87021b3ec776bb0df0dee04793fc6896e6" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/preact-hotkeys-devtools/tests/production.test.ts"] + }, + "source:packages/preact-hotkeys/README.md": { + "fingerprint": "390d742146eeb0dcdefbbebd3451a780dcc8b53d391be031514cb80c7d4a82cf", + "snapshot": { + "packages/preact-hotkeys/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/preact-hotkeys/README.md"] + }, + "source:packages/preact-hotkeys/src/useKeyLockState.ts": { + "fingerprint": "72f0bca07c1ea2c290b6085bd69f6665e8f2064021b51ebd4e49247c7b89228d", + "snapshot": { + "packages/preact-hotkeys/src/useKeyLockState.ts": "c55bdafd5124b17e8d4898d0ca771965ca773ed98877cc1756cad571604efb2b" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["packages/preact-hotkeys/src/useKeyLockState.ts"] + }, + "source:packages/preact-hotkeys/src/utils.ts": { + "fingerprint": "63c3fbb5430824b748f193382172b0fb930506ac524b8ca76351d504c3fa8ee6", + "snapshot": { + "packages/preact-hotkeys/src/utils.ts": null + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/preact-hotkeys/src/utils.ts"] + }, + "source:packages/react-hotkeys-devtools/README.md": { + "fingerprint": "bb1fdaf6e61a008824a25c049b82e7ac612804fcbc3e816e167b4fcf52d75248", + "snapshot": { + "packages/react-hotkeys-devtools/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/react-hotkeys-devtools/README.md"] + }, + "source:packages/react-hotkeys-devtools/tests/production.test.ts": { + "fingerprint": "ca9f7f5f31b8ca337c1aa132d1c76a1a4fd33b50e4b680b807cd2ea42f25220d", + "snapshot": { + "packages/react-hotkeys-devtools/tests/production.test.ts": "31102dea36c9a3534a8f372f03e43d5cff6786276f20b21abab2d715a48909b7" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/react-hotkeys-devtools/tests/production.test.ts"] + }, + "source:packages/react-hotkeys/README.md": { + "fingerprint": "7336de5679275c42da8c055ce3483f2e4f1038a36ebb8ab45af578a83e8abfba", + "snapshot": { + "packages/react-hotkeys/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/react-hotkeys/README.md"] + }, + "source:packages/react-hotkeys/src/useKeyLockState.ts": { + "fingerprint": "d71a18a31728bccae5e3e342cdf62080ff4a7e333fe309bad6a7d194d1b5b33b", + "snapshot": { + "packages/react-hotkeys/src/useKeyLockState.ts": "9b771e5d2b14f01673f15f2a53a1dcae559fa861cd39247986685653cd0a27ff" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["packages/react-hotkeys/src/useKeyLockState.ts"] + }, + "source:packages/react-hotkeys/src/utils.ts": { + "fingerprint": "0e76d55c9868ad1831cc1ef9860b80379c31f4a1920ecae940af51f5db403902", + "snapshot": { + "packages/react-hotkeys/src/utils.ts": null + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/react-hotkeys/src/utils.ts"] + }, + "source:packages/solid-hotkeys-devtools/README.md": { + "fingerprint": "0177b3aae77b3ab601bb536262762e7739cb0feda6ce846c4394e2851e0f21e4", + "snapshot": { + "packages/solid-hotkeys-devtools/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/solid-hotkeys-devtools/README.md"] + }, + "source:packages/solid-hotkeys/README.md": { + "fingerprint": "1fd31ca2c0268d4847c0c1a350ab16d2a43fbf03cc22debe3a06c77ddad17b6a", + "snapshot": { + "packages/solid-hotkeys/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/solid-hotkeys/README.md"] + }, + "source:packages/solid-hotkeys/src/createKeyLockState.ts": { + "fingerprint": "fd7b494613fe634dae1f440b75d389c42f35ee0dbee39fbac21727b035f4c996", + "snapshot": { + "packages/solid-hotkeys/src/createKeyLockState.ts": "5c335f3d0174ff04c74584a9e9b007190a232ed78d1a227b59a6c3b5595fbf01" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["packages/solid-hotkeys/src/createKeyLockState.ts"] + }, + "source:packages/svelte-hotkeys-devtools/README.md": { + "fingerprint": "e28f8a1b78b6ca612549b2092300408ba2a757a13612e6ffacb5e5497a471dc8", + "snapshot": { + "packages/svelte-hotkeys-devtools/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/svelte-hotkeys-devtools/README.md"] + }, + "source:packages/svelte-hotkeys/README.md": { + "fingerprint": "8fa46ea312d57020de5333f51cfc99bbd17e9c8fcd7e3cfd1dcc201cbd8b5c28", + "snapshot": { + "packages/svelte-hotkeys/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/svelte-hotkeys/README.md"] + }, + "source:packages/svelte-hotkeys/src/getKeyLockState.svelte.ts": { + "fingerprint": "758afa848e9506ae310e19ab6cda2e8bfea3741c49766766f331bff26c80130b", + "snapshot": { + "packages/svelte-hotkeys/src/getKeyLockState.svelte.ts": "0081a225fbbc4185aa316b8110678d3340be1dc9e2c72158b11b72d9097aa1e5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["packages/svelte-hotkeys/src/getKeyLockState.svelte.ts"] + }, + "source:packages/svelte-hotkeys/tests/conformance/KeyLockStateView.svelte": { + "fingerprint": "c4082c533e85318ccf681e2a2ebf397774cdbdbf98005b3babf24887d52ae800", + "snapshot": { + "packages/svelte-hotkeys/tests/conformance/KeyLockStateView.svelte": "d803debe041ed5c0e6bb85b58e436bf413f30e56911a43bd3572ac403e0e7b4b" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": [ + "packages/svelte-hotkeys/tests/conformance/KeyLockStateView.svelte" + ] + }, + "source:packages/vue-hotkeys-devtools/README.md": { + "fingerprint": "fd3cb30ffb5cb75deedd2bd43ca947444d13e49c9605f3792a728d3a770931ba", + "snapshot": { + "packages/vue-hotkeys-devtools/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/vue-hotkeys-devtools/README.md"] + }, + "source:packages/vue-hotkeys-devtools/tests/production.test.ts": { + "fingerprint": "025d77e46f5a8f7767b0d93e6a1a53a90bbfcdea84f9a4e6032e090ca7d8a727", + "snapshot": { + "packages/vue-hotkeys-devtools/tests/production.test.ts": "b13e6271627df258b9273d90c0ff6211b33bd3213f7adf85f0a20c1aa04436d7" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/vue-hotkeys-devtools/tests/production.test.ts"] + }, + "source:packages/vue-hotkeys/README.md": { + "fingerprint": "23d8df242f4f0ac2a829503668de77c9bb957cf9ced6e057b96b147515bef150", + "snapshot": { + "packages/vue-hotkeys/README.md": "f14d57c2c19d04e73f14c3217e0e7f60fedce2ee90fe9908ec071d8e337a5db5" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Covered by the key lock state rows added to each adapter skill and the core testing reference; no further guidance change", + "evidence": ["packages/vue-hotkeys/README.md"] + }, + "source:packages/vue-hotkeys/src/useKeyLockState.ts": { + "fingerprint": "65f8370a3cca64e1dcb0094b337b4bb14323bec48ebb173e360bf61b79d20f6d", + "snapshot": { + "packages/vue-hotkeys/src/useKeyLockState.ts": "989893a810f0798c46f2a495d4e85812ee13b00ac3a9183fa15ae053673a35db" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["packages/vue-hotkeys/src/useKeyLockState.ts"] + }, + "source:packages/vue-hotkeys/tests/useKeyLockState.test.ts": { + "fingerprint": "5a42abf8ffbf57a15760de05e965ea28ebf8de9bbb738c2cc5b397f3e881d247", + "snapshot": { + "packages/vue-hotkeys/tests/useKeyLockState.test.ts": "b5fc547c538dc600deb4a68ce6a69a51366670ec49829617e7022844bcced8cb" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["packages/vue-hotkeys/tests/useKeyLockState.test.ts"] + }, + "source:test-utils/src/conformance/cases/key-lock-state.ts": { + "fingerprint": "2c11f718e04934780024ddf20254a6690176f1b8a4d3576cba4b5a38783fe29c", + "snapshot": { + "test-utils/src/conformance/cases/key-lock-state.ts": "833533d03b0ff8f90069f293f7b762e64e46ded8f807d32f9739a7ede7990744" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["test-utils/src/conformance/cases/key-lock-state.ts"] + }, + "source:test-utils/src/key-locks.ts": { + "fingerprint": "75869309812cc5c6910a4b044d44c377ac66ca17606bcbfe2a55b38ee94e176c", + "snapshot": { + "test-utils/src/key-locks.ts": "7549de75192c443620bbac0ca3da50b62ca05605b502675a5f490628bb980d88" + }, + "head": "f9fc17f0bbb537e70119ec81cec5d3d94294aa8e", + "outcome": "no-change", + "reason": "Review fixes: one store publish per event, unfocused mouse events ignored, wording; the skill guidance still matches", + "evidence": ["test-utils/src/key-locks.ts"] } } } diff --git a/docs/config.json b/docs/config.json index d065b3b51..21c3b7793 100644 --- a/docs/config.json +++ b/docs/config.json @@ -363,6 +363,10 @@ "label": "Held Keys", "to": "framework/react/guides/held-key-state-helpers" }, + { + "label": "Lock Keys", + "to": "framework/react/guides/key-lock-state" + }, { "label": "Accessibility", "to": "framework/react/guides/accessibility" @@ -396,6 +400,10 @@ "label": "Held Keys", "to": "framework/preact/guides/held-key-state-helpers" }, + { + "label": "Lock Keys", + "to": "framework/preact/guides/key-lock-state" + }, { "label": "Accessibility", "to": "framework/preact/guides/accessibility" @@ -429,6 +437,10 @@ "label": "Held Keys", "to": "framework/solid/guides/held-key-state-helpers" }, + { + "label": "Lock Keys", + "to": "framework/solid/guides/key-lock-state" + }, { "label": "Accessibility", "to": "framework/solid/guides/accessibility" @@ -462,6 +474,10 @@ "label": "Held Keys", "to": "framework/angular/guides/held-key-state-helpers" }, + { + "label": "Lock Keys", + "to": "framework/angular/guides/key-lock-state" + }, { "label": "Accessibility", "to": "framework/angular/guides/accessibility" @@ -495,6 +511,10 @@ "label": "Held Keys", "to": "framework/vue/guides/held-key-state-helpers" }, + { + "label": "Lock Keys", + "to": "framework/vue/guides/key-lock-state" + }, { "label": "Accessibility", "to": "framework/vue/guides/accessibility" @@ -528,6 +548,10 @@ "label": "Held Keys", "to": "framework/lit/guides/held-key-state-helpers" }, + { + "label": "Lock Keys", + "to": "framework/lit/guides/key-lock-state" + }, { "label": "Accessibility", "to": "framework/lit/guides/accessibility" @@ -561,6 +585,10 @@ "label": "Held Keys", "to": "framework/svelte/guides/held-key-state-helpers" }, + { + "label": "Lock Keys", + "to": "framework/svelte/guides/key-lock-state" + }, { "label": "Accessibility", "to": "framework/svelte/guides/accessibility" @@ -594,6 +622,10 @@ "label": "Held Keys", "to": "framework/alpine/guides/held-key-state-helpers" }, + { + "label": "Lock Keys", + "to": "framework/alpine/guides/key-lock-state" + }, { "label": "Accessibility", "to": "framework/alpine/guides/accessibility" @@ -627,6 +659,10 @@ "label": "Held Keys", "to": "framework/ember/guides/held-key-state-helpers" }, + { + "label": "Lock Keys", + "to": "framework/ember/guides/key-lock-state" + }, { "label": "Accessibility", "to": "framework/ember/guides/accessibility" @@ -660,6 +696,10 @@ "label": "Held Keys", "to": "framework/octane/guides/held-key-state-helpers" }, + { + "label": "Lock Keys", + "to": "framework/octane/guides/key-lock-state" + }, { "label": "Accessibility", "to": "framework/octane/guides/accessibility" @@ -2799,6 +2839,10 @@ "label": "useKeyhold", "to": "framework/react/examples/useKeyhold" }, + { + "label": "useKeyLockState", + "to": "framework/react/examples/useKeyLockState" + }, { "label": "useFormatForDisplay (TanStack Start)", "to": "framework/react/examples/useFormatForDisplay-tanstack-start" @@ -2864,6 +2908,10 @@ "label": "useKeyhold", "to": "framework/preact/examples/useKeyhold" }, + { + "label": "useKeyLockState", + "to": "framework/preact/examples/useKeyLockState" + }, { "label": "useFormatForDisplay (Vite SSR)", "to": "framework/preact/examples/useFormatForDisplay-vite-ssr" @@ -2921,6 +2969,10 @@ "label": "createKeyHold", "to": "framework/solid/examples/createKeyHold" }, + { + "label": "createKeyLockState", + "to": "framework/solid/examples/createKeyLockState" + }, { "label": "createFormatForDisplay (SolidStart)", "to": "framework/solid/examples/createFormatForDisplay-solid-start" @@ -2982,6 +3034,10 @@ "label": "injectKeyHold", "to": "framework/angular/examples/injectKeyHold" }, + { + "label": "injectKeyLockState", + "to": "framework/angular/examples/injectKeyLockState" + }, { "label": "injectFormatForDisplay (Angular SSR)", "to": "framework/angular/examples/injectFormatForDisplay-angular-ssr" @@ -3039,6 +3095,10 @@ "label": "useKeyhold", "to": "framework/vue/examples/useKeyhold" }, + { + "label": "useKeyLockState", + "to": "framework/vue/examples/useKeyLockState" + }, { "label": "useFormatForDisplay (Nuxt)", "to": "framework/vue/examples/useFormatForDisplay-nuxt" @@ -3092,6 +3152,10 @@ "label": "key-hold", "to": "framework/lit/examples/key-hold" }, + { + "label": "key-lock-state", + "to": "framework/lit/examples/key-lock-state" + }, { "label": "Keyboard Layouts", "to": "framework/lit/examples/keyboard-layouts" @@ -3141,6 +3205,10 @@ "label": "get-is-key-held", "to": "framework/svelte/examples/get-is-key-held" }, + { + "label": "get-key-lock-state", + "to": "framework/svelte/examples/get-key-lock-state" + }, { "label": "getFormatForDisplay (SvelteKit)", "to": "framework/svelte/examples/getFormatForDisplay-sveltekit" @@ -3194,6 +3262,10 @@ "label": "createKeyHold", "to": "framework/alpine/examples/createKeyHold" }, + { + "label": "createKeyLockState", + "to": "framework/alpine/examples/createKeyLockState" + }, { "label": "Keyboard Layouts", "to": "framework/alpine/examples/keyboard-layouts" @@ -3239,6 +3311,10 @@ "label": "useKeyHold", "to": "framework/ember/examples/useKeyHold" }, + { + "label": "useKeyLockState", + "to": "framework/ember/examples/useKeyLockState" + }, { "label": "Keyboard Layouts", "to": "framework/ember/examples/keyboard-layouts" @@ -3288,6 +3364,10 @@ "label": "useKeyHold", "to": "framework/octane/examples/useKeyHold" }, + { + "label": "useKeyLockState", + "to": "framework/octane/examples/useKeyLockState" + }, { "label": "useFormatForDisplay (server rendering)", "to": "framework/octane/examples/useFormatForDisplay-server" diff --git a/docs/devtools.md b/docs/devtools.md index 9226edb37..cd60c1c8a 100644 --- a/docs/devtools.md +++ b/docs/devtools.md @@ -17,6 +17,7 @@ Use the Hotkeys panel to: - Watch multi-step sequence progress live as keys are pressed - See declared [app hotkeys](./overview#app-hotkeys) before their components mount, including user-customized bindings - Monitor held keys in real time +- Check whether Caps Lock, Num Lock, and Scroll Lock are on, off, or unknown (`?`) in the **Locks** group of the top bar. Num Lock and Scroll Lock show `n/a` on macOS and iOS, where browsers don't report them - Trigger hotkey callbacks from the UI without pressing physical keys - Inspect each registration's target, event type, and conflict behavior diff --git a/docs/framework/alpine/guides/held-key-state-helpers.md b/docs/framework/alpine/guides/held-key-state-helpers.md index e87e31573..d6ced53c4 100644 --- a/docs/framework/alpine/guides/held-key-state-helpers.md +++ b/docs/framework/alpine/guides/held-key-state-helpers.md @@ -125,3 +125,19 @@ For a mouse or wheel event, `event.ctrlKey`, `shiftKey`, `altKey`, and `metaKey` Held keys clear when the window loses focus, so a key released after switching apps doesn't stay held. [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus) covers the cases the tracker handles. The [createHeldKeys example](../examples/createHeldKeys) shows held keys and their codes, and the [createKeyHold example](../examples/createKeyHold) shows modifier indicators. + +## Lock keys + +Caps Lock, Num Lock, and Scroll Lock toggle instead of being held. The `value` of `createKeyHold('CapsLock')` is `true` only while the key is down, not while Caps Lock is on. To read whether a lock is on, use `createKeyLockState`: + +```ts +const capsLock = hotkeys.createKeyLockState('CapsLock') // value: true, false, or null + +return { get capsLockOn() { return capsLock.value === true } } +``` + +```html +Caps Lock is on +``` + +The value is `null` until the browser reports the lock. See [Read lock key state](./key-lock-state) for when that happens and which browsers report each lock. diff --git a/docs/framework/alpine/guides/key-lock-state.md b/docs/framework/alpine/guides/key-lock-state.md new file mode 100644 index 000000000..1eb3c38ac --- /dev/null +++ b/docs/framework/alpine/guides/key-lock-state.md @@ -0,0 +1,212 @@ +--- +title: Read Lock Key State in Alpine +id: key-lock-state +description: Show whether Caps Lock, Num Lock, or Scroll Lock is on in Alpine, handle the unknown state, and test UI that depends on it. +--- + +`createKeyLockState` reports whether a lock key is on. Use it for a Caps Lock warning on a password field, or a Num Lock hint on a form that takes numpad input. + +## Read a lock's state + +`createKeyLockState(key)` on an owner from `createHotkeysScope` takes `'CapsLock'`, `'NumLock'`, or `'ScrollLock'`. It returns an object whose reactive `value` holds one of these values: + +- `true` when the lock is on. +- `false` when the lock is off. +- `null` when the browser hasn't reported the lock. + +```ts +import Alpine from 'alpinejs' +import { createHotkeysScope } from '@tanstack/alpine-hotkeys' + +Alpine.data('capsLockBadge', () => { + const hotkeys = createHotkeysScope() + const capsLock = hotkeys.createKeyLockState('CapsLock') + + return { + get label() { + if (capsLock.value === null) return '' + return `Caps Lock ${capsLock.value ? 'on' : 'off'}` + }, + destroy() { + hotkeys.destroy() + }, + } +}) +``` + +```html + +``` + +Call it in `Alpine.data`, `x-init`, or `init()`, not in a reactive expression such as `x-text`, which would add a new subscription on every evaluation. An effect that reads `value` runs again whenever the key state changes, including key presses that don't change the lock. To track a key that changes, pass a getter instead of a key name. + +Lock keys toggle instead of being held. `createKeyHold('CapsLock')` answers a different question: its `value` is `true` only while the key is physically down, and it goes back to `false` when the user lets go, even though Caps Lock stays on. On macOS, Chrome and Safari send a keydown when Caps Lock turns on and a keyup when it turns off, so there `createKeyHold('CapsLock')` can look like lock state. Don't rely on that. Use `createKeyLockState` to read whether a lock is on. For keys the user holds, see [Track held keys and modifier state](./held-key-state-helpers). + +## Why the value starts as `null` + +Browsers have no API that reports lock state when the page loads. The state comes only with input events, through `event.getModifierState()`. The key state tracker reads it from keydown, keyup, mousedown, and mousemove events, so every lock is `null` until the user presses a key, clicks, or moves the mouse over the focused page. From then on, the value follows the user's input. + +The tracker reads only trusted events, the ones the browser creates from real input. It ignores events dispatched by page code, such as `element.dispatchEvent(new KeyboardEvent('keydown'))`, because those report every lock as off. + +Treat `null` as unknown, not as off. For a warning, show nothing until the value is `true`. The first key press in the field reports Caps Lock, so the warning appears as the user starts typing. + +Num Lock and Scroll Lock stay `null` on macOS and iOS. See [Browser and platform support](#browser-and-platform-support). + +## Why it resets when the window loses focus + +Every lock goes back to `null` when the window loses focus or the page is hidden, such as when the user switches to another tab or app. The user can toggle a lock in another app, so the last value the page saw may no longer be true. Once the window has focus again, the next key press, click, or mouse move over the page reports the lock again. The tracker ignores mouse events while the window doesn't have focus. + +Held keys reset at the same moments. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus). + +## Browser and platform support + +From the Chromium, Firefox, and WebKit source code, these browsers report each lock through `getModifierState()`: + +| Lock | Chromium (Chrome, Edge, Electron) | Firefox | Safari | +| ----------- | --------------------------------- | -------------------- | ------ | +| Caps Lock | Yes | Yes | Yes | +| Num Lock | Yes | Yes, except on macOS | No | +| Scroll Lock | Yes | Yes | No | + +Mac keyboards have no Num Lock or Scroll Lock key. On macOS, Firefox sets its Num Lock flag for keys on the numpad, which isn't lock state. For these reasons, `NumLock` and `ScrollLock` are always `null` on macOS and iOS, in every browser. Caps Lock works on every platform. + +The [UI Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier) also names `FnLock` and `SymbolLock`, but no browser engine reports them. Chromium doesn't map them, Firefox accepts the names but no platform backend sets them, and WebKit doesn't support them. Electron is no different: its renderer is Chromium, and its main-process [`before-input-event`](https://www.electronjs.org/docs/latest/api/web-contents#event-before-input-event) reports only `capslock` and `numlock`. The keyboard firmware handles Fn Lock, so a page has nothing to read. + +## Example: warn about Caps Lock on a password field + +```ts +Alpine.data('passwordField', () => { + const hotkeys = createHotkeysScope() + const capsLock = hotkeys.createKeyLockState('CapsLock') + + return { + get warning() { + return capsLock.value ? 'Caps Lock is on' : '' + }, + destroy() { + hotkeys.destroy() + }, + } +}) +``` + +```html + +``` + +The status element stays in the page and only its text changes, so screen readers can announce the warning when it appears. A `null` value hides the warning, the same as `false`. + +## Example: show Num Lock state on a numpad entry form + +A form for typing numbers on the numpad can tell the user when Num Lock is off. Check for `null` separately here: on macOS the value is always `null`, and "Num Lock is off" would be wrong for a keyboard that has no Num Lock key. + +```ts +Alpine.data('quantityForm', () => { + const hotkeys = createHotkeysScope() + const numLock = hotkeys.createKeyLockState('NumLock') + + return { + get numLockOff() { + return numLock.value === false + }, + get numLockOn() { + return numLock.value === true + }, + destroy() { + hotkeys.destroy() + }, + } +}) +``` + +```html +
+ +

Num Lock is off. Turn it on to type numbers on the numpad.

+

Num Lock is on

+
+``` + +## Read lock state in an event handler + +To check a lock once inside a key or mouse handler, call `event.getModifierState()`. It reads no reactive state, so nothing updates: + +```ts +Alpine.data('passwordInput', () => ({ + onKeydown(event: KeyboardEvent) { + if (event.key === 'Enter') { + logSignInAttempt({ capsLock: event.getModifierState('CapsLock') }) + } + }, +})) +``` + +```html + +``` + +`getModifierState()` returns what the browser reports, without the tracker's rules. Events dispatched by page code report every lock as off. On macOS, Num Lock and Scroll Lock values aren't lock state: Chrome reports them off, and Firefox reports Num Lock for numpad keys. + +When the handler has no key or mouse event, such as a timer or a form's submit handler, read the shared tracker instead. `getKeyStateTracker().getKeyLockState('CapsLock')` returns the same `true`, `false`, or `null` as `createKeyLockState`. + +## Test lock state + +happy-dom ignores `modifierCapsLock` and the other lock fields in a `KeyboardEvent` init, and its `MouseEvent` has no `getModifierState`. The tracker also reads only trusted events. Before you dispatch a test event, define `isTrusted` and an own `getModifierState` on it: + +```ts +import Alpine from 'alpinejs' +import { afterEach, expect, it } from 'vitest' +import { + KeyStateTracker, + createHotkeysScope, + hotkeysPlugin, +} from '@tanstack/alpine-hotkeys' +import type { LockKey } from '@tanstack/alpine-hotkeys' + +Alpine.plugin(hotkeysPlugin) + +const scopes: Array> = [] + +afterEach(() => { + scopes.splice(0).forEach((scope) => scope.destroy()) + KeyStateTracker.resetInstance() +}) + +function withLocks( + event: TEvent, + locks: Partial>, +): TEvent { + Object.defineProperty(event, 'isTrusted', { value: true }) + Object.defineProperty(event, 'getModifierState', { + value: (key: string) => locks[key as LockKey] === true, + }) + return event +} + +it('reports Caps Lock from a trusted event', () => { + const hotkeys = createHotkeysScope() + scopes.push(hotkeys) + const capsLock = hotkeys.createKeyLockState('CapsLock') + expect(capsLock.value).toBe(null) + + document.dispatchEvent( + withLocks( + new KeyboardEvent('keydown', { key: 'A', code: 'KeyA', bubbles: true }), + { CapsLock: true }, + ), + ) + + expect(capsLock.value).toBe(true) +}) +``` + +Reset `KeyStateTracker` after each test so lock values don't carry over to the next one. A real browser doesn't let you redefine `isTrusted`, so this works only in a simulated DOM such as happy-dom. See [Testing](./testing) for the rest of the test setup. + +See the [createKeyLockState example](../examples/createKeyLockState) for a Caps Lock warning on a password field and an indicator for each lock. diff --git a/docs/framework/alpine/reference/functions/createHotkeysScope.md b/docs/framework/alpine/reference/functions/createHotkeysScope.md index a523c54ed..96200600d 100644 --- a/docs/framework/alpine/reference/functions/createHotkeysScope.md +++ b/docs/framework/alpine/reference/functions/createHotkeysScope.md @@ -9,7 +9,7 @@ title: createHotkeysScope function createHotkeysScope(defaultOptions?): AlpineHotkeys; ``` -Defined in: [createHotkeysScope.ts:28](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/createHotkeysScope.ts#L28) +Defined in: [createHotkeysScope.ts:29](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/createHotkeysScope.ts#L29) Owns Alpine effects and Store subscriptions, with optional shared defaults. App hotkeys come from `provideAppHotkeys`. Call destroy from x-data's diff --git a/docs/framework/alpine/reference/interfaces/AlpineCreateHotkey.md b/docs/framework/alpine/reference/interfaces/AlpineCreateHotkey.md index 4041599a2..0565e88a9 100644 --- a/docs/framework/alpine/reference/interfaces/AlpineCreateHotkey.md +++ b/docs/framework/alpine/reference/interfaces/AlpineCreateHotkey.md @@ -5,7 +5,7 @@ title: AlpineCreateHotkey -Defined in: [types.ts:72](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L72) +Defined in: [types.ts:73](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L73) Registers a hotkey: a chord, a sequence, or an app hotkey. @@ -19,7 +19,7 @@ AlpineCreateHotkey( ): void; ``` -Defined in: [types.ts:73](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L73) +Defined in: [types.ts:74](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L74) Registers a hotkey: a chord, a sequence, or an app hotkey. @@ -57,7 +57,7 @@ AlpineCreateHotkey( ): void; ``` -Defined in: [types.ts:78](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L78) +Defined in: [types.ts:79](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L79) Registers a hotkey: a chord, a sequence, or an app hotkey. diff --git a/docs/framework/alpine/reference/interfaces/AlpineCreateHotkeyRecorder.md b/docs/framework/alpine/reference/interfaces/AlpineCreateHotkeyRecorder.md index b490465a9..5fe25816d 100644 --- a/docs/framework/alpine/reference/interfaces/AlpineCreateHotkeyRecorder.md +++ b/docs/framework/alpine/reference/interfaces/AlpineCreateHotkeyRecorder.md @@ -5,7 +5,7 @@ title: AlpineCreateHotkeyRecorder -Defined in: [types.ts:86](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L86) +Defined in: [types.ts:87](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L87) `$hotkeyRecorder`: creates a recorder; `maxSteps` (default 1) selects chords or sequences. @@ -15,7 +15,7 @@ Defined in: [types.ts:86](https://github.com/TanStack/hotkeys/blob/main/packages AlpineCreateHotkeyRecorder(options): AlpineHotkeyRecorder; ``` -Defined in: [types.ts:87](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L87) +Defined in: [types.ts:88](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L88) `$hotkeyRecorder`: creates a recorder; `maxSteps` (default 1) selects chords or sequences. @@ -35,7 +35,7 @@ Defined in: [types.ts:87](https://github.com/TanStack/hotkeys/blob/main/packages AlpineCreateHotkeyRecorder(options): AlpineHotkeyRecorder; ``` -Defined in: [types.ts:88](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L88) +Defined in: [types.ts:89](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L89) `$hotkeyRecorder`: creates a recorder; `maxSteps` (default 1) selects chords or sequences. @@ -55,7 +55,7 @@ Defined in: [types.ts:88](https://github.com/TanStack/hotkeys/blob/main/packages AlpineCreateHotkeyRecorder(options): AlpineHotkeyRecorder; ``` -Defined in: [types.ts:92](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L92) +Defined in: [types.ts:93](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L93) `$hotkeyRecorder`: creates a recorder; `maxSteps` (default 1) selects chords or sequences. @@ -75,7 +75,7 @@ Defined in: [types.ts:92](https://github.com/TanStack/hotkeys/blob/main/packages AlpineCreateHotkeyRecorder(options): AlpineHotkeyRecorder; ``` -Defined in: [types.ts:93](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L93) +Defined in: [types.ts:94](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L94) `$hotkeyRecorder`: creates a recorder; `maxSteps` (default 1) selects chords or sequences. @@ -95,7 +95,7 @@ Defined in: [types.ts:93](https://github.com/TanStack/hotkeys/blob/main/packages AlpineCreateHotkeyRecorder(options): AlpineHotkeyRecorder; ``` -Defined in: [types.ts:94](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L94) +Defined in: [types.ts:95](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L95) `$hotkeyRecorder`: creates a recorder; `maxSteps` (default 1) selects chords or sequences. diff --git a/docs/framework/alpine/reference/interfaces/AlpineCustomHotkeys.md b/docs/framework/alpine/reference/interfaces/AlpineCustomHotkeys.md index 6411b2060..99a3639a7 100644 --- a/docs/framework/alpine/reference/interfaces/AlpineCustomHotkeys.md +++ b/docs/framework/alpine/reference/interfaces/AlpineCustomHotkeys.md @@ -5,7 +5,7 @@ title: AlpineCustomHotkeys -Defined in: [types.ts:66](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L66) +Defined in: [types.ts:67](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L67) Custom hotkey state and actions. @@ -21,6 +21,6 @@ Custom hotkey state and actions. readonly value: CustomHotkeys; ``` -Defined in: [types.ts:68](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L68) +Defined in: [types.ts:69](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L69) The user's hotkeys that differ from the defaults. diff --git a/docs/framework/alpine/reference/interfaces/AlpineHotkeyRecorder.md b/docs/framework/alpine/reference/interfaces/AlpineHotkeyRecorder.md index 7fa637dd9..9ded27aba 100644 --- a/docs/framework/alpine/reference/interfaces/AlpineHotkeyRecorder.md +++ b/docs/framework/alpine/reference/interfaces/AlpineHotkeyRecorder.md @@ -5,7 +5,7 @@ title: AlpineHotkeyRecorder -Defined in: [types.ts:62](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L62) +Defined in: [types.ts:63](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L63) Recording state and controls owned by the containing scope. diff --git a/docs/framework/alpine/reference/interfaces/AlpineHotkeyState.md b/docs/framework/alpine/reference/interfaces/AlpineHotkeyState.md index 09a4921e9..cbd6bc11b 100644 --- a/docs/framework/alpine/reference/interfaces/AlpineHotkeyState.md +++ b/docs/framework/alpine/reference/interfaces/AlpineHotkeyState.md @@ -5,7 +5,7 @@ title: AlpineHotkeyState -Defined in: [types.ts:37](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L37) +Defined in: [types.ts:38](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L38) A reactive value. Read `.value` where the framework tracks dependencies. @@ -23,4 +23,4 @@ A reactive value. Read `.value` where the framework tracks dependencies. readonly value: T; ``` -Defined in: [types.ts:38](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L38) +Defined in: [types.ts:39](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L39) diff --git a/docs/framework/alpine/reference/interfaces/AlpineHotkeys.md b/docs/framework/alpine/reference/interfaces/AlpineHotkeys.md index 7137ad7d0..9b044201d 100644 --- a/docs/framework/alpine/reference/interfaces/AlpineHotkeys.md +++ b/docs/framework/alpine/reference/interfaces/AlpineHotkeys.md @@ -5,7 +5,7 @@ title: AlpineHotkeys -Defined in: [types.ts:98](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L98) +Defined in: [types.ts:99](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L99) Registrations and reactive state owned by one Alpine component. @@ -17,7 +17,7 @@ Registrations and reactive state owned by one Alpine component. createAppHotkeyList: () => AlpineHotkeyState; ``` -Defined in: [types.ts:234](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L234) +Defined in: [types.ts:273](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L273) 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:232](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L232) +Defined in: [types.ts:271](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L271) 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:238](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L238) +Defined in: [types.ts:277](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L277) Read and change the user's custom hotkeys. @@ -65,7 +65,7 @@ Read and change the user's custom hotkeys. createFormatForAria: () => (hotkey, options) => string | undefined; ``` -Defined in: [types.ts:198](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L198) +Defined in: [types.ts:237](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L237) Returns `formatForAria` with the scope's `platform` as the default, or the detected platform without one. Use its value for `aria-keyshortcuts`, so @@ -174,7 +174,7 @@ createFormatForDisplay: () => { }; ``` -Defined in: [types.ts:160](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L160) +Defined in: [types.ts:199](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L199) Returns `formatForDisplay` with the scope's `platform` as the default, or the detected platform without one. A `platform` passed to the returned @@ -498,7 +498,7 @@ Alpine.data('saveButton', () => { createHeldKeyCodes: () => AlpineHotkeyState>; ``` -Defined in: [types.ts:113](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L113) +Defined in: [types.ts:114](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L114) Read the mapping of held logical names to physical codes through `.value`. @@ -514,7 +514,7 @@ Read the mapping of held logical names to physical codes through `.value`. createHeldKeys: () => AlpineHotkeyState; ``` -Defined in: [types.ts:111](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L111) +Defined in: [types.ts:112](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L112) Read held logical key names through `.value`. @@ -530,7 +530,7 @@ Read held logical key names through `.value`. createHotkey: AlpineCreateHotkey; ``` -Defined in: [types.ts:104](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L104) +Defined in: [types.ts:105](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L105) Register one hotkey: a chord such as `'Mod+S'`, a sequence such as `['G', 'G']`, or an app hotkey. Getters track changing hotkeys and options. @@ -544,7 +544,7 @@ Register one hotkey: a chord such as `'Mod+S'`, a sequence such as createHotkeyHint: (hotkey, options?) => AlpineHotkeyState; ``` -Defined in: [types.ts:120](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L120) +Defined in: [types.ts:159](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L159) Read whether held modifiers reveal a hotkey through `.value`. No hotkey (`undefined`, `null`, or `''`) is never visible. @@ -575,7 +575,7 @@ Read whether held modifiers reveal a hotkey through `.value`. No hotkey createHotkeyRegistrations: () => HotkeyRegistrationsResult; ``` -Defined in: [types.ts:125](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L125) +Defined in: [types.ts:164](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L164) Read live registrations, including disabled entries. @@ -591,7 +591,7 @@ Read live registrations, including disabled entries. createHotkeys: (definitions, options?) => void; ``` -Defined in: [types.ts:106](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L106) +Defined in: [types.ts:107](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L107) Reconcile a list of hotkeys. Definition options override common options. @@ -617,7 +617,7 @@ Reconcile a list of hotkeys. Definition options override common options. createHotkeyScopesState: () => AlpineHotkeyState; ``` -Defined in: [types.ts:127](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L127) +Defined in: [types.ts:166](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L166) Read the active, exclusive, allowed, and suspended scopes through `.value`. @@ -633,7 +633,7 @@ Read the active, exclusive, allowed, and suspended scopes through `.value`. createKeyboardLayout: () => AlpineHotkeyState; ``` -Defined in: [types.ts:230](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L230) +Defined in: [types.ts:269](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L269) 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 @@ -678,7 +678,7 @@ Alpine.data('moveKeys', () => { createKeyHold: (key) => AlpineHotkeyState; ``` -Defined in: [types.ts:115](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L115) +Defined in: [types.ts:116](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L116) Read whether a key is held through `.value`. @@ -694,13 +694,68 @@ Read whether a key is held through `.value`. *** +### createKeyLockState + +```ts +createKeyLockState: (key) => AlpineHotkeyState; +``` + +Defined in: [types.ts:152](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L152) + +Read whether a lock key, such as Caps Lock, is on through `.value`: `true` +when the lock is on, `false` when it is off, or `null`. Pass +`'CapsLock'`, `'NumLock'`, or `'ScrollLock'`, or a getter. + +Lock keys toggle instead of being held, so this reads the lock state that +the browser reports on key and mouse events. `.value` is `null` until the +user presses a key, clicks, or moves the mouse, after the window loses +focus or the page is hidden, and always for Num Lock and Scroll Lock on macOS and iOS. + +#### Parameters + +##### key + +`MaybeGetter`\<`LockKey`\> + +#### Returns + +[`AlpineHotkeyState`](AlpineHotkeyState.md)\<`boolean` \| `null`\> + +#### Example + +```ts +Alpine.data('passwordField', () => { + const hotkeys = createHotkeysScope() + const capsLock = hotkeys.createKeyLockState('CapsLock') + + return { + get capsLockOn() { + return capsLock.value === true + }, + destroy() { + hotkeys.destroy() + }, + } +}) +``` + +```html + +``` + +*** + ### destroy ```ts destroy: () => void; ``` -Defined in: [types.ts:240](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L240) +Defined in: [types.ts:279](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L279) 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 e790822e1..b24b38685 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:244](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L244) +Defined in: [types.ts:283](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L283) 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:260](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L260) +Defined in: [types.ts:299](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L299) 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:262](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L262) +Defined in: [types.ts:301](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L301) Defaults for every recorder. @@ -41,7 +41,7 @@ Defaults for every recorder. optional keyboardLayout?: boolean; ``` -Defined in: [types.ts:258](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L258) +Defined in: [types.ts:297](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L297) 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:250](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L250) +Defined in: [types.ts:289](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L289) The user's platform, for labels from `createFormatForDisplay`, hotkeys, and recorders. `hotkey.platform` and `hotkeyRecorder.platform` win. diff --git a/docs/framework/alpine/reference/type-aliases/AlpineAppHotkeyOptions.md b/docs/framework/alpine/reference/type-aliases/AlpineAppHotkeyOptions.md index c819ea236..0da599b78 100644 --- a/docs/framework/alpine/reference/type-aliases/AlpineAppHotkeyOptions.md +++ b/docs/framework/alpine/reference/type-aliases/AlpineAppHotkeyOptions.md @@ -9,7 +9,7 @@ title: AlpineAppHotkeyOptions type AlpineAppHotkeyOptions = AdapterAppHotkeyOptions; ``` -Defined in: [types.ts:58](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L58) +Defined in: [types.ts:59](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L59) Call-site options for an app hotkey, typed by its declared default kind. diff --git a/docs/framework/alpine/reference/type-aliases/AlpineHotkeyCommonOptions.md b/docs/framework/alpine/reference/type-aliases/AlpineHotkeyCommonOptions.md index d3f48f1db..97a510633 100644 --- a/docs/framework/alpine/reference/type-aliases/AlpineHotkeyCommonOptions.md +++ b/docs/framework/alpine/reference/type-aliases/AlpineHotkeyCommonOptions.md @@ -9,6 +9,6 @@ title: AlpineHotkeyCommonOptions type AlpineHotkeyCommonOptions = AdapterCommonOptions; ``` -Defined in: [types.ts:51](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L51) +Defined in: [types.ts:52](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L52) Options for every kind; each applies to the kinds that support it. diff --git a/docs/framework/alpine/reference/type-aliases/AlpineHotkeyDefinition.md b/docs/framework/alpine/reference/type-aliases/AlpineHotkeyDefinition.md index 132ac8733..5d7a6b22a 100644 --- a/docs/framework/alpine/reference/type-aliases/AlpineHotkeyDefinition.md +++ b/docs/framework/alpine/reference/type-aliases/AlpineHotkeyDefinition.md @@ -9,6 +9,6 @@ title: AlpineHotkeyDefinition type AlpineHotkeyDefinition = AdapterHotkeyDefinition; ``` -Defined in: [types.ts:48](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L48) +Defined in: [types.ts:49](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L49) One hotkey for `createHotkeys`: a chord, a sequence, or an app hotkey. diff --git a/docs/framework/alpine/reference/type-aliases/AlpineHotkeyOptionsFor.md b/docs/framework/alpine/reference/type-aliases/AlpineHotkeyOptionsFor.md index ef5800c75..d611b6d35 100644 --- a/docs/framework/alpine/reference/type-aliases/AlpineHotkeyOptionsFor.md +++ b/docs/framework/alpine/reference/type-aliases/AlpineHotkeyOptionsFor.md @@ -9,7 +9,7 @@ title: AlpineHotkeyOptionsFor type AlpineHotkeyOptionsFor = AdapterOptionsFor; ``` -Defined in: [types.ts:54](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L54) +Defined in: [types.ts:55](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L55) The options type for a hotkey: chord options for chords, sequence options for sequences. diff --git a/docs/framework/alpine/reference/type-aliases/AlpineHotkeyTarget.md b/docs/framework/alpine/reference/type-aliases/AlpineHotkeyTarget.md index 611b95149..bd14d3c89 100644 --- a/docs/framework/alpine/reference/type-aliases/AlpineHotkeyTarget.md +++ b/docs/framework/alpine/reference/type-aliases/AlpineHotkeyTarget.md @@ -9,7 +9,7 @@ title: AlpineHotkeyTarget type AlpineHotkeyTarget = Target | null; ``` -Defined in: [types.ts:45](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L45) +Defined in: [types.ts:46](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L46) The element to listen on. A `null` or `undefined` target skips registration until it is set. Omit `target` for the document. diff --git a/docs/framework/angular/guides/held-key-state-helpers.md b/docs/framework/angular/guides/held-key-state-helpers.md index e3d5b1d24..ff7b3eaee 100644 --- a/docs/framework/angular/guides/held-key-state-helpers.md +++ b/docs/framework/angular/guides/held-key-state-helpers.md @@ -111,3 +111,19 @@ export class CanvasComponent { Held keys reset automatically when the window loses focus, so a key released after switching apps never stays stuck. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus). See the [injectHeldKeys example](../examples/injectHeldKeys) and the [injectKeyHold example](../examples/injectKeyHold). + +## Lock keys + +Caps Lock, Num Lock, and Scroll Lock toggle instead of being held. `injectKeyHold('CapsLock')()` is `true` only while the key is down, not while Caps Lock is on. To read whether a lock is on, use `injectKeyLockState`: + +```ts +import { injectKeyLockState } from '@tanstack/angular-hotkeys' + +readonly capsLock = injectKeyLockState('CapsLock') // capsLock(): true, false, or null +``` + +```html +{{ capsLock() ? 'Caps Lock is on' : '' }} +``` + +The value is `null` until the browser reports the lock. See [Read lock key state](./key-lock-state) for when that happens and which browsers report each lock. diff --git a/docs/framework/angular/guides/key-lock-state.md b/docs/framework/angular/guides/key-lock-state.md new file mode 100644 index 000000000..e4376e799 --- /dev/null +++ b/docs/framework/angular/guides/key-lock-state.md @@ -0,0 +1,199 @@ +--- +title: Read Lock Key State in Angular +id: key-lock-state +description: Show whether Caps Lock, Num Lock, or Scroll Lock is on in Angular, handle the unknown state, and test UI that depends on it. +--- + +`injectKeyLockState` reports whether a lock key is on. Use it for a Caps Lock warning on a password field, or a Num Lock hint on a form that takes numpad input. + +## Read a lock's state + +`injectKeyLockState(key)` takes `'CapsLock'`, `'NumLock'`, or `'ScrollLock'` and returns a `Signal` of one of these values: + +- `true` when the lock is on. +- `false` when the lock is off. +- `null` when the browser hasn't reported the lock. + +```ts +import { Component } from '@angular/core' +import { injectKeyLockState } from '@tanstack/angular-hotkeys' + +@Component({ + selector: 'app-caps-lock-badge', + template: ` + @if (capsLock() !== null) { + Caps Lock {{ capsLock() ? 'on' : 'off' }} + } + `, +}) +export class CapsLockBadgeComponent { + readonly capsLock = injectKeyLockState('CapsLock') +} +``` + +Call it in an injection context, such as a field initializer. The signal changes only when the lock's value changes. To track a key that changes, pass a getter, such as `injectKeyLockState(() => this.lock())`. + +Lock keys toggle instead of being held. `injectKeyHold('CapsLock')` answers a different question: its signal is `true` only while the key is physically down, and it goes back to `false` when the user lets go, even though Caps Lock stays on. On macOS, Chrome and Safari send a keydown when Caps Lock turns on and a keyup when it turns off, so there `injectKeyHold('CapsLock')` can look like lock state. Don't rely on that. Use `injectKeyLockState` to read whether a lock is on. For keys the user holds, see [Track held keys and modifier state](./held-key-state-helpers). + +## Why the value starts as `null` + +Browsers have no API that reports lock state when the page loads. The state comes only with input events, through `event.getModifierState()`. The key state tracker reads it from keydown, keyup, mousedown, and mousemove events, so every lock is `null` until the user presses a key, clicks, or moves the mouse over the focused page. From then on, the value follows the user's input. + +The tracker reads only trusted events, the ones the browser creates from real input. It ignores events dispatched by page code, such as `element.dispatchEvent(new KeyboardEvent('keydown'))`, because those report every lock as off. + +Treat `null` as unknown, not as off. For a warning, show nothing until the value is `true`. The first key press in the field reports Caps Lock, so the warning appears as the user starts typing. + +Num Lock and Scroll Lock stay `null` on macOS and iOS. See [Browser and platform support](#browser-and-platform-support). + +## Why it resets when the window loses focus + +Every lock goes back to `null` when the window loses focus or the page is hidden, such as when the user switches to another tab or app. The user can toggle a lock in another app, so the last value the page saw may no longer be true. Once the window has focus again, the next key press, click, or mouse move over the page reports the lock again. The tracker ignores mouse events while the window doesn't have focus. + +Held keys reset at the same moments. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus). + +## Browser and platform support + +From the Chromium, Firefox, and WebKit source code, these browsers report each lock through `getModifierState()`: + +| Lock | Chromium (Chrome, Edge, Electron) | Firefox | Safari | +| ----------- | --------------------------------- | -------------------- | ------ | +| Caps Lock | Yes | Yes | Yes | +| Num Lock | Yes | Yes, except on macOS | No | +| Scroll Lock | Yes | Yes | No | + +Mac keyboards have no Num Lock or Scroll Lock key. On macOS, Firefox sets its Num Lock flag for keys on the numpad, which isn't lock state. For these reasons, `NumLock` and `ScrollLock` are always `null` on macOS and iOS, in every browser. Caps Lock works on every platform. + +The [UI Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier) also names `FnLock` and `SymbolLock`, but no browser engine reports them. Chromium doesn't map them, Firefox accepts the names but no platform backend sets them, and WebKit doesn't support them. Electron is no different: its renderer is Chromium, and its main-process [`before-input-event`](https://www.electronjs.org/docs/latest/api/web-contents#event-before-input-event) reports only `capslock` and `numlock`. The keyboard firmware handles Fn Lock, so a page has nothing to read. + +## Example: warn about Caps Lock on a password field + +```ts +import { Component } from '@angular/core' +import { injectKeyLockState } from '@tanstack/angular-hotkeys' + +@Component({ + selector: 'app-password-field', + template: ` + + `, +}) +export class PasswordFieldComponent { + readonly capsLock = injectKeyLockState('CapsLock') +} +``` + +The status element stays in the page and only its text changes, so screen readers can announce the warning when it appears. A `null` value hides the warning, the same as `false`. + +## Example: show Num Lock state on a numpad entry form + +A form for typing numbers on the numpad can tell the user when Num Lock is off. Check for `null` separately here: on macOS the value is always `null`, and "Num Lock is off" would be wrong for a keyboard that has no Num Lock key. + +```ts +import { Component } from '@angular/core' +import { injectKeyLockState } from '@tanstack/angular-hotkeys' + +@Component({ + selector: 'app-quantity-form', + template: ` +
+ + @if (numLock() === false) { +

Num Lock is off. Turn it on to type numbers on the numpad.

+ } @else if (numLock() === true) { +

Num Lock is on

+ } +
+ `, +}) +export class QuantityFormComponent { + readonly numLock = injectKeyLockState('NumLock') +} +``` + +## Read lock state in an event handler + +To check a lock once inside a key or mouse handler, call `event.getModifierState()`. It reads no signal, so nothing updates: + +```ts +import { Component } from '@angular/core' + +@Component({ + selector: 'app-password-input', + template: ``, +}) +export class PasswordInputComponent { + onKeydown(event: KeyboardEvent) { + if (event.key === 'Enter') { + logSignInAttempt({ capsLock: event.getModifierState('CapsLock') }) + } + } +} +``` + +`getModifierState()` returns what the browser reports, without the tracker's rules. Events dispatched by page code report every lock as off. On macOS, Num Lock and Scroll Lock values aren't lock state: Chrome reports them off, and Firefox reports Num Lock for numpad keys. + +When the handler has no key or mouse event, such as a timer or a form's submit handler, read the shared tracker instead. `getKeyStateTracker().getKeyLockState('CapsLock')` returns the same `true`, `false`, or `null` as `injectKeyLockState`. + +## Test lock state + +happy-dom ignores `modifierCapsLock` and the other lock fields in a `KeyboardEvent` init, and its `MouseEvent` has no `getModifierState`. The tracker also reads only trusted events. Before you dispatch a test event, define `isTrusted` and an own `getModifierState` on it: + +```ts +import { provideZonelessChangeDetection } from '@angular/core' +import { TestBed } from '@angular/core/testing' +import { afterEach, beforeEach, expect, it } from 'vitest' +import { KeyStateTracker } from '@tanstack/angular-hotkeys' +import type { LockKey } from '@tanstack/angular-hotkeys' +import { PasswordFieldComponent } from './password-field.component' + +beforeEach(() => { + TestBed.configureTestingModule({ + providers: [provideZonelessChangeDetection()], + }) +}) + +afterEach(() => { + TestBed.resetTestingModule() + KeyStateTracker.resetInstance() +}) + +function withLocks( + event: TEvent, + locks: Partial>, +): TEvent { + Object.defineProperty(event, 'isTrusted', { value: true }) + Object.defineProperty(event, 'getModifierState', { + value: (key: string) => locks[key as LockKey] === true, + }) + return event +} + +it('warns when Caps Lock is on', () => { + const fixture = TestBed.createComponent(PasswordFieldComponent) + fixture.detectChanges() + + document.dispatchEvent( + withLocks( + new KeyboardEvent('keydown', { key: 'A', code: 'KeyA', bubbles: true }), + { CapsLock: true }, + ), + ) + fixture.detectChanges() + + const element = fixture.nativeElement as HTMLElement + expect(element.querySelector('[role="status"]')?.textContent).toBe( + 'Caps Lock is on', + ) +}) +``` + +Reset `KeyStateTracker` after each test so lock values don't carry over to the next one. A real browser doesn't let you redefine `isTrusted`, so this works only in a simulated DOM such as happy-dom. See [Testing](./testing) for the rest of the test setup. + +See the [injectKeyLockState example](../examples/injectKeyLockState) for a Caps Lock warning on a password field and an indicator for each lock. diff --git a/docs/framework/angular/reference/functions/injectKeyLockState.md b/docs/framework/angular/reference/functions/injectKeyLockState.md new file mode 100644 index 000000000..c8eedd3e7 --- /dev/null +++ b/docs/framework/angular/reference/functions/injectKeyLockState.md @@ -0,0 +1,53 @@ +--- +id: injectKeyLockState +title: injectKeyLockState +--- + + + +```ts +function injectKeyLockState(key): Signal; +``` + +Defined in: [injectKeyLockState.ts:39](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/injectKeyLockState.ts#L39) + +Angular inject-based API that returns a signal of whether a lock key, such +as Caps Lock, is on. + +Lock keys toggle instead of being held, so this reads the lock state that +the browser reports on key and mouse events. The signal is `null` until the +user presses a key, clicks, or moves the mouse, after the window loses +focus or the page is hidden, and always for Num Lock and Scroll Lock on macOS and iOS. + +## Parameters + +### key + +`MaybeGetter`\<`LockKey`\> + +`'CapsLock'`, `'NumLock'`, or `'ScrollLock'` - can be a getter function + +## Returns + +`Signal`\<`boolean` \| `null`\> + +Signal that is `true` when the lock is on, `false` when it is off, or `null` + +## Example + +```ts +@Component({ + template: ` + + `, +}) +export class PasswordFieldComponent { + capsLock = injectKeyLockState('CapsLock') +} +``` diff --git a/docs/framework/angular/reference/index.md b/docs/framework/angular/reference/index.md index 2b95b7ac0..e9b9d155a 100644 --- a/docs/framework/angular/reference/index.md +++ b/docs/framework/angular/reference/index.md @@ -49,4 +49,5 @@ title: "@tanstack/angular-hotkeys" - [injectHotkeyScopesState](functions/injectHotkeyScopesState.md) - [injectKeyboardLayout](functions/injectKeyboardLayout.md) - [injectKeyHold](functions/injectKeyHold.md) +- [injectKeyLockState](functions/injectKeyLockState.md) - [provideHotkeys](functions/provideHotkeys.md) diff --git a/docs/framework/ember/guides/held-key-state-helpers.md b/docs/framework/ember/guides/held-key-state-helpers.md index 841ebd44f..00d52b113 100644 --- a/docs/framework/ember/guides/held-key-state-helpers.md +++ b/docs/framework/ember/guides/held-key-state-helpers.md @@ -112,3 +112,19 @@ For a mouse or wheel event, `event.ctrlKey`, `shiftKey`, `altKey`, and `metaKey` Held keys clear when the window loses focus, so a key released after switching apps doesn't stay held. [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus) covers the cases the tracker handles. The [useHeldKeys example](../examples/useHeldKeys) shows held keys and their codes, and the [useKeyHold example](../examples/useKeyHold) shows modifier indicators. + +## Lock keys + +Caps Lock, Num Lock, and Scroll Lock toggle instead of being held. The `value` of `useKeyHold(this, 'CapsLock')` is `true` only while the key is down, not while Caps Lock is on. To read whether a lock is on, use `useKeyLockState`: + +```gts +import { useKeyLockState } from '@tanstack/ember-hotkeys' + +capsLock = useKeyLockState(this, 'CapsLock') // value: true, false, or null + + +``` + +The value is `null` until the browser reports the lock. See [Read lock key state](./key-lock-state) for when that happens and which browsers report each lock. diff --git a/docs/framework/ember/guides/key-lock-state.md b/docs/framework/ember/guides/key-lock-state.md new file mode 100644 index 000000000..55c312b36 --- /dev/null +++ b/docs/framework/ember/guides/key-lock-state.md @@ -0,0 +1,179 @@ +--- +title: Read Lock Key State in Ember +id: key-lock-state +description: Show whether Caps Lock, Num Lock, or Scroll Lock is on in Ember, handle the unknown state, and test UI that depends on it. +--- + +`useKeyLockState` reports whether a lock key is on. Use it for a Caps Lock warning on a password field, or a Num Lock hint on a form that takes numpad input. + +## Read a lock's state + +`useKeyLockState(owner, key)` takes `'CapsLock'`, `'NumLock'`, or `'ScrollLock'` and returns an object whose tracked `value` holds one of these values: + +- `true` when the lock is on. +- `false` when the lock is off. +- `null` when the browser hasn't reported the lock. + +```gts +import Component from '@glimmer/component' +import { useKeyLockState } from '@tanstack/ember-hotkeys' + +export default class CapsLockBadge extends Component { + capsLock = useKeyLockState(this, 'CapsLock') + + get label() { + const on = this.capsLock.value + return on === null ? null : `Caps Lock ${on ? 'on' : 'off'}` + } + + +} +``` + +Pass the component as the owner. The subscription ends when the owner is destroyed. `value` changes only when the lock's value changes. To track a key that changes, pass a getter, such as `useKeyLockState(this, () => this.args.lock)`. + +Lock keys toggle instead of being held. `useKeyHold(this, 'CapsLock')` answers a different question: its `value` is `true` only while the key is physically down, and it goes back to `false` when the user lets go, even though Caps Lock stays on. On macOS, Chrome and Safari send a keydown when Caps Lock turns on and a keyup when it turns off, so there `useKeyHold(this, 'CapsLock')` can look like lock state. Don't rely on that. Use `useKeyLockState` to read whether a lock is on. For keys the user holds, see [Track held keys and modifier state](./held-key-state-helpers). + +## Why the value starts as `null` + +Browsers have no API that reports lock state when the page loads. The state comes only with input events, through `event.getModifierState()`. The key state tracker reads it from keydown, keyup, mousedown, and mousemove events, so every lock is `null` until the user presses a key, clicks, or moves the mouse over the focused page. From then on, the value follows the user's input. + +The tracker reads only trusted events, the ones the browser creates from real input. It ignores events dispatched by page code, such as `element.dispatchEvent(new KeyboardEvent('keydown'))`, because those report every lock as off. + +Treat `null` as unknown, not as off. For a warning, show nothing until the value is `true`. The first key press in the field reports Caps Lock, so the warning appears as the user starts typing. + +Num Lock and Scroll Lock stay `null` on macOS and iOS. See [Browser and platform support](#browser-and-platform-support). + +## Why it resets when the window loses focus + +Every lock goes back to `null` when the window loses focus or the page is hidden, such as when the user switches to another tab or app. The user can toggle a lock in another app, so the last value the page saw may no longer be true. Once the window has focus again, the next key press, click, or mouse move over the page reports the lock again. The tracker ignores mouse events while the window doesn't have focus. + +Held keys reset at the same moments. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus). + +## Browser and platform support + +From the Chromium, Firefox, and WebKit source code, these browsers report each lock through `getModifierState()`: + +| Lock | Chromium (Chrome, Edge, Electron) | Firefox | Safari | +| ----------- | --------------------------------- | -------------------- | ------ | +| Caps Lock | Yes | Yes | Yes | +| Num Lock | Yes | Yes, except on macOS | No | +| Scroll Lock | Yes | Yes | No | + +Mac keyboards have no Num Lock or Scroll Lock key. On macOS, Firefox sets its Num Lock flag for keys on the numpad, which isn't lock state. For these reasons, `NumLock` and `ScrollLock` are always `null` on macOS and iOS, in every browser. Caps Lock works on every platform. + +The [UI Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier) also names `FnLock` and `SymbolLock`, but no browser engine reports them. Chromium doesn't map them, Firefox accepts the names but no platform backend sets them, and WebKit doesn't support them. Electron is no different: its renderer is Chromium, and its main-process [`before-input-event`](https://www.electronjs.org/docs/latest/api/web-contents#event-before-input-event) reports only `capslock` and `numlock`. The keyboard firmware handles Fn Lock, so a page has nothing to read. + +## Example: warn about Caps Lock on a password field + +```gts +import Component from '@glimmer/component' +import { useKeyLockState } from '@tanstack/ember-hotkeys' + +export default class PasswordField extends Component { + capsLock = useKeyLockState(this, 'CapsLock') + + +} +``` + +The status element stays in the page and only its text changes, so screen readers can announce the warning when it appears. A `null` value hides the warning, the same as `false`. + +## Example: show Num Lock state on a numpad entry form + +A form for typing numbers on the numpad can tell the user when Num Lock is off. Check for `null` separately here: on macOS the value is always `null`, and "Num Lock is off" would be wrong for a keyboard that has no Num Lock key. + +```gts +import Component from '@glimmer/component' +import { useKeyLockState } from '@tanstack/ember-hotkeys' + +export default class QuantityForm extends Component { + numLock = useKeyLockState(this, 'NumLock') + + get numLockOff() { + return this.numLock.value === false + } + + get numLockOn() { + return this.numLock.value === true + } + + +} +``` + +## Read lock state in an event handler + +To check a lock once inside a key or mouse handler, call `event.getModifierState()`. It reads no tracked state, so nothing re-renders: + +```gts +import Component from '@glimmer/component' +import { on } from '@ember/modifier' + +export default class PasswordInput extends Component { + onKeydown = (event: KeyboardEvent) => { + if (event.key === 'Enter') { + logSignInAttempt({ capsLock: event.getModifierState('CapsLock') }) + } + } + + +} +``` + +`getModifierState()` returns what the browser reports, without the tracker's rules. Events dispatched by page code report every lock as off. On macOS, Num Lock and Scroll Lock values aren't lock state: Chrome reports them off, and Firefox reports Num Lock for numpad keys. + +When the handler has no key or mouse event, such as a timer or a form's submit handler, read the shared tracker instead. `getKeyStateTracker().getKeyLockState('CapsLock')` returns the same `true`, `false`, or `null` as `useKeyLockState`. + +## Test lock state + +Ember rendering tests run in a real browser, where `isTrusted` is read-only. A test can't mark a dispatched event as trusted, so the tracker ignores the lock state on every event a test sends. Test the unknown state, which needs no input: + +```gts +import { module, test } from 'qunit' +import { clearRender, find, render } from '@ember/test-helpers' +import { setupRenderingTest } from 'ember-qunit' +import { KeyStateTracker } from '@tanstack/ember-hotkeys' +import PasswordField from 'my-app/components/password-field' + +module('Integration | password field', function (hooks) { + setupRenderingTest(hooks) + + hooks.afterEach(async function () { + await clearRender() + KeyStateTracker.resetInstance() + }) + + test('hides the warning while Caps Lock is unknown', async function (assert) { + await render() + + assert.strictEqual(find('[role="status"]')?.textContent, '') + }) +}) +``` + +To test the `true` and `false` branches, keep the logic that turns a lock state into UI in a plain function, and test that function with each value. Reset `KeyStateTracker` after each test so lock values don't carry over to the next one. See [Testing](./testing) for the rest of the test setup. + +See the [useKeyLockState example](../examples/useKeyLockState) for a Caps Lock warning on a password field and an indicator for each lock. diff --git a/docs/framework/ember/reference/functions/useKeyLockState.md b/docs/framework/ember/reference/functions/useKeyLockState.md new file mode 100644 index 000000000..7e849d2b2 --- /dev/null +++ b/docs/framework/ember/reference/functions/useKeyLockState.md @@ -0,0 +1,60 @@ +--- +id: useKeyLockState +title: useKeyLockState +--- + + + +```ts +function useKeyLockState(owner, key): EmberHotkeyState; +``` + +Defined in: [packages/ember-hotkeys/src/useKeyLockState.ts:39](https://github.com/TanStack/hotkeys/blob/main/packages/ember-hotkeys/src/useKeyLockState.ts#L39) + +Returns whether a lock key, such as Caps Lock, is on. Pass the containing +component as owner to release the subscription on destruction. Getter +arguments can read changing tracked component properties. + +Lock keys toggle instead of being held, so this reads the lock state that +the browser reports on key and mouse events. Its value is `null` until the +user presses a key, clicks, or moves the mouse, after the window loses +focus or the page is hidden, and always for Num Lock and Scroll Lock on macOS and iOS. + +## Parameters + +### owner + +`object` + +The component that owns the subscription + +### key + +`MaybeGetter`\<`LockKey`\> + +`'CapsLock'`, `'NumLock'`, or `'ScrollLock'` + +## Returns + +[`EmberHotkeyState`](../interfaces/EmberHotkeyState.md)\<`boolean` \| `null`\> + +A state whose `value` is `true` when the lock is on, `false` when +it is off, or `null` + +## Example + +```gts +class PasswordField extends Component { + capsLock = useKeyLockState(this, 'CapsLock') + + +} +``` diff --git a/docs/framework/ember/reference/index.md b/docs/framework/ember/reference/index.md index 76e8be56b..28989243b 100644 --- a/docs/framework/ember/reference/index.md +++ b/docs/framework/ember/reference/index.md @@ -49,3 +49,4 @@ title: "@tanstack/ember-hotkeys" - [useHotkeyScopesState](functions/useHotkeyScopesState.md) - [useKeyboardLayout](functions/useKeyboardLayout.md) - [useKeyHold](functions/useKeyHold.md) +- [useKeyLockState](functions/useKeyLockState.md) diff --git a/docs/framework/lit/guides/held-key-state-helpers.md b/docs/framework/lit/guides/held-key-state-helpers.md index fb565d8bc..52decfab0 100644 --- a/docs/framework/lit/guides/held-key-state-helpers.md +++ b/docs/framework/lit/guides/held-key-state-helpers.md @@ -114,3 +114,19 @@ For a mouse or wheel event, `event.ctrlKey`, `shiftKey`, `altKey`, and `metaKey` Held keys clear when the window loses focus, so a key released after switching apps doesn't stay held. [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus) covers the cases the tracker handles. The [held-keys example](../examples/held-keys) shows held keys and their codes, and the [key-hold example](../examples/key-hold) shows modifier indicators. + +## Lock keys + +Caps Lock, Num Lock, and Scroll Lock toggle instead of being held. A `KeyHoldController` value is `true` only while the key is down, not while Caps Lock is on. To read whether a lock is on, use `KeyLockStateController`: + +```ts +import { KeyLockStateController } from '@tanstack/lit-hotkeys' + +private capsLock = new KeyLockStateController(this, 'CapsLock') // value: true, false, or null + +render() { + return html`${this.capsLock.value ? 'Caps Lock is on' : ''}` +} +``` + +The value is `null` until the browser reports the lock. See [Read lock key state](./key-lock-state) for when that happens and which browsers report each lock. diff --git a/docs/framework/lit/guides/key-lock-state.md b/docs/framework/lit/guides/key-lock-state.md new file mode 100644 index 000000000..da7b2d567 --- /dev/null +++ b/docs/framework/lit/guides/key-lock-state.md @@ -0,0 +1,197 @@ +--- +title: Read Lock Key State in Lit +id: key-lock-state +description: Show whether Caps Lock, Num Lock, or Scroll Lock is on in Lit, handle the unknown state, and test UI that depends on it. +--- + +`KeyLockStateController` reports whether a lock key is on. Use it for a Caps Lock warning on a password field, or a Num Lock hint on a form that takes numpad input. + +## Read a lock's state + +`new KeyLockStateController(host, key)` takes `'CapsLock'`, `'NumLock'`, or `'ScrollLock'` as `key`. It adds itself to the element, and its `value` holds one of these values: + +- `true` when the lock is on. +- `false` when the lock is off. +- `null` when the browser hasn't reported the lock. + +```ts +import { LitElement, html } from 'lit' +import { customElement } from 'lit/decorators.js' +import { KeyLockStateController } from '@tanstack/lit-hotkeys' + +@customElement('caps-lock-badge') +class CapsLockBadge extends LitElement { + private capsLock = new KeyLockStateController(this, 'CapsLock') + + render() { + const on = this.capsLock.value + return on === null ? '' : html`Caps Lock ${on ? 'on' : 'off'}` + } +} +``` + +The controller requests an update only when the lock's value changes. To track a key that changes, pass a getter, such as `new KeyLockStateController(this, () => this.lock)`. The controller reads it again on each update. + +Lock keys toggle instead of being held. `new KeyHoldController(this, 'CapsLock')` answers a different question: its `value` is `true` only while the key is physically down, and it goes back to `false` when the user lets go, even though Caps Lock stays on. On macOS, Chrome and Safari send a keydown when Caps Lock turns on and a keyup when it turns off, so there `new KeyHoldController(this, 'CapsLock')` can look like lock state. Don't rely on that. Use `KeyLockStateController` to read whether a lock is on. For keys the user holds, see [Track held keys and modifier state](./held-key-state-helpers). + +## Why the value starts as `null` + +Browsers have no API that reports lock state when the page loads. The state comes only with input events, through `event.getModifierState()`. The key state tracker reads it from keydown, keyup, mousedown, and mousemove events, so every lock is `null` until the user presses a key, clicks, or moves the mouse over the focused page. From then on, the value follows the user's input. + +The tracker reads only trusted events, the ones the browser creates from real input. It ignores events dispatched by page code, such as `element.dispatchEvent(new KeyboardEvent('keydown'))`, because those report every lock as off. + +Treat `null` as unknown, not as off. For a warning, show nothing until the value is `true`. The first key press in the field reports Caps Lock, so the warning appears as the user starts typing. + +Num Lock and Scroll Lock stay `null` on macOS and iOS. See [Browser and platform support](#browser-and-platform-support). + +## Why it resets when the window loses focus + +Every lock goes back to `null` when the window loses focus or the page is hidden, such as when the user switches to another tab or app. The user can toggle a lock in another app, so the last value the page saw may no longer be true. Once the window has focus again, the next key press, click, or mouse move over the page reports the lock again. The tracker ignores mouse events while the window doesn't have focus. + +Held keys reset at the same moments. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus). + +## Browser and platform support + +From the Chromium, Firefox, and WebKit source code, these browsers report each lock through `getModifierState()`: + +| Lock | Chromium (Chrome, Edge, Electron) | Firefox | Safari | +| ----------- | --------------------------------- | -------------------- | ------ | +| Caps Lock | Yes | Yes | Yes | +| Num Lock | Yes | Yes, except on macOS | No | +| Scroll Lock | Yes | Yes | No | + +Mac keyboards have no Num Lock or Scroll Lock key. On macOS, Firefox sets its Num Lock flag for keys on the numpad, which isn't lock state. For these reasons, `NumLock` and `ScrollLock` are always `null` on macOS and iOS, in every browser. Caps Lock works on every platform. + +The [UI Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier) also names `FnLock` and `SymbolLock`, but no browser engine reports them. Chromium doesn't map them, Firefox accepts the names but no platform backend sets them, and WebKit doesn't support them. Electron is no different: its renderer is Chromium, and its main-process [`before-input-event`](https://www.electronjs.org/docs/latest/api/web-contents#event-before-input-event) reports only `capslock` and `numlock`. The keyboard firmware handles Fn Lock, so a page has nothing to read. + +## Example: warn about Caps Lock on a password field + +```ts +import { LitElement, html } from 'lit' +import { customElement } from 'lit/decorators.js' +import { KeyLockStateController } from '@tanstack/lit-hotkeys' + +@customElement('password-field') +export class PasswordField extends LitElement { + private capsLock = new KeyLockStateController(this, 'CapsLock') + + render() { + return html` + + ` + } +} +``` + +The status element stays in the page and only its text changes, so screen readers can announce the warning when it appears. A `null` value hides the warning, the same as `false`. + +## Example: show Num Lock state on a numpad entry form + +A form for typing numbers on the numpad can tell the user when Num Lock is off. Check for `null` separately here: on macOS the value is always `null`, and "Num Lock is off" would be wrong for a keyboard that has no Num Lock key. + +```ts +import { LitElement, html } from 'lit' +import { customElement } from 'lit/decorators.js' +import { KeyLockStateController } from '@tanstack/lit-hotkeys' + +@customElement('quantity-form') +class QuantityForm extends LitElement { + private numLock = new KeyLockStateController(this, 'NumLock') + + render() { + const on = this.numLock.value + return html` +
+ + ${on === false + ? html`

Num Lock is off. Turn it on to type numbers on the numpad.

` + : on === true + ? html`

Num Lock is on

` + : ''} +
+ ` + } +} +``` + +## Read lock state in an event handler + +To check a lock once inside a key or mouse handler, call `event.getModifierState()`. It doesn't go through a controller, so the element doesn't update: + +```ts +import { LitElement, html } from 'lit' +import { customElement } from 'lit/decorators.js' + +@customElement('password-input') +class PasswordInput extends LitElement { + private onKeydown(event: KeyboardEvent) { + if (event.key === 'Enter') { + logSignInAttempt({ capsLock: event.getModifierState('CapsLock') }) + } + } + + render() { + return html`` + } +} +``` + +`getModifierState()` returns what the browser reports, without the tracker's rules. Events dispatched by page code report every lock as off. On macOS, Num Lock and Scroll Lock values aren't lock state: Chrome reports them off, and Firefox reports Num Lock for numpad keys. + +When the handler has no key or mouse event, such as a timer or a form's submit handler, read the shared tracker instead. `getKeyStateTracker().getKeyLockState('CapsLock')` returns the same `true`, `false`, or `null` as `KeyLockStateController`. + +## Test lock state + +happy-dom ignores `modifierCapsLock` and the other lock fields in a `KeyboardEvent` init, and its `MouseEvent` has no `getModifierState`. The tracker also reads only trusted events. Before you dispatch a test event, define `isTrusted` and an own `getModifierState` on it: + +```ts +import { afterEach, expect, it } from 'vitest' +import { KeyStateTracker } from '@tanstack/lit-hotkeys' +import type { LockKey } from '@tanstack/lit-hotkeys' +import { PasswordField } from './password-field' + +afterEach(() => { + document.body.replaceChildren() + KeyStateTracker.resetInstance() +}) + +function withLocks( + event: TEvent, + locks: Partial>, +): TEvent { + Object.defineProperty(event, 'isTrusted', { value: true }) + Object.defineProperty(event, 'getModifierState', { + value: (key: string) => locks[key as LockKey] === true, + }) + return event +} + +it('warns when Caps Lock is on', async () => { + const field = new PasswordField() + document.body.append(field) + await field.updateComplete + + document.dispatchEvent( + withLocks( + new KeyboardEvent('keydown', { key: 'A', code: 'KeyA', bubbles: true }), + { CapsLock: true }, + ), + ) + await field.updateComplete + + expect(field.shadowRoot?.querySelector('[role="status"]')?.textContent).toBe( + 'Caps Lock is on', + ) +}) +``` + +Reset `KeyStateTracker` after each test so lock values don't carry over to the next one. A real browser doesn't let you redefine `isTrusted`, so this works only in a simulated DOM such as happy-dom. See [Testing](./testing) for the rest of the test setup. + +See the [key-lock-state example](../examples/key-lock-state) for a Caps Lock warning on a password field and an indicator for each lock. diff --git a/docs/framework/lit/reference/classes/KeyLockStateController.md b/docs/framework/lit/reference/classes/KeyLockStateController.md new file mode 100644 index 000000000..282f95e10 --- /dev/null +++ b/docs/framework/lit/reference/classes/KeyLockStateController.md @@ -0,0 +1,177 @@ +--- +id: KeyLockStateController +title: KeyLockStateController +--- + + + +Defined in: [controllers/key-lock-state.ts:37](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/key-lock-state.ts#L37) + +A Lit ReactiveController that tracks whether a lock key, such as Caps Lock, +is on. + +Lock keys toggle instead of being held, so this reads the lock state that +the browser reports on key and mouse events. Its value is `null` until the +user presses a key, clicks, or moves the mouse, after the window loses +focus or the page is hidden, and always for Num Lock and Scroll Lock on macOS and iOS. Pass a +getter to track a key that changes, such as a reactive property; it is read +again on each host update. + +## Example + +```ts +class PasswordField extends LitElement { + private capsLock = new KeyLockStateController(this, 'CapsLock') + + render() { + return html` + + ` + } +} +``` + +## Implements + +- `ReactiveController` + +## Constructors + +### Constructor + +```ts +new KeyLockStateController(_host, _key): KeyLockStateController; +``` + +Defined in: [controllers/key-lock-state.ts:55](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/key-lock-state.ts#L55) + +#### Parameters + +##### \_host + +`ReactiveControllerHost` + +The Lit component that owns this controller. + +##### \_key + +`MaybeGetter`\<`LockKey`\> + +`'CapsLock'`, `'NumLock'`, or `'ScrollLock'`, or a getter. + +#### Returns + +`KeyLockStateController` + +## Accessors + +### value + +#### Get Signature + +```ts +get value(): boolean | null; +``` + +Defined in: [controllers/key-lock-state.ts:47](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/key-lock-state.ts#L47) + +`true` when the lock is on, `false` when it is off, or `null` when the +browser has not reported it. + +##### Returns + +`boolean` \| `null` + +## Methods + +### dispose() + +```ts +dispose(): void; +``` + +Defined in: [controllers/key-lock-state.ts:88](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/key-lock-state.ts#L88) + +Releases the controller now and removes it from its host. Use it to +remove a controller early: Lit's `removeController` alone leaves it active. + +#### Returns + +`void` + +*** + +### hostConnected() + +```ts +hostConnected(): void; +``` + +Defined in: [controllers/key-lock-state.ts:62](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/key-lock-state.ts#L62) + +Called when the host is connected to the component tree. For custom +element hosts, this corresponds to the `connectedCallback()` lifecycle, +which is only called when the component is connected to the document. + +#### Returns + +`void` + +#### Implementation of + +```ts +ReactiveController.hostConnected +``` + +*** + +### hostDisconnected() + +```ts +hostDisconnected(): void; +``` + +Defined in: [controllers/key-lock-state.ts:78](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/key-lock-state.ts#L78) + +Called when the host is disconnected from the component tree. For custom +element hosts, this corresponds to the `disconnectedCallback()` lifecycle, +which is called the host or an ancestor component is disconnected from the +document. + +#### Returns + +`void` + +#### Implementation of + +```ts +ReactiveController.hostDisconnected +``` + +*** + +### hostUpdate() + +```ts +hostUpdate(): void; +``` + +Defined in: [controllers/key-lock-state.ts:74](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/key-lock-state.ts#L74) + +Re-reads a getter key when host properties trigger an update. + +#### Returns + +`void` + +#### Implementation of + +```ts +ReactiveController.hostUpdate +``` diff --git a/docs/framework/lit/reference/index.md b/docs/framework/lit/reference/index.md index ccdd09ee6..35c654e1d 100644 --- a/docs/framework/lit/reference/index.md +++ b/docs/framework/lit/reference/index.md @@ -19,6 +19,7 @@ title: "@tanstack/lit-hotkeys" - [HotkeyScopesStateController](classes/HotkeyScopesStateController.md) - [KeyboardLayoutController](classes/KeyboardLayoutController.md) - [KeyHoldController](classes/KeyHoldController.md) +- [KeyLockStateController](classes/KeyLockStateController.md) ## Interfaces diff --git a/docs/framework/octane/guides/held-key-state-helpers.md b/docs/framework/octane/guides/held-key-state-helpers.md index e84dded20..dba94521e 100644 --- a/docs/framework/octane/guides/held-key-state-helpers.md +++ b/docs/framework/octane/guides/held-key-state-helpers.md @@ -92,3 +92,17 @@ Held keys reset automatically on window blur, tab switch, or macOS `Command` rel Held keys clear when the window loses focus, so a key released after switching apps doesn't stay held. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus) for the cases the tracker handles. See the [useHeldKeys example](../examples/useHeldKeys) and [useKeyHold example](../examples/useKeyHold). + +## Lock keys + +Caps Lock, Num Lock, and Scroll Lock toggle instead of being held. `useKeyHold('CapsLock')` is `true` only while the key is down, not while Caps Lock is on. To read whether a lock is on, use `useKeyLockState`: + +```tsx +import { useKeyLockState } from '@tanstack/octane-hotkeys' + +const capsLock = useKeyLockState('CapsLock') // true, false, or null + +{capsLock ? 'Caps Lock is on' : ''} +``` + +The value is `null` until the browser reports the lock. See [Read lock key state](./key-lock-state) for when that happens and which browsers report each lock. diff --git a/docs/framework/octane/guides/key-lock-state.md b/docs/framework/octane/guides/key-lock-state.md new file mode 100644 index 000000000..9af190338 --- /dev/null +++ b/docs/framework/octane/guides/key-lock-state.md @@ -0,0 +1,180 @@ +--- +title: Read Lock Key State in Octane +id: key-lock-state +description: Show whether Caps Lock, Num Lock, or Scroll Lock is on in Octane, handle the unknown state, and test UI that depends on it. +--- + +`useKeyLockState` reports whether a lock key is on. Use it for a Caps Lock warning on a password field, or a Num Lock hint on a form that takes numpad input. + +## Read a lock's state + +`useKeyLockState(key)` takes `'CapsLock'`, `'NumLock'`, or `'ScrollLock'` and returns one of these values: + +- `true` when the lock is on. +- `false` when the lock is off. +- `null` when the browser hasn't reported the lock. + +```tsx +import { useKeyLockState } from '@tanstack/octane-hotkeys' + +function CapsLockBadge() @{ + const capsLock = useKeyLockState('CapsLock') + + @if (capsLock !== null) { + Caps Lock {capsLock ? 'on' : 'off'} + } +} +``` + +The component updates only when the lock's value changes. + +Lock keys toggle instead of being held. `useKeyHold('CapsLock')` answers a different question: it's `true` only while the key is physically down, and it goes back to `false` when the user lets go, even though Caps Lock stays on. On macOS, Chrome and Safari send a keydown when Caps Lock turns on and a keyup when it turns off, so there `useKeyHold('CapsLock')` can look like lock state. Don't rely on that. Use `useKeyLockState` to read whether a lock is on. For keys the user holds, see [Track held keys and modifier state](./held-key-state-helpers). + +## Why the value starts as `null` + +Browsers have no API that reports lock state when the page loads. The state comes only with input events, through `event.getModifierState()`. The key state tracker reads it from keydown, keyup, mousedown, and mousemove events, so every lock is `null` until the user presses a key, clicks, or moves the mouse over the focused page. From then on, the value follows the user's input. + +The tracker reads only trusted events, the ones the browser creates from real input. It ignores events dispatched by page code, such as `element.dispatchEvent(new KeyboardEvent('keydown'))`, because those report every lock as off. + +Treat `null` as unknown, not as off. For a warning, show nothing until the value is `true`. The first key press in the field reports Caps Lock, so the warning appears as the user starts typing. + +Num Lock and Scroll Lock stay `null` on macOS and iOS. See [Browser and platform support](#browser-and-platform-support). + +## Why it resets when the window loses focus + +Every lock goes back to `null` when the window loses focus or the page is hidden, such as when the user switches to another tab or app. The user can toggle a lock in another app, so the last value the page saw may no longer be true. Once the window has focus again, the next key press, click, or mouse move over the page reports the lock again. The tracker ignores mouse events while the window doesn't have focus. + +Held keys reset at the same moments. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus). + +## Browser and platform support + +From the Chromium, Firefox, and WebKit source code, these browsers report each lock through `getModifierState()`: + +| Lock | Chromium (Chrome, Edge, Electron) | Firefox | Safari | +| ----------- | --------------------------------- | -------------------- | ------ | +| Caps Lock | Yes | Yes | Yes | +| Num Lock | Yes | Yes, except on macOS | No | +| Scroll Lock | Yes | Yes | No | + +Mac keyboards have no Num Lock or Scroll Lock key. On macOS, Firefox sets its Num Lock flag for keys on the numpad, which isn't lock state. For these reasons, `NumLock` and `ScrollLock` are always `null` on macOS and iOS, in every browser. Caps Lock works on every platform. + +The [UI Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier) also names `FnLock` and `SymbolLock`, but no browser engine reports them. Chromium doesn't map them, Firefox accepts the names but no platform backend sets them, and WebKit doesn't support them. Electron is no different: its renderer is Chromium, and its main-process [`before-input-event`](https://www.electronjs.org/docs/latest/api/web-contents#event-before-input-event) reports only `capslock` and `numlock`. The keyboard firmware handles Fn Lock, so a page has nothing to read. + +## Example: warn about Caps Lock on a password field + +```tsx +import { useKeyLockState } from '@tanstack/octane-hotkeys' + +export function PasswordField() @{ + const capsLock = useKeyLockState('CapsLock') + + +} +``` + +The status element stays in the page and only its text changes, so screen readers can announce the warning when it appears. A `null` value hides the warning, the same as `false`. + +## Example: show Num Lock state on a numpad entry form + +A form for typing numbers on the numpad can tell the user when Num Lock is off. Check for `null` separately here: on macOS the value is always `null`, and "Num Lock is off" would be wrong for a keyboard that has no Num Lock key. + +```tsx +import { useKeyLockState } from '@tanstack/octane-hotkeys' + +function QuantityForm() @{ + const numLock = useKeyLockState('NumLock') + +
+ + @if (numLock === false) { +

Num Lock is off. Turn it on to type numbers on the numpad.

+ } @else if (numLock === true) { +

Num Lock is on

+ } +
+} +``` + +## Read lock state in an event handler + +To check a lock once inside a key or mouse handler, call `event.getModifierState()`. It doesn't subscribe the component, so nothing updates: + +```tsx +function PasswordInput() @{ + const onKeyDown = (event: KeyboardEvent) => { + if (event.key === 'Enter') { + logSignInAttempt({ capsLock: event.getModifierState('CapsLock') }) + } + } + + +} +``` + +`getModifierState()` returns what the browser reports, without the tracker's rules. Events dispatched by page code report every lock as off. On macOS, Num Lock and Scroll Lock values aren't lock state: Chrome reports them off, and Firefox reports Num Lock for numpad keys. + +When the handler has no key or mouse event, such as a timer or a form's submit handler, read the shared tracker instead. `getKeyStateTracker().getKeyLockState('CapsLock')` returns the same `true`, `false`, or `null` as `useKeyLockState`. + +## Test lock state + +happy-dom ignores `modifierCapsLock` and the other lock fields in a `KeyboardEvent` init, and its `MouseEvent` has no `getModifierState`. The tracker also reads only trusted events. Before you dispatch a test event, define `isTrusted` and an own `getModifierState` on it: + +```ts +import { afterEach, expect, it } from 'vitest' +import { createRoot, flushSync } from 'octane' +import { KeyStateTracker } from '@tanstack/octane-hotkeys' +import type { LockKey } from '@tanstack/octane-hotkeys' +import { PasswordField } from './PasswordField.tsrx' + +let root: ReturnType | undefined +let container: HTMLDivElement | undefined + +afterEach(() => { + root?.unmount() + root = undefined + container?.remove() + container = undefined + KeyStateTracker.resetInstance() +}) + +function withLocks( + event: TEvent, + locks: Partial>, +): TEvent { + Object.defineProperty(event, 'isTrusted', { value: true }) + Object.defineProperty(event, 'getModifierState', { + value: (key: string) => locks[key as LockKey] === true, + }) + return event +} + +it('warns when Caps Lock is on', () => { + container = document.body.appendChild(document.createElement('div')) + root = createRoot(container) + flushSync(() => root!.render(PasswordField, {})) + + flushSync(() => + document.dispatchEvent( + withLocks( + new KeyboardEvent('keydown', { key: 'A', code: 'KeyA', bubbles: true }), + { CapsLock: true }, + ), + ), + ) + + expect(container.querySelector('[role="status"]')?.textContent).toBe( + 'Caps Lock is on', + ) +}) +``` + +Reset `KeyStateTracker` after each test so lock values don't carry over to the next one. A real browser doesn't let you redefine `isTrusted`, so this works only in a simulated DOM such as happy-dom. See [Testing](./testing) for the rest of the test setup. + +See the [useKeyLockState example](../examples/useKeyLockState) for a Caps Lock warning on a password field and an indicator for each lock. diff --git a/docs/framework/octane/reference/functions/useKeyLockState.md b/docs/framework/octane/reference/functions/useKeyLockState.md new file mode 100644 index 000000000..5b6e5648f --- /dev/null +++ b/docs/framework/octane/reference/functions/useKeyLockState.md @@ -0,0 +1,49 @@ +--- +id: useKeyLockState +title: useKeyLockState +--- + + + +```ts +function useKeyLockState(key): boolean | null; +``` + +Defined in: [useKeyLockState.ts:31](https://github.com/TanStack/hotkeys/blob/main/packages/octane-hotkeys/src/useKeyLockState.ts#L31) + +Reports whether a lock key, such as Caps Lock, is on. + +Lock keys toggle instead of being held, so this reads the lock state that +the browser reports on key and mouse events. It returns `null` until the +user presses a key, clicks, or moves the mouse, after the window loses +focus or the page is hidden, and always for Num Lock and Scroll Lock on macOS and iOS. + +## Parameters + +### key + +`LockKey` + +`'CapsLock'`, `'NumLock'`, or `'ScrollLock'` + +## Returns + +`boolean` \| `null` + +`true` when the lock is on, `false` when it is off, or `null` + +## Example + +```tsx +function PasswordField() @{ + const capsLock = useKeyLockState('CapsLock') + + +} +``` diff --git a/docs/framework/octane/reference/index.md b/docs/framework/octane/reference/index.md index b913013fb..03462a1e7 100644 --- a/docs/framework/octane/reference/index.md +++ b/docs/framework/octane/reference/index.md @@ -50,3 +50,4 @@ title: "@tanstack/octane-hotkeys" - [useHotkeyScopesState](functions/useHotkeyScopesState.md) - [useKeyboardLayout](functions/useKeyboardLayout.md) - [useKeyHold](functions/useKeyHold.md) +- [useKeyLockState](functions/useKeyLockState.md) diff --git a/docs/framework/preact/guides/held-key-state-helpers.md b/docs/framework/preact/guides/held-key-state-helpers.md index 2ccb44255..ec16bdbe3 100644 --- a/docs/framework/preact/guides/held-key-state-helpers.md +++ b/docs/framework/preact/guides/held-key-state-helpers.md @@ -94,3 +94,17 @@ function Canvas() { Held keys reset automatically on window blur, tab switch, or macOS `Command` release so keys never stay stuck. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus). See the [useHeldKeys example](../examples/useHeldKeys) and [useKeyHold example](../examples/useKeyhold). + +## Lock keys + +Caps Lock, Num Lock, and Scroll Lock toggle instead of being held. `useKeyHold('CapsLock')` is `true` only while the key is down, not while Caps Lock is on. To read whether a lock is on, use `useKeyLockState`: + +```tsx +import { useKeyLockState } from '@tanstack/preact-hotkeys' + +const capsLock = useKeyLockState('CapsLock') // true, false, or null + +return {capsLock ? 'Caps Lock is on' : ''} +``` + +The value is `null` until the browser reports the lock. See [Read lock key state](./key-lock-state) for when that happens and which browsers report each lock. diff --git a/docs/framework/preact/guides/key-lock-state.md b/docs/framework/preact/guides/key-lock-state.md new file mode 100644 index 000000000..33d38bc49 --- /dev/null +++ b/docs/framework/preact/guides/key-lock-state.md @@ -0,0 +1,172 @@ +--- +title: Read Lock Key State in Preact +id: key-lock-state +description: Show whether Caps Lock, Num Lock, or Scroll Lock is on in Preact, handle the unknown state, and test UI that depends on it. +--- + +`useKeyLockState` reports whether a lock key is on. Use it for a Caps Lock warning on a password field, or a Num Lock hint on a form that takes numpad input. + +## Read a lock's state + +`useKeyLockState(key)` takes `'CapsLock'`, `'NumLock'`, or `'ScrollLock'` and returns one of these values: + +- `true` when the lock is on. +- `false` when the lock is off. +- `null` when the browser hasn't reported the lock. + +```tsx +import { useKeyLockState } from '@tanstack/preact-hotkeys' + +function CapsLockBadge() { + const capsLock = useKeyLockState('CapsLock') + + if (capsLock === null) return null + return Caps Lock {capsLock ? 'on' : 'off'} +} +``` + +The component re-renders only when the value changes. + +Lock keys toggle instead of being held. `useKeyHold('CapsLock')` answers a different question: it's `true` only while the key is physically down, and it goes back to `false` when the user lets go, even though Caps Lock stays on. On macOS, Chrome and Safari send a keydown when Caps Lock turns on and a keyup when it turns off, so there `useKeyHold('CapsLock')` can look like lock state. Don't rely on that. Use `useKeyLockState` to read whether a lock is on. For keys the user holds, see [Track held keys and modifier state](./held-key-state-helpers). + +## Why the value starts as `null` + +Browsers have no API that reports lock state when the page loads. The state comes only with input events, through `event.getModifierState()`. The key state tracker reads it from keydown, keyup, mousedown, and mousemove events, so every lock is `null` until the user presses a key, clicks, or moves the mouse over the focused page. From then on, the value follows the user's input. + +The tracker reads only trusted events, the ones the browser creates from real input. It ignores events dispatched by page code, such as `element.dispatchEvent(new KeyboardEvent('keydown'))`, because those report every lock as off. + +Treat `null` as unknown, not as off. For a warning, show nothing until the value is `true`. The first key press in the field reports Caps Lock, so the warning appears as the user starts typing. + +Num Lock and Scroll Lock stay `null` on macOS and iOS. See [Browser and platform support](#browser-and-platform-support). + +## Why it resets when the window loses focus + +Every lock goes back to `null` when the window loses focus or the page is hidden, such as when the user switches to another tab or app. The user can toggle a lock in another app, so the last value the page saw may no longer be true. Once the window has focus again, the next key press, click, or mouse move over the page reports the lock again. The tracker ignores mouse events while the window doesn't have focus. + +Held keys reset at the same moments. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus). + +## Browser and platform support + +From the Chromium, Firefox, and WebKit source code, these browsers report each lock through `getModifierState()`: + +| Lock | Chromium (Chrome, Edge, Electron) | Firefox | Safari | +| ----------- | --------------------------------- | -------------------- | ------ | +| Caps Lock | Yes | Yes | Yes | +| Num Lock | Yes | Yes, except on macOS | No | +| Scroll Lock | Yes | Yes | No | + +Mac keyboards have no Num Lock or Scroll Lock key. On macOS, Firefox sets its Num Lock flag for keys on the numpad, which isn't lock state. For these reasons, `NumLock` and `ScrollLock` are always `null` on macOS and iOS, in every browser. Caps Lock works on every platform. + +The [UI Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier) also names `FnLock` and `SymbolLock`, but no browser engine reports them. Chromium doesn't map them, Firefox accepts the names but no platform backend sets them, and WebKit doesn't support them. Electron is no different: its renderer is Chromium, and its main-process [`before-input-event`](https://www.electronjs.org/docs/latest/api/web-contents#event-before-input-event) reports only `capslock` and `numlock`. The keyboard firmware handles Fn Lock, so a page has nothing to read. + +## Example: warn about Caps Lock on a password field + +```tsx +import { useKeyLockState } from '@tanstack/preact-hotkeys' + +export function PasswordField() { + const capsLock = useKeyLockState('CapsLock') + + return ( + + ) +} +``` + +The status element stays in the page and only its text changes, so screen readers can announce the warning when it appears. A `null` value hides the warning, the same as `false`. + +## Example: show Num Lock state on a numpad entry form + +A form for typing numbers on the numpad can tell the user when Num Lock is off. Check for `null` separately here: on macOS the value is always `null`, and "Num Lock is off" would be wrong for a keyboard that has no Num Lock key. + +```tsx +import { useKeyLockState } from '@tanstack/preact-hotkeys' + +function QuantityForm() { + const numLock = useKeyLockState('NumLock') + + return ( +
+ + {numLock === false && ( +

Num Lock is off. Turn it on to type numbers on the numpad.

+ )} + {numLock === true &&

Num Lock is on

} +
+ ) +} +``` + +## Read lock state in an event handler + +To check a lock once inside a key or mouse handler, call `event.getModifierState()`. It doesn't subscribe the component, so nothing re-renders: + +```tsx +function PasswordInput() { + const onKeyDown = (event: KeyboardEvent) => { + if (event.key === 'Enter') { + logSignInAttempt({ capsLock: event.getModifierState('CapsLock') }) + } + } + + return +} +``` + +`getModifierState()` returns what the browser reports, without the tracker's rules. Events dispatched by page code report every lock as off. On macOS, Num Lock and Scroll Lock values aren't lock state: Chrome reports them off, and Firefox reports Num Lock for numpad keys. + +When the handler has no key or mouse event, such as a timer or a form's submit handler, read the shared tracker instead. `getKeyStateTracker().getKeyLockState('CapsLock')` returns the same `true`, `false`, or `null` as the hook. + +## Test lock state + +happy-dom ignores `modifierCapsLock` and the other lock fields in a `KeyboardEvent` init, and its `MouseEvent` has no `getModifierState`. The tracker also reads only trusted events. Before you dispatch a test event, define `isTrusted` and an own `getModifierState` on it: + +```tsx +import { afterEach, expect, it } from 'vitest' +import { act, cleanup, render, screen } from '@testing-library/preact' +import { KeyStateTracker } from '@tanstack/preact-hotkeys' +import type { LockKey } from '@tanstack/preact-hotkeys' +import { PasswordField } from './PasswordField' + +afterEach(() => { + cleanup() + KeyStateTracker.resetInstance() +}) + +function withLocks( + event: TEvent, + locks: Partial>, +): TEvent { + Object.defineProperty(event, 'isTrusted', { value: true }) + Object.defineProperty(event, 'getModifierState', { + value: (key: string) => locks[key as LockKey] === true, + }) + return event +} + +it('warns when Caps Lock is on', () => { + render() + + act(() => { + document.dispatchEvent( + withLocks( + new KeyboardEvent('keydown', { key: 'A', code: 'KeyA', bubbles: true }), + { CapsLock: true }, + ), + ) + }) + + expect(screen.getByRole('status').textContent).toBe('Caps Lock is on') +}) +``` + +Reset `KeyStateTracker` after each test so lock values don't carry over to the next one. A real browser doesn't let you redefine `isTrusted`, so this works only in a simulated DOM such as happy-dom. See [Testing](./testing) for the rest of the test setup. + +See the [useKeyLockState example](../examples/useKeyLockState) for a Caps Lock warning on a password field and an indicator for each lock. diff --git a/docs/framework/preact/reference/functions/useKeyLockState.md b/docs/framework/preact/reference/functions/useKeyLockState.md new file mode 100644 index 000000000..3639cce32 --- /dev/null +++ b/docs/framework/preact/reference/functions/useKeyLockState.md @@ -0,0 +1,49 @@ +--- +id: useKeyLockState +title: useKeyLockState +--- + + + +```ts +function useKeyLockState(key): boolean | null; +``` + +Defined in: [useKeyLockState.ts:31](https://github.com/TanStack/hotkeys/blob/main/packages/preact-hotkeys/src/useKeyLockState.ts#L31) + +Preact hook that returns whether a lock key, such as Caps Lock, is on. + +Lock keys toggle instead of being held, so this reads the lock state that +the browser reports on key and mouse events. It returns `null` until the +user presses a key, clicks, or moves the mouse, after the window loses +focus or the page is hidden, and always for Num Lock and Scroll Lock on macOS and iOS. + +## Parameters + +### key + +`LockKey` + +`'CapsLock'`, `'NumLock'`, or `'ScrollLock'` + +## Returns + +`boolean` \| `null` + +`true` when the lock is on, `false` when it is off, or `null` + +## Example + +```tsx +function PasswordField() { + const capsLock = useKeyLockState('CapsLock') + + return ( + + ) +} +``` diff --git a/docs/framework/preact/reference/index.md b/docs/framework/preact/reference/index.md index ec0f241dd..3cf2fa6c8 100644 --- a/docs/framework/preact/reference/index.md +++ b/docs/framework/preact/reference/index.md @@ -48,3 +48,4 @@ title: "@tanstack/preact-hotkeys" - [useHotkeyScopesState](functions/useHotkeyScopesState.md) - [useKeyboardLayout](functions/useKeyboardLayout.md) - [useKeyHold](functions/useKeyHold.md) +- [useKeyLockState](functions/useKeyLockState.md) diff --git a/docs/framework/react/guides/held-key-state-helpers.md b/docs/framework/react/guides/held-key-state-helpers.md index 8e684f488..cb45be850 100644 --- a/docs/framework/react/guides/held-key-state-helpers.md +++ b/docs/framework/react/guides/held-key-state-helpers.md @@ -94,3 +94,17 @@ function Canvas() { Held keys reset automatically on window blur, tab switch, or macOS `Command` release so keys never stay stuck. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus). See the [useHeldKeys example](../examples/useHeldKeys) and [useKeyHold example](../examples/useKeyhold). + +## Lock keys + +Caps Lock, Num Lock, and Scroll Lock toggle instead of being held. `useKeyHold('CapsLock')` is `true` only while the key is down, not while Caps Lock is on. To read whether a lock is on, use `useKeyLockState`: + +```tsx +import { useKeyLockState } from '@tanstack/react-hotkeys' + +const capsLock = useKeyLockState('CapsLock') // true, false, or null + +return {capsLock ? 'Caps Lock is on' : ''} +``` + +The value is `null` until the browser reports the lock. See [Read lock key state](./key-lock-state) for when that happens and which browsers report each lock. diff --git a/docs/framework/react/guides/key-lock-state.md b/docs/framework/react/guides/key-lock-state.md new file mode 100644 index 000000000..f1823a717 --- /dev/null +++ b/docs/framework/react/guides/key-lock-state.md @@ -0,0 +1,171 @@ +--- +title: Read Lock Key State in React +id: key-lock-state +description: Show whether Caps Lock, Num Lock, or Scroll Lock is on in React, handle the unknown state, and test UI that depends on it. +--- + +`useKeyLockState` reports whether a lock key is on. Use it for a Caps Lock warning on a password field, or a Num Lock hint on a form that takes numpad input. + +## Read a lock's state + +`useKeyLockState(key)` takes `'CapsLock'`, `'NumLock'`, or `'ScrollLock'` and returns one of these values: + +- `true` when the lock is on. +- `false` when the lock is off. +- `null` when the browser hasn't reported the lock. + +```tsx +import { useKeyLockState } from '@tanstack/react-hotkeys' + +function CapsLockBadge() { + const capsLock = useKeyLockState('CapsLock') + + if (capsLock === null) return null + return Caps Lock {capsLock ? 'on' : 'off'} +} +``` + +The component re-renders only when the value changes. + +Lock keys toggle instead of being held. `useKeyHold('CapsLock')` answers a different question: it's `true` only while the key is physically down, and it goes back to `false` when the user lets go, even though Caps Lock stays on. On macOS, Chrome and Safari send a keydown when Caps Lock turns on and a keyup when it turns off, so there `useKeyHold('CapsLock')` can look like lock state. Don't rely on that. Use `useKeyLockState` to read whether a lock is on. For keys the user holds, see [Track held keys and modifier state](./held-key-state-helpers). + +## Why the value starts as `null` + +Browsers have no API that reports lock state when the page loads. The state comes only with input events, through `event.getModifierState()`. The key state tracker reads it from keydown, keyup, mousedown, and mousemove events, so every lock is `null` until the user presses a key, clicks, or moves the mouse over the focused page. From then on, the value follows the user's input. + +The tracker reads only trusted events, the ones the browser creates from real input. It ignores events dispatched by page code, such as `element.dispatchEvent(new KeyboardEvent('keydown'))`, because those report every lock as off. + +Treat `null` as unknown, not as off. For a warning, show nothing until the value is `true`. The first key press in the field reports Caps Lock, so the warning appears as the user starts typing. + +Num Lock and Scroll Lock stay `null` on macOS and iOS. See [Browser and platform support](#browser-and-platform-support). + +## Why it resets when the window loses focus + +Every lock goes back to `null` when the window loses focus or the page is hidden, such as when the user switches to another tab or app. The user can toggle a lock in another app, so the last value the page saw may no longer be true. Once the window has focus again, the next key press, click, or mouse move over the page reports the lock again. The tracker ignores mouse events while the window doesn't have focus. + +Held keys reset at the same moments. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus). + +## Browser and platform support + +From the Chromium, Firefox, and WebKit source code, these browsers report each lock through `getModifierState()`: + +| Lock | Chromium (Chrome, Edge, Electron) | Firefox | Safari | +| ----------- | --------------------------------- | -------------------- | ------ | +| Caps Lock | Yes | Yes | Yes | +| Num Lock | Yes | Yes, except on macOS | No | +| Scroll Lock | Yes | Yes | No | + +Mac keyboards have no Num Lock or Scroll Lock key. On macOS, Firefox sets its Num Lock flag for keys on the numpad, which isn't lock state. For these reasons, `NumLock` and `ScrollLock` are always `null` on macOS and iOS, in every browser. Caps Lock works on every platform. + +The [UI Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier) also names `FnLock` and `SymbolLock`, but no browser engine reports them. Chromium doesn't map them, Firefox accepts the names but no platform backend sets them, and WebKit doesn't support them. Electron is no different: its renderer is Chromium, and its main-process [`before-input-event`](https://www.electronjs.org/docs/latest/api/web-contents#event-before-input-event) reports only `capslock` and `numlock`. The keyboard firmware handles Fn Lock, so a page has nothing to read. + +## Example: warn about Caps Lock on a password field + +```tsx +import { useKeyLockState } from '@tanstack/react-hotkeys' + +export function PasswordField() { + const capsLock = useKeyLockState('CapsLock') + + return ( + + ) +} +``` + +The status element stays in the page and only its text changes, so screen readers can announce the warning when it appears. A `null` value hides the warning, the same as `false`. + +## Example: show Num Lock state on a numpad entry form + +A form for typing numbers on the numpad can tell the user when Num Lock is off. Check for `null` separately here: on macOS the value is always `null`, and "Num Lock is off" would be wrong for a keyboard that has no Num Lock key. + +```tsx +import { useKeyLockState } from '@tanstack/react-hotkeys' + +function QuantityForm() { + const numLock = useKeyLockState('NumLock') + + return ( +
+ + {numLock === false && ( +

Num Lock is off. Turn it on to type numbers on the numpad.

+ )} + {numLock === true &&

Num Lock is on

} +
+ ) +} +``` + +## Read lock state in an event handler + +To check a lock once inside a key or mouse handler, call `event.getModifierState()`. It doesn't subscribe the component, so nothing re-renders: + +```tsx +function PasswordInput() { + const onKeyDown = (event: React.KeyboardEvent) => { + if (event.key === 'Enter') { + logSignInAttempt({ capsLock: event.getModifierState('CapsLock') }) + } + } + + return +} +``` + +`getModifierState()` returns what the browser reports, without the tracker's rules. Events dispatched by page code report every lock as off. On macOS, Num Lock and Scroll Lock values aren't lock state: Chrome reports them off, and Firefox reports Num Lock for numpad keys. + +When the handler has no key or mouse event, such as a timer or a form's submit handler, read the shared tracker instead. `getKeyStateTracker().getKeyLockState('CapsLock')` returns the same `true`, `false`, or `null` as the hook. + +## Test lock state + +happy-dom ignores `modifierCapsLock` and the other lock fields in a `KeyboardEvent` init, and its `MouseEvent` has no `getModifierState`. The tracker also reads only trusted events. Before you dispatch a test event, define `isTrusted` and an own `getModifierState` on it: + +```tsx +import { afterEach, expect, it } from 'vitest' +import { act, render, screen } from '@testing-library/react' +import { KeyStateTracker } from '@tanstack/react-hotkeys' +import type { LockKey } from '@tanstack/react-hotkeys' +import { PasswordField } from './PasswordField' + +afterEach(() => { + KeyStateTracker.resetInstance() +}) + +function withLocks( + event: TEvent, + locks: Partial>, +): TEvent { + Object.defineProperty(event, 'isTrusted', { value: true }) + Object.defineProperty(event, 'getModifierState', { + value: (key: string) => locks[key as LockKey] === true, + }) + return event +} + +it('warns when Caps Lock is on', () => { + render() + + act(() => { + document.dispatchEvent( + withLocks( + new KeyboardEvent('keydown', { key: 'A', code: 'KeyA', bubbles: true }), + { CapsLock: true }, + ), + ) + }) + + expect(screen.getByRole('status').textContent).toBe('Caps Lock is on') +}) +``` + +Reset `KeyStateTracker` after each test so lock values don't carry over to the next one. A real browser doesn't let you redefine `isTrusted`, so this works only in a simulated DOM such as happy-dom. See [Testing](./testing) for the rest of the test setup. + +See the [useKeyLockState example](../examples/useKeyLockState) for a Caps Lock warning on a password field and an indicator for each lock. diff --git a/docs/framework/react/reference/functions/useKeyLockState.md b/docs/framework/react/reference/functions/useKeyLockState.md new file mode 100644 index 000000000..9ee4b717c --- /dev/null +++ b/docs/framework/react/reference/functions/useKeyLockState.md @@ -0,0 +1,49 @@ +--- +id: useKeyLockState +title: useKeyLockState +--- + + + +```ts +function useKeyLockState(key): boolean | null; +``` + +Defined in: [useKeyLockState.ts:33](https://github.com/TanStack/hotkeys/blob/main/packages/react-hotkeys/src/useKeyLockState.ts#L33) + +React hook that returns whether a lock key, such as Caps Lock, is on. + +Lock keys toggle instead of being held, so this reads the lock state that +the browser reports on key and mouse events. It returns `null` until the +user presses a key, clicks, or moves the mouse, after the window loses +focus or the page is hidden, and always for Num Lock and Scroll Lock on macOS and iOS. + +## Parameters + +### key + +`LockKey` + +`'CapsLock'`, `'NumLock'`, or `'ScrollLock'` + +## Returns + +`boolean` \| `null` + +`true` when the lock is on, `false` when it is off, or `null` + +## Example + +```tsx +function PasswordField() { + const capsLock = useKeyLockState('CapsLock') + + return ( + + ) +} +``` diff --git a/docs/framework/react/reference/index.md b/docs/framework/react/reference/index.md index 7d5ae323c..5f7279860 100644 --- a/docs/framework/react/reference/index.md +++ b/docs/framework/react/reference/index.md @@ -50,3 +50,4 @@ title: "@tanstack/react-hotkeys" - [useHotkeyScopesState](functions/useHotkeyScopesState.md) - [useKeyboardLayout](functions/useKeyboardLayout.md) - [useKeyHold](functions/useKeyHold.md) +- [useKeyLockState](functions/useKeyLockState.md) diff --git a/docs/framework/solid/guides/held-key-state-helpers.md b/docs/framework/solid/guides/held-key-state-helpers.md index 2504fb465..346e2e0ab 100644 --- a/docs/framework/solid/guides/held-key-state-helpers.md +++ b/docs/framework/solid/guides/held-key-state-helpers.md @@ -105,3 +105,17 @@ Held keys reset automatically on window blur, tab switch, or macOS `Command` rel Held keys clear when the window loses focus, so a key released after switching apps doesn't stay held. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus) for the cases the tracker handles. See the [createHeldKeys example](../examples/createHeldKeys) and [createKeyHold example](../examples/createKeyHold). + +## Lock keys + +Caps Lock, Num Lock, and Scroll Lock toggle instead of being held. `createKeyHold('CapsLock')()` is `true` only while the key is down, not while Caps Lock is on. To read whether a lock is on, use `createKeyLockState`: + +```tsx +import { createKeyLockState } from '@tanstack/solid-hotkeys' + +const capsLock = createKeyLockState('CapsLock') // capsLock(): true, false, or null + +return {capsLock() ? 'Caps Lock is on' : ''} +``` + +The value is `null` until the browser reports the lock. See [Read lock key state](./key-lock-state) for when that happens and which browsers report each lock. diff --git a/docs/framework/solid/guides/key-lock-state.md b/docs/framework/solid/guides/key-lock-state.md new file mode 100644 index 000000000..148f44f9c --- /dev/null +++ b/docs/framework/solid/guides/key-lock-state.md @@ -0,0 +1,179 @@ +--- +title: Read Lock Key State in Solid +id: key-lock-state +description: Show whether Caps Lock, Num Lock, or Scroll Lock is on in Solid, handle the unknown state, and test UI that depends on it. +--- + +`createKeyLockState` reports whether a lock key is on. Use it for a Caps Lock warning on a password field, or a Num Lock hint on a form that takes numpad input. + +## Read a lock's state + +`createKeyLockState(key)` takes `'CapsLock'`, `'NumLock'`, or `'ScrollLock'` and returns an accessor. Call it to read one of these values: + +- `true` when the lock is on. +- `false` when the lock is off. +- `null` when the browser hasn't reported the lock. + +```tsx +import { Show } from 'solid-js' +import { createKeyLockState } from '@tanstack/solid-hotkeys' + +function CapsLockBadge() { + const capsLock = createKeyLockState('CapsLock') + + return ( + + Caps Lock {capsLock() ? 'on' : 'off'} + + ) +} +``` + +The accessor notifies its readers only when the lock's value changes. To track a key that changes, pass an accessor, such as `createKeyLockState(() => props.lock)`. + +Lock keys toggle instead of being held. `createKeyHold('CapsLock')` answers a different question: its accessor returns `true` only while the key is physically down, and goes back to `false` when the user lets go, even though Caps Lock stays on. On macOS, Chrome and Safari send a keydown when Caps Lock turns on and a keyup when it turns off, so there `createKeyHold('CapsLock')` can look like lock state. Don't rely on that. Use `createKeyLockState` to read whether a lock is on. For keys the user holds, see [Track held keys and modifier state](./held-key-state-helpers). + +## Why the value starts as `null` + +Browsers have no API that reports lock state when the page loads. The state comes only with input events, through `event.getModifierState()`. The key state tracker reads it from keydown, keyup, mousedown, and mousemove events, so every lock is `null` until the user presses a key, clicks, or moves the mouse over the focused page. From then on, the value follows the user's input. + +The tracker reads only trusted events, the ones the browser creates from real input. It ignores events dispatched by page code, such as `element.dispatchEvent(new KeyboardEvent('keydown'))`, because those report every lock as off. + +Treat `null` as unknown, not as off. For a warning, show nothing until the value is `true`. The first key press in the field reports Caps Lock, so the warning appears as the user starts typing. + +Num Lock and Scroll Lock stay `null` on macOS and iOS. See [Browser and platform support](#browser-and-platform-support). + +## Why it resets when the window loses focus + +Every lock goes back to `null` when the window loses focus or the page is hidden, such as when the user switches to another tab or app. The user can toggle a lock in another app, so the last value the page saw may no longer be true. Once the window has focus again, the next key press, click, or mouse move over the page reports the lock again. The tracker ignores mouse events while the window doesn't have focus. + +Held keys reset at the same moments. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus). + +## Browser and platform support + +From the Chromium, Firefox, and WebKit source code, these browsers report each lock through `getModifierState()`: + +| Lock | Chromium (Chrome, Edge, Electron) | Firefox | Safari | +| ----------- | --------------------------------- | -------------------- | ------ | +| Caps Lock | Yes | Yes | Yes | +| Num Lock | Yes | Yes, except on macOS | No | +| Scroll Lock | Yes | Yes | No | + +Mac keyboards have no Num Lock or Scroll Lock key. On macOS, Firefox sets its Num Lock flag for keys on the numpad, which isn't lock state. For these reasons, `NumLock` and `ScrollLock` are always `null` on macOS and iOS, in every browser. Caps Lock works on every platform. + +The [UI Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier) also names `FnLock` and `SymbolLock`, but no browser engine reports them. Chromium doesn't map them, Firefox accepts the names but no platform backend sets them, and WebKit doesn't support them. Electron is no different: its renderer is Chromium, and its main-process [`before-input-event`](https://www.electronjs.org/docs/latest/api/web-contents#event-before-input-event) reports only `capslock` and `numlock`. The keyboard firmware handles Fn Lock, so a page has nothing to read. + +## Example: warn about Caps Lock on a password field + +```tsx +import { createKeyLockState } from '@tanstack/solid-hotkeys' + +export function PasswordField() { + const capsLock = createKeyLockState('CapsLock') + + return ( + + ) +} +``` + +The status element stays in the page and only its text changes, so screen readers can announce the warning when it appears. A `null` value hides the warning, the same as `false`. + +## Example: show Num Lock state on a numpad entry form + +A form for typing numbers on the numpad can tell the user when Num Lock is off. Check for `null` separately here: on macOS the value is always `null`, and "Num Lock is off" would be wrong for a keyboard that has no Num Lock key. + +```tsx +import { Show } from 'solid-js' +import { createKeyLockState } from '@tanstack/solid-hotkeys' + +function QuantityForm() { + const numLock = createKeyLockState('NumLock') + + return ( +
+ + +

Num Lock is off. Turn it on to type numbers on the numpad.

+
+ +

Num Lock is on

+
+
+ ) +} +``` + +## Read lock state in an event handler + +To check a lock once inside a key or mouse handler, call `event.getModifierState()`. It reads no signal, so nothing updates: + +```tsx +function PasswordInput() { + const onKeyDown = (event: KeyboardEvent) => { + if (event.key === 'Enter') { + logSignInAttempt({ capsLock: event.getModifierState('CapsLock') }) + } + } + + return +} +``` + +`getModifierState()` returns what the browser reports, without the tracker's rules. Events dispatched by page code report every lock as off. On macOS, Num Lock and Scroll Lock values aren't lock state: Chrome reports them off, and Firefox reports Num Lock for numpad keys. + +When the handler has no key or mouse event, such as a timer or a form's submit handler, read the shared tracker instead. `getKeyStateTracker().getKeyLockState('CapsLock')` returns the same `true`, `false`, or `null` as `createKeyLockState`. + +## Test lock state + +happy-dom ignores `modifierCapsLock` and the other lock fields in a `KeyboardEvent` init, and its `MouseEvent` has no `getModifierState`. The tracker also reads only trusted events. Before you dispatch a test event, define `isTrusted` and an own `getModifierState` on it: + +```tsx +import { afterEach, expect, it } from 'vitest' +import { flush } from 'solid-js' +import { cleanup, render } from '@solidjs/testing-library' +import { KeyStateTracker } from '@tanstack/solid-hotkeys' +import type { LockKey } from '@tanstack/solid-hotkeys' +import { PasswordField } from './PasswordField' + +afterEach(() => { + cleanup() + KeyStateTracker.resetInstance() +}) + +function withLocks( + event: TEvent, + locks: Partial>, +): TEvent { + Object.defineProperty(event, 'isTrusted', { value: true }) + Object.defineProperty(event, 'getModifierState', { + value: (key: string) => locks[key as LockKey] === true, + }) + return event +} + +it('warns when Caps Lock is on', () => { + const view = render(() => ) + + document.dispatchEvent( + withLocks( + new KeyboardEvent('keydown', { key: 'A', code: 'KeyA', bubbles: true }), + { CapsLock: true }, + ), + ) + flush() + + expect(view.getByRole('status').textContent).toBe('Caps Lock is on') +}) +``` + +Reset `KeyStateTracker` after each test so lock values don't carry over to the next one. A real browser doesn't let you redefine `isTrusted`, so this works only in a simulated DOM such as happy-dom. See [Testing](./testing) for the rest of the test setup. + +See the [createKeyLockState example](../examples/createKeyLockState) for a Caps Lock warning on a password field and an indicator for each lock. diff --git a/docs/framework/solid/reference/functions/createKeyLockState.md b/docs/framework/solid/reference/functions/createKeyLockState.md new file mode 100644 index 000000000..ce6455ea4 --- /dev/null +++ b/docs/framework/solid/reference/functions/createKeyLockState.md @@ -0,0 +1,52 @@ +--- +id: createKeyLockState +title: createKeyLockState +--- + + + +```ts +function createKeyLockState(key): () => boolean | null; +``` + +Defined in: [createKeyLockState.ts:35](https://github.com/TanStack/hotkeys/blob/main/packages/solid-hotkeys/src/createKeyLockState.ts#L35) + +SolidJS primitive that returns whether a lock key, such as Caps Lock, is on. + +Lock keys toggle instead of being held, so this reads the lock state that +the browser reports on key and mouse events. It returns `null` until the +user presses a key, clicks, or moves the mouse, after the window loses +focus or the page is hidden, and always for Num Lock and Scroll Lock on macOS and iOS. + +## Parameters + +### key + +`MaybeGetter`\<`LockKey`\> + +`'CapsLock'`, `'NumLock'`, or `'ScrollLock'` - can be an accessor function + +## Returns + +Signal accessor that returns `true` when the lock is on, `false` +when it is off, or `null` + +() => `boolean` \| `null` + +## Example + +```tsx +function PasswordField() { + const capsLock = createKeyLockState('CapsLock') + + return ( + + ) +} +``` diff --git a/docs/framework/solid/reference/index.md b/docs/framework/solid/reference/index.md index 0285ea53a..950c10e54 100644 --- a/docs/framework/solid/reference/index.md +++ b/docs/framework/solid/reference/index.md @@ -44,6 +44,7 @@ title: "@tanstack/solid-hotkeys" - [createHotkeyScopesState](functions/createHotkeyScopesState.md) - [createKeyboardLayout](functions/createKeyboardLayout.md) - [createKeyHold](functions/createKeyHold.md) +- [createKeyLockState](functions/createKeyLockState.md) - [useAppHotkeys](functions/useAppHotkeys.md) - [useCustomHotkeys](functions/useCustomHotkeys.md) - [useDefaultHotkeysOptions](functions/useDefaultHotkeysOptions.md) diff --git a/docs/framework/svelte/guides/held-key-state-helpers.md b/docs/framework/svelte/guides/held-key-state-helpers.md index 417ece843..4112edd28 100644 --- a/docs/framework/svelte/guides/held-key-state-helpers.md +++ b/docs/framework/svelte/guides/held-key-state-helpers.md @@ -95,3 +95,19 @@ To inspect held keys inside a click or canvas handler without tracking them, rea Held keys reset automatically when the window loses focus, so a key released after switching apps never stays stuck. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus). See the [get-held-keys example](../examples/get-held-keys) and the [get-is-key-held example](../examples/get-is-key-held). + +## Lock keys + +Caps Lock, Num Lock, and Scroll Lock toggle instead of being held. `getIsKeyHeld('CapsLock').held` is `true` only while the key is down, not while Caps Lock is on. To read whether a lock is on, use `getKeyLockState`: + +```svelte + + +{capsLock.value ? 'Caps Lock is on' : ''} +``` + +The value is `null` until the browser reports the lock. See [Read lock key state](./key-lock-state) for when that happens and which browsers report each lock. diff --git a/docs/framework/svelte/guides/key-lock-state.md b/docs/framework/svelte/guides/key-lock-state.md new file mode 100644 index 000000000..b1e0e67b8 --- /dev/null +++ b/docs/framework/svelte/guides/key-lock-state.md @@ -0,0 +1,177 @@ +--- +title: Read Lock Key State in Svelte +id: key-lock-state +description: Show whether Caps Lock, Num Lock, or Scroll Lock is on in Svelte, handle the unknown state, and test UI that depends on it. +--- + +`getKeyLockState` reports whether a lock key is on. Use it for a Caps Lock warning on a password field, or a Num Lock hint on a form that takes numpad input. + +## Read a lock's state + +`getKeyLockState(key)` takes `'CapsLock'`, `'NumLock'`, or `'ScrollLock'` and returns an object whose reactive `value` holds one of these values: + +- `true` when the lock is on. +- `false` when the lock is off. +- `null` when the browser hasn't reported the lock. + +```svelte + + +{#if capsLock.value !== null} + Caps Lock {capsLock.value ? 'on' : 'off'} +{/if} +``` + +Read `value` where you need it, instead of destructuring it once. An effect that reads `value` runs again whenever the key state changes, including key presses that don't change the lock. To track a key that changes, create the object in a `$derived`, such as `const lock = $derived(getKeyLockState(key))`. + +Lock keys toggle instead of being held. `getIsKeyHeld('CapsLock')` answers a different question: its `held` property is `true` only while the key is physically down, and it goes back to `false` when the user lets go, even though Caps Lock stays on. On macOS, Chrome and Safari send a keydown when Caps Lock turns on and a keyup when it turns off, so there `getIsKeyHeld('CapsLock')` can look like lock state. Don't rely on that. Use `getKeyLockState` to read whether a lock is on. For keys the user holds, see [Track held keys and modifier state](./held-key-state-helpers). + +## Why the value starts as `null` + +Browsers have no API that reports lock state when the page loads. The state comes only with input events, through `event.getModifierState()`. The key state tracker reads it from keydown, keyup, mousedown, and mousemove events, so every lock is `null` until the user presses a key, clicks, or moves the mouse over the focused page. From then on, the value follows the user's input. + +The tracker reads only trusted events, the ones the browser creates from real input. It ignores events dispatched by page code, such as `element.dispatchEvent(new KeyboardEvent('keydown'))`, because those report every lock as off. + +Treat `null` as unknown, not as off. For a warning, show nothing until the value is `true`. The first key press in the field reports Caps Lock, so the warning appears as the user starts typing. + +Num Lock and Scroll Lock stay `null` on macOS and iOS. See [Browser and platform support](#browser-and-platform-support). + +## Why it resets when the window loses focus + +Every lock goes back to `null` when the window loses focus or the page is hidden, such as when the user switches to another tab or app. The user can toggle a lock in another app, so the last value the page saw may no longer be true. Once the window has focus again, the next key press, click, or mouse move over the page reports the lock again. The tracker ignores mouse events while the window doesn't have focus. + +Held keys reset at the same moments. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus). + +## Browser and platform support + +From the Chromium, Firefox, and WebKit source code, these browsers report each lock through `getModifierState()`: + +| Lock | Chromium (Chrome, Edge, Electron) | Firefox | Safari | +| ----------- | --------------------------------- | -------------------- | ------ | +| Caps Lock | Yes | Yes | Yes | +| Num Lock | Yes | Yes, except on macOS | No | +| Scroll Lock | Yes | Yes | No | + +Mac keyboards have no Num Lock or Scroll Lock key. On macOS, Firefox sets its Num Lock flag for keys on the numpad, which isn't lock state. For these reasons, `NumLock` and `ScrollLock` are always `null` on macOS and iOS, in every browser. Caps Lock works on every platform. + +The [UI Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier) also names `FnLock` and `SymbolLock`, but no browser engine reports them. Chromium doesn't map them, Firefox accepts the names but no platform backend sets them, and WebKit doesn't support them. Electron is no different: its renderer is Chromium, and its main-process [`before-input-event`](https://www.electronjs.org/docs/latest/api/web-contents#event-before-input-event) reports only `capslock` and `numlock`. The keyboard firmware handles Fn Lock, so a page has nothing to read. + +## Example: warn about Caps Lock on a password field + +```svelte + + + +``` + +The status element stays in the page and only its text changes, so screen readers can announce the warning when it appears. A `null` value hides the warning, the same as `false`. + +## Example: show Num Lock state on a numpad entry form + +A form for typing numbers on the numpad can tell the user when Num Lock is off. Check for `null` separately here: on macOS the value is always `null`, and "Num Lock is off" would be wrong for a keyboard that has no Num Lock key. + +```svelte + + +
+ + {#if numLock.value === false} +

Num Lock is off. Turn it on to type numbers on the numpad.

+ {:else if numLock.value === true} +

Num Lock is on

+ {/if} +
+``` + +## Read lock state in an event handler + +To check a lock once inside a key or mouse handler, call `event.getModifierState()`. It reads no reactive state, so nothing updates: + +```svelte + + + +``` + +`getModifierState()` returns what the browser reports, without the tracker's rules. Events dispatched by page code report every lock as off. On macOS, Num Lock and Scroll Lock values aren't lock state: Chrome reports them off, and Firefox reports Num Lock for numpad keys. + +When the handler has no key or mouse event, such as a timer or a form's submit handler, read the shared tracker instead. `getKeyStateTracker().getKeyLockState('CapsLock')` returns the same `true`, `false`, or `null` as `getKeyLockState`. + +## Test lock state + +happy-dom ignores `modifierCapsLock` and the other lock fields in a `KeyboardEvent` init, and its `MouseEvent` has no `getModifierState`. The tracker also reads only trusted events. Before you dispatch a test event, define `isTrusted` and an own `getModifierState` on it: + +```ts +import { afterEach, expect, it } from 'vitest' +import { flushSync, mount, unmount } from 'svelte' +import { KeyStateTracker } from '@tanstack/svelte-hotkeys' +import type { LockKey } from '@tanstack/svelte-hotkeys' +import PasswordField from './PasswordField.svelte' + +let mounted: Record | undefined + +afterEach(() => { + if (mounted) { + unmount(mounted) + mounted = undefined + } + KeyStateTracker.resetInstance() +}) + +function withLocks( + event: TEvent, + locks: Partial>, +): TEvent { + Object.defineProperty(event, 'isTrusted', { value: true }) + Object.defineProperty(event, 'getModifierState', { + value: (key: string) => locks[key as LockKey] === true, + }) + return event +} + +it('warns when Caps Lock is on', () => { + mounted = mount(PasswordField, { target: document.body }) + flushSync() + + document.dispatchEvent( + withLocks( + new KeyboardEvent('keydown', { key: 'A', code: 'KeyA', bubbles: true }), + { CapsLock: true }, + ), + ) + flushSync() + + expect(document.querySelector('[role="status"]')?.textContent).toBe( + 'Caps Lock is on', + ) +}) +``` + +Reset `KeyStateTracker` after each test so lock values don't carry over to the next one. A real browser doesn't let you redefine `isTrusted`, so this works only in a simulated DOM such as happy-dom. See [Testing](./testing) for the rest of the test setup. + +See the [get-key-lock-state example](../examples/get-key-lock-state) for a Caps Lock warning on a password field and an indicator for each lock. diff --git a/docs/framework/svelte/reference/functions/getKeyLockState.md b/docs/framework/svelte/reference/functions/getKeyLockState.md new file mode 100644 index 000000000..f5e17e2e4 --- /dev/null +++ b/docs/framework/svelte/reference/functions/getKeyLockState.md @@ -0,0 +1,53 @@ +--- +id: getKeyLockState +title: getKeyLockState +--- + + + +```ts +function getKeyLockState(key): SvelteKeyLockState; +``` + +Defined in: [packages/svelte-hotkeys/src/getKeyLockState.svelte.ts:54](https://github.com/TanStack/hotkeys/blob/main/packages/svelte-hotkeys/src/getKeyLockState.svelte.ts#L54) + +Svelte function that returns reactive access to whether a lock key, such as +Caps Lock, is on. + +Lock keys toggle instead of being held, so this reads the lock state that +the browser reports on key and mouse events. Its `value` is `null` until the +user presses a key, clicks, or moves the mouse, after the window loses +focus or the page is hidden, and always for Num Lock and Scroll Lock on macOS and iOS. + +## Parameters + +### key + +`LockKey` + +`'CapsLock'`, `'NumLock'`, or `'ScrollLock'` + +## Returns + +[`SvelteKeyLockState`](../interfaces/SvelteKeyLockState.md) + +Object with a reactive `value` property: `true` when the lock is +on, `false` when it is off, or `null` + +## Example + +```svelte + + + +``` diff --git a/docs/framework/svelte/reference/index.md b/docs/framework/svelte/reference/index.md index d2f0b8344..2c6503cf9 100644 --- a/docs/framework/svelte/reference/index.md +++ b/docs/framework/svelte/reference/index.md @@ -21,6 +21,7 @@ title: "@tanstack/svelte-hotkeys" - [SvelteHotkeyRegistrations](interfaces/SvelteHotkeyRegistrations.md) - [SvelteHotkeyScopesState](interfaces/SvelteHotkeyScopesState.md) - [SvelteKeyboardLayout](interfaces/SvelteKeyboardLayout.md) +- [SvelteKeyLockState](interfaces/SvelteKeyLockState.md) ## Type Aliases @@ -62,4 +63,5 @@ title: "@tanstack/svelte-hotkeys" - [getHotkeyScopesState](functions/getHotkeyScopesState.md) - [getIsKeyHeld](functions/getIsKeyHeld.md) - [getKeyboardLayout](functions/getKeyboardLayout.md) +- [getKeyLockState](functions/getKeyLockState.md) - [setHotkeysContext](functions/setHotkeysContext.md) diff --git a/docs/framework/svelte/reference/interfaces/SvelteKeyLockState.md b/docs/framework/svelte/reference/interfaces/SvelteKeyLockState.md new file mode 100644 index 000000000..706d4dc83 --- /dev/null +++ b/docs/framework/svelte/reference/interfaces/SvelteKeyLockState.md @@ -0,0 +1,18 @@ +--- +id: SvelteKeyLockState +title: SvelteKeyLockState +--- + + + +Defined in: [packages/svelte-hotkeys/src/getKeyLockState.svelte.ts:5](https://github.com/TanStack/hotkeys/blob/main/packages/svelte-hotkeys/src/getKeyLockState.svelte.ts#L5) + +## Properties + +### value + +```ts +readonly value: boolean | null; +``` + +Defined in: [packages/svelte-hotkeys/src/getKeyLockState.svelte.ts:6](https://github.com/TanStack/hotkeys/blob/main/packages/svelte-hotkeys/src/getKeyLockState.svelte.ts#L6) diff --git a/docs/framework/vue/guides/held-key-state-helpers.md b/docs/framework/vue/guides/held-key-state-helpers.md index bb55d7be4..22ffa7f47 100644 --- a/docs/framework/vue/guides/held-key-state-helpers.md +++ b/docs/framework/vue/guides/held-key-state-helpers.md @@ -98,3 +98,21 @@ function onClick() { Held keys reset automatically when the window loses focus, so a key released after switching apps never stays stuck. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus). See the [useHeldKeys example](../examples/useHeldKeys) and the [useKeyHold example](../examples/useKeyhold). + +## Lock keys + +Caps Lock, Num Lock, and Scroll Lock toggle instead of being held. `useKeyHold('CapsLock').value` is `true` only while the key is down, not while Caps Lock is on. To read whether a lock is on, use `useKeyLockState`: + +```vue + + + +``` + +The value is `null` until the browser reports the lock. See [Read lock key state](./key-lock-state) for when that happens and which browsers report each lock. diff --git a/docs/framework/vue/guides/key-lock-state.md b/docs/framework/vue/guides/key-lock-state.md new file mode 100644 index 000000000..8be244ac3 --- /dev/null +++ b/docs/framework/vue/guides/key-lock-state.md @@ -0,0 +1,173 @@ +--- +title: Read Lock Key State in Vue +id: key-lock-state +description: Show whether Caps Lock, Num Lock, or Scroll Lock is on in Vue, handle the unknown state, and test UI that depends on it. +--- + +`useKeyLockState` reports whether a lock key is on. Use it for a Caps Lock warning on a password field, or a Num Lock hint on a form that takes numpad input. + +## Read a lock's state + +`useKeyLockState(key)` takes `'CapsLock'`, `'NumLock'`, or `'ScrollLock'` and returns a read-only ref that holds one of these values: + +- `true` when the lock is on. +- `false` when the lock is off. +- `null` when the browser hasn't reported the lock. + +```vue + + + +``` + +The ref changes only when the lock's value changes, and templates unwrap it for you. The key can also be a ref or a getter, such as `useKeyLockState(() => props.lock)`. + +Lock keys toggle instead of being held. `useKeyHold('CapsLock')` answers a different question: its `value` is `true` only while the key is physically down, and it goes back to `false` when the user lets go, even though Caps Lock stays on. On macOS, Chrome and Safari send a keydown when Caps Lock turns on and a keyup when it turns off, so there `useKeyHold('CapsLock')` can look like lock state. Don't rely on that. Use `useKeyLockState` to read whether a lock is on. For keys the user holds, see [Track held keys and modifier state](./held-key-state-helpers). + +## Why the value starts as `null` + +Browsers have no API that reports lock state when the page loads. The state comes only with input events, through `event.getModifierState()`. The key state tracker reads it from keydown, keyup, mousedown, and mousemove events, so every lock is `null` until the user presses a key, clicks, or moves the mouse over the focused page. From then on, the value follows the user's input. + +The tracker reads only trusted events, the ones the browser creates from real input. It ignores events dispatched by page code, such as `element.dispatchEvent(new KeyboardEvent('keydown'))`, because those report every lock as off. + +Treat `null` as unknown, not as off. For a warning, show nothing until the value is `true`. The first key press in the field reports Caps Lock, so the warning appears as the user starts typing. + +Num Lock and Scroll Lock stay `null` on macOS and iOS. See [Browser and platform support](#browser-and-platform-support). + +## Why it resets when the window loses focus + +Every lock goes back to `null` when the window loses focus or the page is hidden, such as when the user switches to another tab or app. The user can toggle a lock in another app, so the last value the page saw may no longer be true. Once the window has focus again, the next key press, click, or mouse move over the page reports the lock again. The tracker ignores mouse events while the window doesn't have focus. + +Held keys reset at the same moments. See [Held keys reset when the window loses focus](../../../guides/sensible-defaults.md#held-keys-reset-when-the-window-loses-focus). + +## Browser and platform support + +From the Chromium, Firefox, and WebKit source code, these browsers report each lock through `getModifierState()`: + +| Lock | Chromium (Chrome, Edge, Electron) | Firefox | Safari | +| ----------- | --------------------------------- | -------------------- | ------ | +| Caps Lock | Yes | Yes | Yes | +| Num Lock | Yes | Yes, except on macOS | No | +| Scroll Lock | Yes | Yes | No | + +Mac keyboards have no Num Lock or Scroll Lock key. On macOS, Firefox sets its Num Lock flag for keys on the numpad, which isn't lock state. For these reasons, `NumLock` and `ScrollLock` are always `null` on macOS and iOS, in every browser. Caps Lock works on every platform. + +The [UI Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier) also names `FnLock` and `SymbolLock`, but no browser engine reports them. Chromium doesn't map them, Firefox accepts the names but no platform backend sets them, and WebKit doesn't support them. Electron is no different: its renderer is Chromium, and its main-process [`before-input-event`](https://www.electronjs.org/docs/latest/api/web-contents#event-before-input-event) reports only `capslock` and `numlock`. The keyboard firmware handles Fn Lock, so a page has nothing to read. + +## Example: warn about Caps Lock on a password field + +```vue + + + +``` + +The status element stays in the page and only its text changes, so screen readers can announce the warning when it appears. A `null` value hides the warning, the same as `false`. + +## Example: show Num Lock state on a numpad entry form + +A form for typing numbers on the numpad can tell the user when Num Lock is off. Check for `null` separately here: on macOS the value is always `null`, and "Num Lock is off" would be wrong for a keyboard that has no Num Lock key. + +```vue + + + +``` + +## Read lock state in an event handler + +To check a lock once inside a key or mouse handler, call `event.getModifierState()`. It creates no reactive dependency, so nothing updates: + +```vue + + + +``` + +`getModifierState()` returns what the browser reports, without the tracker's rules. Events dispatched by page code report every lock as off. On macOS, Num Lock and Scroll Lock values aren't lock state: Chrome reports them off, and Firefox reports Num Lock for numpad keys. + +When the handler has no key or mouse event, such as a timer or a form's submit handler, read the shared tracker instead. `getKeyStateTracker().getKeyLockState('CapsLock')` returns the same `true`, `false`, or `null` as `useKeyLockState`. + +## Test lock state + +happy-dom ignores `modifierCapsLock` and the other lock fields in a `KeyboardEvent` init, and its `MouseEvent` has no `getModifierState`. The tracker also reads only trusted events. Before you dispatch a test event, define `isTrusted` and an own `getModifierState` on it: + +```ts +import { afterEach, expect, it } from 'vitest' +import { nextTick } from 'vue' +import { mount } from '@vue/test-utils' +import { KeyStateTracker } from '@tanstack/vue-hotkeys' +import type { LockKey } from '@tanstack/vue-hotkeys' +import PasswordField from './PasswordField.vue' + +afterEach(() => { + KeyStateTracker.resetInstance() +}) + +function withLocks( + event: TEvent, + locks: Partial>, +): TEvent { + Object.defineProperty(event, 'isTrusted', { value: true }) + Object.defineProperty(event, 'getModifierState', { + value: (key: string) => locks[key as LockKey] === true, + }) + return event +} + +it('warns when Caps Lock is on', async () => { + const wrapper = mount(PasswordField) + + document.dispatchEvent( + withLocks( + new KeyboardEvent('keydown', { key: 'A', code: 'KeyA', bubbles: true }), + { CapsLock: true }, + ), + ) + await nextTick() + + expect(wrapper.get('[role="status"]').text()).toBe('Caps Lock is on') + wrapper.unmount() +}) +``` + +Reset `KeyStateTracker` after each test so lock values don't carry over to the next one. A real browser doesn't let you redefine `isTrusted`, so this works only in a simulated DOM such as happy-dom. See [Testing](./testing) for the rest of the test setup. + +See the [useKeyLockState example](../examples/useKeyLockState) for a Caps Lock warning on a password field and an indicator for each lock. diff --git a/docs/framework/vue/reference/functions/useKeyLockState.md b/docs/framework/vue/reference/functions/useKeyLockState.md new file mode 100644 index 000000000..0786c367b --- /dev/null +++ b/docs/framework/vue/reference/functions/useKeyLockState.md @@ -0,0 +1,56 @@ +--- +id: useKeyLockState +title: useKeyLockState +--- + + + +```ts +function useKeyLockState(key): ComputedRef; +``` + +Defined in: [useKeyLockState.ts:39](https://github.com/TanStack/hotkeys/blob/main/packages/vue-hotkeys/src/useKeyLockState.ts#L39) + +Vue composable that returns a reactive ref telling whether a lock key, such +as Caps Lock, is on. + +Lock keys toggle instead of being held, so this reads the lock state that +the browser reports on key and mouse events. It is `null` until the user +presses a key, clicks, or moves the mouse, after the window loses focus or the page is hidden, +and always for Num Lock and Scroll Lock on macOS and iOS. The key may be a +ref or getter; the result follows it without waiting for an event. +Pressing or releasing a key that doesn't change the lock state doesn't +notify anything that reads the ref. + +## Parameters + +### key + +`MaybeRefOrGetter`\<`LockKey`\> + +`'CapsLock'`, `'NumLock'`, or `'ScrollLock'` + +## Returns + +`ComputedRef`\<`boolean` \| `null`\> + +Read-only reactive ref that is `true` when the lock is on, `false` +when it is off, or `null` + +## Example + +```vue + + + +``` diff --git a/docs/framework/vue/reference/index.md b/docs/framework/vue/reference/index.md index 8d6cdcc14..ccf376950 100644 --- a/docs/framework/vue/reference/index.md +++ b/docs/framework/vue/reference/index.md @@ -49,3 +49,4 @@ title: "@tanstack/vue-hotkeys" - [useHotkeyScopesState](functions/useHotkeyScopesState.md) - [useKeyboardLayout](functions/useKeyboardLayout.md) - [useKeyHold](functions/useKeyHold.md) +- [useKeyLockState](functions/useKeyLockState.md) diff --git a/docs/reference/classes/KeyStateTracker.md b/docs/reference/classes/KeyStateTracker.md index 25d32383b..a4488ddc5 100644 --- a/docs/reference/classes/KeyStateTracker.md +++ b/docs/reference/classes/KeyStateTracker.md @@ -5,7 +5,7 @@ title: KeyStateTracker -Defined in: [key-state-tracker.ts:66](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L66) +Defined in: [key-state-tracker.ts:83](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L83) Singleton tracker for currently held keyboard keys. @@ -49,7 +49,7 @@ unsubscribe() readonly store: Store; ``` -Defined in: [key-state-tracker.ts:73](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L73) +Defined in: [key-state-tracker.ts:90](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L90) The TanStack Store instance containing the tracker state. Use this to subscribe to state changes or access current state. @@ -62,7 +62,7 @@ Use this to subscribe to state changes or access current state. areAllKeysHeld(keys): boolean; ``` -Defined in: [key-state-tracker.ts:311](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L311) +Defined in: [key-state-tracker.ts:396](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L396) Checks if all of the given keys are currently held. @@ -88,7 +88,7 @@ True if all of the keys are currently held destroy(): void; ``` -Defined in: [key-state-tracker.ts:318](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L318) +Defined in: [key-state-tracker.ts:403](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L403) Destroys the tracker and removes all listeners. @@ -104,7 +104,7 @@ Destroys the tracker and removes all listeners. getHeldKeys(): string[]; ``` -Defined in: [key-state-tracker.ts:274](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L274) +Defined in: [key-state-tracker.ts:346](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L346) Gets an array of currently held key names. @@ -116,13 +116,42 @@ Array of key names currently being pressed *** +### getKeyLockState() + +```ts +getKeyLockState(key): boolean | null; +``` + +Defined in: [key-state-tracker.ts:376](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L376) + +Whether a lock key is on. Returns `null` while no browser event has +reported it: until the user presses a key, clicks, or moves the mouse, +after the window loses focus or the page is hidden, and always for Num Lock and Scroll Lock on +macOS and iOS. + +#### Parameters + +##### key + +[`LockKey`](../type-aliases/LockKey.md) + +`'CapsLock'`, `'NumLock'`, or `'ScrollLock'` + +#### Returns + +`boolean` \| `null` + +`true` when the lock is on, `false` when it is off, or `null` + +*** + ### isAnyKeyHeld() ```ts isAnyKeyHeld(keys): boolean; ``` -Defined in: [key-state-tracker.ts:301](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L301) +Defined in: [key-state-tracker.ts:386](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L386) Checks if any of the given keys are currently held. @@ -148,7 +177,7 @@ True if any of the keys are currently held isKeyHeld(key): boolean; ``` -Defined in: [key-state-tracker.ts:288](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L288) +Defined in: [key-state-tracker.ts:360](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L360) Checks if a specific key is currently being held. @@ -178,7 +207,7 @@ True if the key is currently held static getInstance(): KeyStateTracker; ``` -Defined in: [key-state-tracker.ts:88](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L88) +Defined in: [key-state-tracker.ts:109](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L109) Gets the singleton instance of KeyStateTracker. @@ -194,7 +223,7 @@ Gets the singleton instance of KeyStateTracker. static resetInstance(): void; ``` -Defined in: [key-state-tracker.ts:98](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L98) +Defined in: [key-state-tracker.ts:119](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L119) Resets the singleton instance. Useful for testing. diff --git a/docs/reference/functions/getKeyStateTracker.md b/docs/reference/functions/getKeyStateTracker.md index c68087225..20b0ad09b 100644 --- a/docs/reference/functions/getKeyStateTracker.md +++ b/docs/reference/functions/getKeyStateTracker.md @@ -9,7 +9,7 @@ title: getKeyStateTracker function getKeyStateTracker(): KeyStateTracker; ``` -Defined in: [key-state-tracker.ts:329](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L329) +Defined in: [key-state-tracker.ts:415](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L415) Gets the singleton KeyStateTracker instance. Convenience function for accessing the tracker. diff --git a/docs/reference/index.md b/docs/reference/index.md index a7f18eecf..4c90c5504 100644 --- a/docs/reference/index.md +++ b/docs/reference/index.md @@ -117,6 +117,7 @@ title: "@tanstack/hotkeys" - [LayoutKey](type-aliases/LayoutKey.md) - [LetterKey](type-aliases/LetterKey.md) - [LithuanianKeys](type-aliases/LithuanianKeys.md) +- [LockKey](type-aliases/LockKey.md) - [LogicalKey](type-aliases/LogicalKey.md) - [MaybeGetter](type-aliases/MaybeGetter.md) - [Modifier](type-aliases/Modifier.md) diff --git a/docs/reference/interfaces/KeyStateTrackerState.md b/docs/reference/interfaces/KeyStateTrackerState.md index de8d79a6f..b0001e5f2 100644 --- a/docs/reference/interfaces/KeyStateTrackerState.md +++ b/docs/reference/interfaces/KeyStateTrackerState.md @@ -33,3 +33,18 @@ heldKeys: string[]; Defined in: [key-state-tracker.ts:14](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L14) Array of currently held key names (normalized, e.g. "Control", "A"). + +*** + +### locks + +```ts +locks: Record; +``` + +Defined in: [key-state-tracker.ts:26](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L26) + +Whether each lock key is on. `null` while no browser event has reported +it: until the user presses a key, clicks, or moves the mouse, after the +window loses focus or the page is hidden, and always for Num Lock and Scroll Lock on macOS and +iOS, where browsers don't report them. diff --git a/docs/reference/type-aliases/LockKey.md b/docs/reference/type-aliases/LockKey.md new file mode 100644 index 000000000..25e571fca --- /dev/null +++ b/docs/reference/type-aliases/LockKey.md @@ -0,0 +1,14 @@ +--- +id: LockKey +title: LockKey +--- + + + +```ts +type LockKey = "CapsLock" | "NumLock" | "ScrollLock"; +``` + +Defined in: [key-state-tracker.ts:30](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key-state-tracker.ts#L30) + +A lock key that browsers report through `getModifierState()`. diff --git a/e2e/adapters/adapters.spec.ts b/e2e/adapters/adapters.spec.ts index 90ad4bd8a..ba5ff8b90 100644 --- a/e2e/adapters/adapters.spec.ts +++ b/e2e/adapters/adapters.spec.ts @@ -114,5 +114,22 @@ for (const app of adapterApps) { await expect(page.locator('#shift-held')).toHaveText('released') await expect(page.locator('#held-keys')).toHaveText('') }) + + // Playwright can't turn on the OS Caps Lock: Chromium and WebKit report + // it off. This checks that real input reaches the lock state helper. + test('key lock state follows real input and resets on blur', async ({ + page, + openApp, + }) => { + await openApp(app) + await expect(page.locator('#caps-lock')).toHaveText('unknown') + await page.keyboard.press('a') + await expect(page.locator('#caps-lock')).toHaveText('off') + await page.evaluate(() => window.dispatchEvent(new Event('blur'))) + await expect(page.locator('#caps-lock')).toHaveText('unknown') + await page.mouse.move(20, 20) + await page.mouse.move(40, 40) + await expect(page.locator('#caps-lock')).toHaveText('off') + }) }) } diff --git a/e2e/adapters/apps/alpine/index.html b/e2e/adapters/apps/alpine/index.html index 28c6d1754..e4170f812 100644 --- a/e2e/adapters/apps/alpine/index.html +++ b/e2e/adapters/apps/alpine/index.html @@ -12,6 +12,10 @@
+
diff --git a/e2e/adapters/apps/alpine/src/main.ts b/e2e/adapters/apps/alpine/src/main.ts index 6c924ce5a..a183b3fee 100644 --- a/e2e/adapters/apps/alpine/src/main.ts +++ b/e2e/adapters/apps/alpine/src/main.ts @@ -25,6 +25,7 @@ Alpine.data('app', () => { hotkey: 'K', recorder: createHotkeyRecorder(scope, { onRecord: setRecorded }), shiftHeld: scope.createKeyHold('Shift'), + capsLock: scope.createKeyLockState('CapsLock'), heldKeys: scope.createHeldKeys(), init(this: AppData) { scope.createHotkey(['G', 'G'], () => logCall('sequence')) diff --git a/e2e/adapters/apps/angular/src/main.ts b/e2e/adapters/apps/angular/src/main.ts index b41547890..5824746b4 100644 --- a/e2e/adapters/apps/angular/src/main.ts +++ b/e2e/adapters/apps/angular/src/main.ts @@ -12,6 +12,7 @@ import { injectHotkey, injectHotkeyRecorder, injectKeyHold, + injectKeyLockState, } from '@tanstack/angular-hotkeys' import { exposeFixture, logCall, setRecorded } from '../../../shared/fixture' import type { Hotkey } from '@tanstack/angular-hotkeys' @@ -47,12 +48,14 @@ const App = Component({
{{ recorder.isRecording() ? 'yes' : 'no' }}
{{ shiftHeld() ? 'held' : 'released' }}
{{ heldKeys().join('+') }}
+
{{ capsLock() === null ? 'unknown' : capsLock() ? 'on' : 'off' }}
`, })( class App { shown = signal(true) recorder = injectHotkeyRecorder({ onRecord: setRecorded }) shiftHeld = injectKeyHold('Shift') + capsLock = injectKeyLockState('CapsLock') heldKeys = injectHeldKeys() constructor() { diff --git a/e2e/adapters/apps/ember/app/templates/application.gts b/e2e/adapters/apps/ember/app/templates/application.gts index 5b1b9d58e..cbecadedd 100644 --- a/e2e/adapters/apps/ember/app/templates/application.gts +++ b/e2e/adapters/apps/ember/app/templates/application.gts @@ -7,6 +7,7 @@ import { useHotkey, useHotkeyRecorder, useKeyHold, + useKeyLockState, } from '@tanstack/ember-hotkeys' import { exposeFixture, logCall, setRecorded } from '../../../../shared/fixture' import type { Hotkey } from '@tanstack/ember-hotkeys' @@ -33,6 +34,7 @@ class App extends Component { onSequence = () => logCall('sequence') recorder = useHotkeyRecorder(this, { onRecord: setRecorded }) shiftHeld = useKeyHold(this, 'Shift') + capsLock = useKeyLockState(this, 'CapsLock') heldKeys = useHeldKeys(this) constructor(owner: unknown, args: object) { @@ -48,6 +50,11 @@ class App extends Component { ) } + get capsLockText() { + const value = this.capsLock.value + return value === null ? 'unknown' : value ? 'on' : 'off' + } + get heldKeysText() { return this.heldKeys.value.join('+') } @@ -60,6 +67,7 @@ class App extends Component {
{{if this.recorder.isRecording 'yes' 'no'}}
{{if this.shiftHeld.value 'held' 'released'}}
{{this.heldKeysText}}
+
{{this.capsLockText}}
} diff --git a/e2e/adapters/apps/lit/src/main.ts b/e2e/adapters/apps/lit/src/main.ts index 6b121eb4c..886e76aa0 100644 --- a/e2e/adapters/apps/lit/src/main.ts +++ b/e2e/adapters/apps/lit/src/main.ts @@ -3,6 +3,7 @@ import { HotkeyController, HotkeyRecorderController, KeyHoldController, + KeyLockStateController, detectPlatform, getHotkeyManager, } from '@tanstack/lit-hotkeys' @@ -56,6 +57,7 @@ class FixtureApp extends LitElement { recorder = new HotkeyRecorderController(this, { onRecord: setRecorded }) shiftHeld = new KeyHoldController(this, 'Shift') + capsLock = new KeyLockStateController(this, 'CapsLock') heldKeys = new HeldKeysController(this) constructor() { @@ -95,6 +97,9 @@ class FixtureApp extends LitElement {
${this.recorder.isRecording ? 'yes' : 'no'}
${this.shiftHeld.value ? 'held' : 'released'}
${this.heldKeys.value.join('+')}
+
+ ${this.capsLock.value === null ? 'unknown' : this.capsLock.value ? 'on' : 'off'} +
` } } diff --git a/e2e/adapters/apps/octane/src/main.tsrx b/e2e/adapters/apps/octane/src/main.tsrx index c4fdb771c..ce02575c1 100644 --- a/e2e/adapters/apps/octane/src/main.tsrx +++ b/e2e/adapters/apps/octane/src/main.tsrx @@ -6,6 +6,7 @@ import { useHotkey, useHotkeyRecorder, useKeyHold, + useKeyLockState, } from '@tanstack/octane-hotkeys' import { exposeFixture, logCall, setRecorded } from '../../../shared/fixture' import type { Hotkey } from '@tanstack/octane-hotkeys' @@ -23,6 +24,7 @@ function App() @{ const recorder = useHotkeyRecorder({ onRecord: setRecorded }) const shiftHeld = useKeyHold('Shift') const heldKeys = useHeldKeys() + const capsLock = useKeyLockState('CapsLock') useEffect(() => { exposeFixture({ getHotkeyManager, detectPlatform }, { @@ -38,6 +40,7 @@ function App() @{
{recorder.isRecording ? 'yes' : 'no'}
{shiftHeld ? 'held' : 'released'}
{heldKeys.join('+')}
+
{capsLock === null ? 'unknown' : capsLock ? 'on' : 'off'}
} diff --git a/e2e/adapters/apps/preact/src/main.tsx b/e2e/adapters/apps/preact/src/main.tsx index 8f84d435e..779f06478 100644 --- a/e2e/adapters/apps/preact/src/main.tsx +++ b/e2e/adapters/apps/preact/src/main.tsx @@ -5,6 +5,7 @@ import { useHotkey, useHotkeyRecorder, useKeyHold, + useKeyLockState, } from '@tanstack/preact-hotkeys' import { render } from 'preact' import { StrictMode } from 'preact/compat' @@ -25,6 +26,7 @@ function App() { const recorder = useHotkeyRecorder({ onRecord: setRecorded }) const shiftHeld = useKeyHold('Shift') const heldKeys = useHeldKeys() + const capsLock = useKeyLockState('CapsLock') useEffect(() => { exposeFixture( @@ -44,6 +46,9 @@ function App() {
{recorder.isRecording ? 'yes' : 'no'}
{shiftHeld ? 'held' : 'released'}
{heldKeys.join('+')}
+
+ {capsLock === null ? 'unknown' : capsLock ? 'on' : 'off'} +
) } diff --git a/e2e/adapters/apps/react/src/main.tsx b/e2e/adapters/apps/react/src/main.tsx index 76fe61f0a..d367bb2b7 100644 --- a/e2e/adapters/apps/react/src/main.tsx +++ b/e2e/adapters/apps/react/src/main.tsx @@ -5,6 +5,7 @@ import { useHotkey, useHotkeyRecorder, useKeyHold, + useKeyLockState, } from '@tanstack/react-hotkeys' import { StrictMode, useEffect, useState } from 'react' import { createRoot } from 'react-dom/client' @@ -24,6 +25,7 @@ function App() { const recorder = useHotkeyRecorder({ onRecord: setRecorded }) const shiftHeld = useKeyHold('Shift') const heldKeys = useHeldKeys() + const capsLock = useKeyLockState('CapsLock') useEffect(() => { exposeFixture( @@ -43,6 +45,9 @@ function App() {
{recorder.isRecording ? 'yes' : 'no'}
{shiftHeld ? 'held' : 'released'}
{heldKeys.join('+')}
+
+ {capsLock === null ? 'unknown' : capsLock ? 'on' : 'off'} +
) } diff --git a/e2e/adapters/apps/solid/src/main.tsx b/e2e/adapters/apps/solid/src/main.tsx index ce02c629c..897e91e8c 100644 --- a/e2e/adapters/apps/solid/src/main.tsx +++ b/e2e/adapters/apps/solid/src/main.tsx @@ -4,6 +4,7 @@ import { createHotkey, createHotkeyRecorder, createKeyHold, + createKeyLockState, detectPlatform, getHotkeyManager, } from '@tanstack/solid-hotkeys' @@ -27,6 +28,7 @@ function App() { createHotkey(['G', 'G'], () => logCall('sequence')) const recorder = createHotkeyRecorder({ onRecord: setRecorded }) const shiftHeld = createKeyHold('Shift') + const capsLock = createKeyLockState('CapsLock') const heldKeys = createHeldKeys() onSettled(() => { @@ -49,6 +51,9 @@ function App() {
{recorder.isRecording() ? 'yes' : 'no'}
{shiftHeld() ? 'held' : 'released'}
{heldKeys().join('+')}
+
+ {capsLock() === null ? 'unknown' : capsLock() ? 'on' : 'off'} +
) } diff --git a/e2e/adapters/apps/svelte/src/App.svelte b/e2e/adapters/apps/svelte/src/App.svelte index bdee86bd1..8b410f632 100644 --- a/e2e/adapters/apps/svelte/src/App.svelte +++ b/e2e/adapters/apps/svelte/src/App.svelte @@ -6,6 +6,7 @@ getHeldKeys, getHotkeyManager, getIsKeyHeld, + getKeyLockState, } from '@tanstack/svelte-hotkeys' import { onMount } from 'svelte' import { exposeFixture, logCall, setRecorded } from '../../../shared/fixture' @@ -17,6 +18,7 @@ createHotkey(['G', 'G'], () => logCall('sequence')) const recorder = createHotkeyRecorder({ onRecord: setRecorded }) const shiftHeld = getIsKeyHeld('Shift') + const capsLock = getKeyLockState('CapsLock') const heldKeys = getHeldKeys() onMount(() => { @@ -38,3 +40,6 @@
{recorder.isRecording ? 'yes' : 'no'}
{shiftHeld.held ? 'held' : 'released'}
{heldKeys.keys.join('+')}
+
+ {capsLock.value === null ? 'unknown' : capsLock.value ? 'on' : 'off'} +
diff --git a/e2e/adapters/apps/vue/src/App.vue b/e2e/adapters/apps/vue/src/App.vue index e7939f044..1bfa2e39e 100644 --- a/e2e/adapters/apps/vue/src/App.vue +++ b/e2e/adapters/apps/vue/src/App.vue @@ -6,6 +6,7 @@ import { useHotkey, useHotkeyRecorder, useKeyHold, + useKeyLockState, } from '@tanstack/vue-hotkeys' import { onMounted, ref } from 'vue' import { exposeFixture, logCall, setRecorded } from '../../../shared/fixture' @@ -18,6 +19,7 @@ useHotkey(['G', 'G'], () => logCall('sequence')) const recorder = useHotkeyRecorder({ onRecord: setRecorded }) const shiftHeld = useKeyHold('Shift') const heldKeys = useHeldKeys() +const capsLock = useKeyLockState('CapsLock') onMounted(() => { exposeFixture( @@ -37,4 +39,7 @@ onMounted(() => {
{{ recorder.isRecording.value ? 'yes' : 'no' }}
{{ shiftHeld ? 'held' : 'released' }}
{{ heldKeys.join('+') }}
+
+ {{ capsLock === null ? 'unknown' : capsLock ? 'on' : 'off' }} +
diff --git a/examples/alpine/createKeyLockState/index.html b/examples/alpine/createKeyLockState/index.html new file mode 100644 index 000000000..2cd1f18da --- /dev/null +++ b/examples/alpine/createKeyLockState/index.html @@ -0,0 +1,46 @@ + + + + + + TanStack Hotkeys | Alpine createKeyLockState + + +
+
+

scope.createKeyLockState

+ +
+ + +

+
+ +
+
+ Caps Lock + +
+
+ Num Lock + +
+
+ Scroll Lock + +
+
+ +

+ Unknown until you press a key, click, or move the mouse. Num Lock and + Scroll Lock stay unknown on macOS. +

+
+
+ + + diff --git a/examples/alpine/createKeyLockState/package.json b/examples/alpine/createKeyLockState/package.json new file mode 100644 index 000000000..d63a32696 --- /dev/null +++ b/examples/alpine/createKeyLockState/package.json @@ -0,0 +1,22 @@ +{ + "name": "@tanstack/hotkeys-example-alpine-create-key-lock-state", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --port=3069", + "build": "vite build", + "preview": "vite preview", + "lint": "oxlint ./src", + "lint:fix": "oxlint ./src --fix", + "test:types": "tsc" + }, + "dependencies": { + "@tanstack/alpine-hotkeys": "workspace:*", + "alpinejs": "^3.17.5" + }, + "devDependencies": { + "@types/alpinejs": "^3.17.0", + "typescript": "6.0.3", + "vite": "^8.3.7" + } +} diff --git a/examples/alpine/createKeyLockState/src/index.css b/examples/alpine/createKeyLockState/src/index.css new file mode 100644 index 000000000..32fdb4630 --- /dev/null +++ b/examples/alpine/createKeyLockState/src/index.css @@ -0,0 +1,58 @@ +* { + box-sizing: border-box; +} +body { + margin: 0; + font-family: system-ui, -apple-system, sans-serif; + background: #f5f5f5; + color: #333; +} +.app { + max-width: 600px; + margin: 0 auto; + padding: 20px; +} +h1 { + color: #0066cc; +} +.field { + display: flex; + flex-direction: column; + gap: 6px; + margin-bottom: 24px; +} +.field input { + padding: 8px; + font-size: 16px; +} +.warning { + min-height: 1.5em; + margin: 0; + color: #b45309; + font-weight: bold; +} +.locks { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 12px; +} +.lock { + background: white; + border: 2px solid #ddd; + border-radius: 8px; + padding: 12px; + text-align: center; +} +.lock.on { + background: #4caf50; + border-color: #388e3c; + color: white; +} +.lock-name { + display: block; + font-weight: bold; +} +.note { + color: #666; + font-size: 14px; +} diff --git a/examples/alpine/createKeyLockState/src/main.ts b/examples/alpine/createKeyLockState/src/main.ts new file mode 100644 index 000000000..de2f8219a --- /dev/null +++ b/examples/alpine/createKeyLockState/src/main.ts @@ -0,0 +1,30 @@ +import { createHotkeysScope, hotkeysPlugin } from '@tanstack/alpine-hotkeys' +import Alpine from 'alpinejs' +import type { AlpineHotkeyState } from '@tanstack/alpine-hotkeys' +import './index.css' + +// Gives every hotkeys scope the app's Alpine instance. +Alpine.plugin(hotkeysPlugin) + +class App { + private hotkeysScope = createHotkeysScope() + + capsLock!: AlpineHotkeyState + numLock!: AlpineHotkeyState + scrollLock!: AlpineHotkeyState + + init() { + this.capsLock = this.hotkeysScope.createKeyLockState('CapsLock') + this.numLock = this.hotkeysScope.createKeyLockState('NumLock') + this.scrollLock = this.hotkeysScope.createKeyLockState('ScrollLock') + } + destroy() { + this.hotkeysScope.destroy() + } + describe(state: boolean | null) { + if (state === null) return 'Unknown' + return state ? 'On' : 'Off' + } +} +Alpine.data('app', () => new App()) +Alpine.start() diff --git a/examples/alpine/createKeyLockState/tsconfig.json b/examples/alpine/createKeyLockState/tsconfig.json new file mode 100644 index 000000000..9ad77f7f6 --- /dev/null +++ b/examples/alpine/createKeyLockState/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "../../../tsconfig.json", + "compilerOptions": { + "types": ["vite/client"] + }, + "include": ["src", "vite.config.ts"] +} diff --git a/examples/angular/injectKeyLockState/angular.json b/examples/angular/injectKeyLockState/angular.json new file mode 100644 index 000000000..35a73cfd8 --- /dev/null +++ b/examples/angular/injectKeyLockState/angular.json @@ -0,0 +1,63 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "version": 1, + "newProjectRoot": "projects", + "projects": { + "injectKeyLockState": { + "projectType": "application", + "schematics": { + "@schematics/angular:class": { "skipTests": true }, + "@schematics/angular:component": { "skipTests": true } + }, + "root": "", + "sourceRoot": "src", + "prefix": "app", + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:application", + "options": { + "outputPath": "dist/inject-key-lock-state", + "index": "src/index.html", + "browser": "src/main.ts", + "polyfills": ["zone.js"], + "tsConfig": "tsconfig.json", + "assets": [], + "styles": ["src/styles.css"], + "scripts": [] + }, + "configurations": { + "production": { + "budgets": [ + { + "type": "initial", + "maximumWarning": "500kB", + "maximumError": "1MB" + } + ], + "outputHashing": "all" + }, + "development": { + "optimization": false, + "extractLicenses": false, + "sourceMap": true + } + }, + "defaultConfiguration": "production" + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "configurations": { + "production": { + "buildTarget": "injectKeyLockState:build:production" + }, + "development": { + "buildTarget": "injectKeyLockState:build:development" + } + }, + "defaultConfiguration": "development" + } + } + } + }, + "cli": { "analytics": false } +} diff --git a/examples/angular/injectKeyLockState/package.json b/examples/angular/injectKeyLockState/package.json new file mode 100644 index 000000000..0a463ddc5 --- /dev/null +++ b/examples/angular/injectKeyLockState/package.json @@ -0,0 +1,40 @@ +{ + "name": "inject-key-lock-state", + "scripts": { + "ng": "ng", + "start": "ng serve --port=3069", + "dev": "ng serve --port=3069", + "build": "ng build", + "watch": "ng build --watch --configuration development", + "test": "ng test" + }, + "private": true, + "dependencies": { + "@angular/common": "^22.2.5", + "@angular/compiler": "^22.2.5", + "@angular/core": "^22.2.5", + "@angular/forms": "^22.2.5", + "@angular/platform-browser": "^22.2.5", + "@angular/platform-browser-dynamic": "^22.2.5", + "@angular/router": "^22.2.5", + "@tanstack/angular-devtools": "^0.0.14", + "@tanstack/angular-hotkeys": "^0.26.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.19", + "rxjs": "~7.8.2", + "tslib": "^2.9.1", + "zone.js": "~0.16.3" + }, + "devDependencies": { + "@angular-devkit/build-angular": "^22.2.6", + "@angular/cli": "^22.2.6", + "@angular/compiler-cli": "^22.2.5", + "@types/jasmine": "~7.0.0", + "jasmine-core": "~7.0.2", + "karma": "~6.4.4", + "karma-chrome-launcher": "~3.2.0", + "karma-coverage": "~2.2.1", + "karma-jasmine": "~5.1.0", + "karma-jasmine-html-reporter": "~2.3.0", + "typescript": "6.0.3" + } +} diff --git a/examples/angular/injectKeyLockState/src/app/app.component.css b/examples/angular/injectKeyLockState/src/app/app.component.css new file mode 100644 index 000000000..5d4e87f30 --- /dev/null +++ b/examples/angular/injectKeyLockState/src/app/app.component.css @@ -0,0 +1,3 @@ +:host { + display: block; +} diff --git a/examples/angular/injectKeyLockState/src/app/app.component.html b/examples/angular/injectKeyLockState/src/app/app.component.html new file mode 100644 index 000000000..d1d91631d --- /dev/null +++ b/examples/angular/injectKeyLockState/src/app/app.component.html @@ -0,0 +1,25 @@ +
+

injectKeyLockState

+ +
+ + +

+ {{ capsLock() === true ? 'Caps Lock is on' : '' }} +

+
+ +
+ @for (lock of locks; track lock.name) { +
+ {{ lock.name }} + {{ describe(lock.state()) }} +
+ } +
+ +

+ Unknown until you press a key, click, or move the mouse. Num Lock and Scroll + Lock stay unknown on macOS. +

+
diff --git a/examples/angular/injectKeyLockState/src/app/app.component.ts b/examples/angular/injectKeyLockState/src/app/app.component.ts new file mode 100644 index 000000000..3d9fdbcac --- /dev/null +++ b/examples/angular/injectKeyLockState/src/app/app.component.ts @@ -0,0 +1,25 @@ +import { Component } from '@angular/core' +import { injectKeyLockState } from '@tanstack/angular-hotkeys' + +@Component({ + selector: 'app-root', + standalone: true, + templateUrl: './app.component.html', + styleUrl: './app.component.css', +}) +export class AppComponent { + capsLock = injectKeyLockState('CapsLock') + numLock = injectKeyLockState('NumLock') + scrollLock = injectKeyLockState('ScrollLock') + + locks = [ + { name: 'Caps Lock', state: this.capsLock }, + { name: 'Num Lock', state: this.numLock }, + { name: 'Scroll Lock', state: this.scrollLock }, + ] + + describe(state: boolean | null) { + if (state === null) return 'Unknown' + return state ? 'On' : 'Off' + } +} diff --git a/examples/angular/injectKeyLockState/src/app/app.config.ts b/examples/angular/injectKeyLockState/src/app/app.config.ts new file mode 100644 index 000000000..a22ac5896 --- /dev/null +++ b/examples/angular/injectKeyLockState/src/app/app.config.ts @@ -0,0 +1,17 @@ +import { isDevMode, provideZoneChangeDetection } from '@angular/core' +import { provideTanStackDevtools } from '@tanstack/angular-devtools/provider' +import { hotkeysDevtoolsPlugin } from '@tanstack/angular-hotkeys-devtools' +import type { ApplicationConfig } from '@angular/core' + +export const appConfig: ApplicationConfig = { + providers: [ + ...(isDevMode() + ? [ + provideTanStackDevtools(() => ({ + plugins: [hotkeysDevtoolsPlugin()], + })), + ] + : []), + provideZoneChangeDetection({ eventCoalescing: true }), + ], +} diff --git a/examples/angular/injectKeyLockState/src/index.html b/examples/angular/injectKeyLockState/src/index.html new file mode 100644 index 000000000..cbaca5e1b --- /dev/null +++ b/examples/angular/injectKeyLockState/src/index.html @@ -0,0 +1,13 @@ + + + + + + + injectKeyLockState - TanStack Hotkeys Angular Example + + + + + + diff --git a/examples/angular/injectKeyLockState/src/main.ts b/examples/angular/injectKeyLockState/src/main.ts new file mode 100644 index 000000000..ff9eaf112 --- /dev/null +++ b/examples/angular/injectKeyLockState/src/main.ts @@ -0,0 +1,5 @@ +import { bootstrapApplication } from '@angular/platform-browser' +import { AppComponent } from './app/app.component' +import { appConfig } from './app/app.config' + +bootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err)) diff --git a/examples/angular/injectKeyLockState/src/styles.css b/examples/angular/injectKeyLockState/src/styles.css new file mode 100644 index 000000000..32fdb4630 --- /dev/null +++ b/examples/angular/injectKeyLockState/src/styles.css @@ -0,0 +1,58 @@ +* { + box-sizing: border-box; +} +body { + margin: 0; + font-family: system-ui, -apple-system, sans-serif; + background: #f5f5f5; + color: #333; +} +.app { + max-width: 600px; + margin: 0 auto; + padding: 20px; +} +h1 { + color: #0066cc; +} +.field { + display: flex; + flex-direction: column; + gap: 6px; + margin-bottom: 24px; +} +.field input { + padding: 8px; + font-size: 16px; +} +.warning { + min-height: 1.5em; + margin: 0; + color: #b45309; + font-weight: bold; +} +.locks { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 12px; +} +.lock { + background: white; + border: 2px solid #ddd; + border-radius: 8px; + padding: 12px; + text-align: center; +} +.lock.on { + background: #4caf50; + border-color: #388e3c; + color: white; +} +.lock-name { + display: block; + font-weight: bold; +} +.note { + color: #666; + font-size: 14px; +} diff --git a/examples/angular/injectKeyLockState/tsconfig.json b/examples/angular/injectKeyLockState/tsconfig.json new file mode 100644 index 000000000..f12677ca7 --- /dev/null +++ b/examples/angular/injectKeyLockState/tsconfig.json @@ -0,0 +1,29 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "outDir": "./out-tsc/app", + "lib": ["ES2022", "dom"], + "strict": true, + "noImplicitOverride": true, + "noPropertyAccessFromIndexSignature": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "skipLibCheck": true, + "isolatedModules": true, + "esModuleInterop": true, + "experimentalDecorators": true, + "moduleResolution": "bundler", + "importHelpers": true, + "target": "ES2022", + "module": "ES2022", + "types": [] + }, + "angularCompilerOptions": { + "enableI18nLegacyMessageIdFormat": false, + "strictInjectionParameters": true, + "strictInputAccessModifiers": true, + "strictTemplates": true + }, + "files": ["src/main.ts"], + "include": ["src/**/*.d.ts"] +} diff --git a/examples/ember/useKeyLockState/app/app.css b/examples/ember/useKeyLockState/app/app.css new file mode 100644 index 000000000..32fdb4630 --- /dev/null +++ b/examples/ember/useKeyLockState/app/app.css @@ -0,0 +1,58 @@ +* { + box-sizing: border-box; +} +body { + margin: 0; + font-family: system-ui, -apple-system, sans-serif; + background: #f5f5f5; + color: #333; +} +.app { + max-width: 600px; + margin: 0 auto; + padding: 20px; +} +h1 { + color: #0066cc; +} +.field { + display: flex; + flex-direction: column; + gap: 6px; + margin-bottom: 24px; +} +.field input { + padding: 8px; + font-size: 16px; +} +.warning { + min-height: 1.5em; + margin: 0; + color: #b45309; + font-weight: bold; +} +.locks { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 12px; +} +.lock { + background: white; + border: 2px solid #ddd; + border-radius: 8px; + padding: 12px; + text-align: center; +} +.lock.on { + background: #4caf50; + border-color: #388e3c; + color: white; +} +.lock-name { + display: block; + font-weight: bold; +} +.note { + color: #666; + font-size: 14px; +} diff --git a/examples/ember/useKeyLockState/app/app.ts b/examples/ember/useKeyLockState/app/app.ts new file mode 100644 index 000000000..2100f91ce --- /dev/null +++ b/examples/ember/useKeyLockState/app/app.ts @@ -0,0 +1,8 @@ +import Application from 'ember-strict-application-resolver' +import './app.css' +export default class App extends Application { + modules = { + ...import.meta.glob('./router.*', { eager: true }), + ...import.meta.glob('./templates/**/*', { eager: true }), + } +} diff --git a/examples/ember/useKeyLockState/app/config.ts b/examples/ember/useKeyLockState/app/config.ts new file mode 100644 index 000000000..8b0d33268 --- /dev/null +++ b/examples/ember/useKeyLockState/app/config.ts @@ -0,0 +1,17 @@ +interface Config { + environment: 'development' | 'production' + locationType: 'history' | 'hash' | 'none' | 'auto' + rootURL: string + EmberENV?: Record + APP: Record & { rootElement?: string; autoboot?: boolean } +} + +const ENV: Config = { + environment: import.meta.env.DEV ? 'development' : 'production', + rootURL: '/', + locationType: 'history', + EmberENV: {}, + APP: {}, +} + +export default ENV diff --git a/examples/ember/useKeyLockState/app/router.ts b/examples/ember/useKeyLockState/app/router.ts new file mode 100644 index 000000000..96025b825 --- /dev/null +++ b/examples/ember/useKeyLockState/app/router.ts @@ -0,0 +1,6 @@ +import Router from '@embroider/router' +export default class AppRouter extends Router { + location = 'none' + rootURL = '/' +} +AppRouter.map(function () {}) diff --git a/examples/ember/useKeyLockState/app/templates/application.gts b/examples/ember/useKeyLockState/app/templates/application.gts new file mode 100644 index 000000000..0115597d9 --- /dev/null +++ b/examples/ember/useKeyLockState/app/templates/application.gts @@ -0,0 +1,55 @@ +import Component from '@glimmer/component' + +import { useKeyLockState } from '@tanstack/ember-hotkeys' + +const describe = (state: boolean | null) => { + if (state === null) return 'Unknown' + return state ? 'On' : 'Off' +} + +class App extends Component { + capsLock = useKeyLockState(this, 'CapsLock') + numLock = useKeyLockState(this, 'NumLock') + scrollLock = useKeyLockState(this, 'ScrollLock') + + get locks() { + return [ + { name: 'Caps Lock', state: this.capsLock.value }, + { name: 'Num Lock', state: this.numLock.value }, + { name: 'Scroll Lock', state: this.scrollLock.value }, + ] + } + + get isCapsLockOn() { + return this.capsLock.value === true + } + + +} +export default App diff --git a/examples/ember/useKeyLockState/babel.config.js b/examples/ember/useKeyLockState/babel.config.js new file mode 100644 index 000000000..10915e429 --- /dev/null +++ b/examples/ember/useKeyLockState/babel.config.js @@ -0,0 +1,49 @@ +import { buildMacros } from '@embroider/macros/babel' + +const macros = buildMacros({ + configure(config) { + if (process.env.EMBER_ENV === 'test') { + config.enableRuntimeMode() + } + }, +}) + +export default { + plugins: [ + [ + '@babel/plugin-transform-typescript', + { + allExtensions: true, + onlyRemoveTypeImports: true, + allowDeclareFields: true, + }, + ], + [ + 'babel-plugin-ember-template-compilation', + { + transforms: [...macros.templateMacros], + }, + ], + [ + 'module:decorator-transforms', + { + runtime: { + import: import.meta.resolve('decorator-transforms/runtime-esm'), + }, + }, + ], + [ + '@babel/plugin-transform-runtime', + { + absoluteRuntime: import.meta.dirname, + useESModules: true, + regenerator: false, + }, + ], + ...macros.babelMacros, + ], + + generatorOpts: { + compact: false, + }, +} diff --git a/examples/ember/useKeyLockState/index.html b/examples/ember/useKeyLockState/index.html new file mode 100644 index 000000000..a7d00d4cb --- /dev/null +++ b/examples/ember/useKeyLockState/index.html @@ -0,0 +1,17 @@ + + + + + TanStack Hotkeys | Ember useKeyLockState + + + + + + + diff --git a/examples/ember/useKeyLockState/package.json b/examples/ember/useKeyLockState/package.json new file mode 100644 index 000000000..f3720dae3 --- /dev/null +++ b/examples/ember/useKeyLockState/package.json @@ -0,0 +1,55 @@ +{ + "name": "@tanstack/hotkeys-example-ember-use-key-lock-state", + "private": true, + "type": "module", + "imports": { + "#app/*": "./app/*", + "#config": "./app/config.ts", + "#components/*": "./app/components/*", + "#services/*": "./app/services/*", + "#test-helpers/*": "./tests/helpers/*", + "#utils/*": "./app/utils/*" + }, + "exports": { + "./tests/*": "./tests/*", + "./*": "./app/*" + }, + "scripts": { + "dev": "vite --port=3069", + "build": "vite build", + "serve": "vite preview", + "start": "vite", + "test:types": "ember-tsc --noEmit" + }, + "dependencies": { + "@embroider/macros": "1.21.4", + "@embroider/router": "3.0.6", + "@glimmer/component": "2.2.1", + "@tanstack/ember-hotkeys": "workspace:*", + "decorator-transforms": "2.4.0", + "ember-source": "7.4.0", + "ember-strict-application-resolver": "0.1.1" + }, + "devDependencies": { + "@babel/core": "7.29.13", + "@babel/plugin-transform-runtime": "7.29.7", + "@babel/plugin-transform-typescript": "7.29.9", + "@babel/runtime": "7.29.13", + "@ember/app-tsconfig": "2.1.0", + "@embroider/core": "4.6.10", + "@glint/ember-tsc": "1.14.3", + "@glint/template": "1.11.1", + "@glint/tsserver-plugin": "2.7.16", + "@nullvoxpopuli/ember-vite": "1.4.0", + "@rollup/plugin-babel": "7.1.0", + "babel-plugin-ember-template-compilation": "4.0.1", + "typescript": "6.0.3", + "vite": "^8.3.7" + }, + "engines": { + "node": ">= 24" + }, + "ember": { + "edition": "octane" + } +} diff --git a/examples/ember/useKeyLockState/tsconfig.json b/examples/ember/useKeyLockState/tsconfig.json new file mode 100644 index 000000000..e496a7825 --- /dev/null +++ b/examples/ember/useKeyLockState/tsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "@ember/app-tsconfig", + "compilerOptions": { + "lib": ["ES2025", "DOM", "DOM.Iterable"], + "allowJs": true, + "types": [ + "ember-source/types", + "@embroider/core/virtual", + "vite/client", + "@glint/ember-tsc/types" + ] + } +} diff --git a/examples/ember/useKeyLockState/vite.config.mjs b/examples/ember/useKeyLockState/vite.config.mjs new file mode 100644 index 000000000..4c6f80eed --- /dev/null +++ b/examples/ember/useKeyLockState/vite.config.mjs @@ -0,0 +1,10 @@ +import { ember } from '@nullvoxpopuli/ember-vite' +import { defineConfig } from 'vite' + +export default defineConfig({ + server: { + port: 7777, + allowedHosts: true, + }, + plugins: [ember()], +}) diff --git a/examples/lit/key-lock-state/index.html b/examples/lit/key-lock-state/index.html new file mode 100644 index 000000000..25ce784f9 --- /dev/null +++ b/examples/lit/key-lock-state/index.html @@ -0,0 +1,12 @@ + + + + + + key-lock-state - TanStack Hotkey Lit example + + + + + + diff --git a/examples/lit/key-lock-state/package.json b/examples/lit/key-lock-state/package.json new file mode 100644 index 000000000..6754ca6cb --- /dev/null +++ b/examples/lit/key-lock-state/package.json @@ -0,0 +1,21 @@ +{ + "name": "@tanstack/hotkeys-example-lit-key-lock-state", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --port=3069", + "build": "vite build", + "preview": "vite preview", + "lint": "oxlint .", + "lint:fix": "oxlint . --fix", + "test:types": "tsc" + }, + "dependencies": { + "@tanstack/lit-hotkeys": "0.28.0", + "lit": "^3.3.3" + }, + "devDependencies": { + "typescript": "6.0.3", + "vite": "^8.3.7" + } +} diff --git a/examples/lit/key-lock-state/src/app.ts b/examples/lit/key-lock-state/src/app.ts new file mode 100644 index 000000000..e3ac2d2d1 --- /dev/null +++ b/examples/lit/key-lock-state/src/app.ts @@ -0,0 +1,79 @@ +import { KeyLockStateController } from '@tanstack/lit-hotkeys' +import { LitElement, css, html, unsafeCSS } from 'lit' +import { customElement } from 'lit/decorators.js' +import appStyles from './index.css?raw' + +function describe(state: boolean | null) { + if (state === null) return 'Unknown' + return state ? 'On' : 'Off' +} + +@customElement('my-app') +export class MyApp extends LitElement { + static styles = [ + css` + :host { + display: block; + margin: 0; + font-family: system-ui, -apple-system, sans-serif; + background: #f5f5f5; + color: #333; + box-sizing: border-box; + } + :host *, + :host *::before, + :host *::after { + box-sizing: border-box; + } + `, + unsafeCSS(appStyles), + ] + + private capsLock = new KeyLockStateController(this, 'CapsLock') + private numLock = new KeyLockStateController(this, 'NumLock') + private scrollLock = new KeyLockStateController(this, 'ScrollLock') + + render() { + const locks = [ + { name: 'Caps Lock', state: this.capsLock.value }, + { name: 'Num Lock', state: this.numLock.value }, + { name: 'Scroll Lock', state: this.scrollLock.value }, + ] + + return html` +
+

KeyLockStateController

+ +
+ + +

+ ${this.capsLock.value === true ? 'Caps Lock is on' : ''} +

+
+ +
+ ${locks.map( + (lock) => html` +
+ ${lock.name} + ${describe(lock.state)} +
+ `, + )} +
+ +

+ Unknown until you press a key, click, or move the mouse. Num Lock and + Scroll Lock stay unknown on macOS. +

+
+ ` + } +} + +declare global { + interface HTMLElementTagNameMap { + 'my-app': MyApp + } +} diff --git a/examples/lit/key-lock-state/src/index.css b/examples/lit/key-lock-state/src/index.css new file mode 100644 index 000000000..32fdb4630 --- /dev/null +++ b/examples/lit/key-lock-state/src/index.css @@ -0,0 +1,58 @@ +* { + box-sizing: border-box; +} +body { + margin: 0; + font-family: system-ui, -apple-system, sans-serif; + background: #f5f5f5; + color: #333; +} +.app { + max-width: 600px; + margin: 0 auto; + padding: 20px; +} +h1 { + color: #0066cc; +} +.field { + display: flex; + flex-direction: column; + gap: 6px; + margin-bottom: 24px; +} +.field input { + padding: 8px; + font-size: 16px; +} +.warning { + min-height: 1.5em; + margin: 0; + color: #b45309; + font-weight: bold; +} +.locks { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 12px; +} +.lock { + background: white; + border: 2px solid #ddd; + border-radius: 8px; + padding: 12px; + text-align: center; +} +.lock.on { + background: #4caf50; + border-color: #388e3c; + color: white; +} +.lock-name { + display: block; + font-weight: bold; +} +.note { + color: #666; + font-size: 14px; +} diff --git a/examples/lit/key-lock-state/tsconfig.json b/examples/lit/key-lock-state/tsconfig.json new file mode 100644 index 000000000..1b43085f8 --- /dev/null +++ b/examples/lit/key-lock-state/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "target": "ES2022", + "experimentalDecorators": true, + "useDefineForClassFields": false, + "module": "ESNext", + "lib": ["ES2022", "DOM", "DOM.Iterable"], + "types": ["vite/client"], + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "erasableSyntaxOnly": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedSideEffectImports": true + }, + "include": ["src"] +} diff --git a/examples/octane/useKeyLockState/index.html b/examples/octane/useKeyLockState/index.html new file mode 100644 index 000000000..e478abda3 --- /dev/null +++ b/examples/octane/useKeyLockState/index.html @@ -0,0 +1,12 @@ + + + + + + TanStack Hotkeys | Octane useKeyLockState + + +
+ + + diff --git a/examples/octane/useKeyLockState/package.json b/examples/octane/useKeyLockState/package.json new file mode 100644 index 000000000..306e1f17a --- /dev/null +++ b/examples/octane/useKeyLockState/package.json @@ -0,0 +1,22 @@ +{ + "name": "@tanstack/hotkeys-example-octane-use-key-lock-state", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --port=3069", + "build": "vite build", + "preview": "vite preview", + "lint": "tsrx-tsc --noEmit", + "test:types": "tsrx-tsc --noEmit" + }, + "dependencies": { + "@tanstack/octane-hotkeys": "workspace:*", + "octane": "0.16.7" + }, + "devDependencies": { + "@tsrx/oxc": "0.23.0", + "@tsrx/typescript-plugin": "^0.6.3", + "typescript": "6.0.3", + "vite": "^8.3.7" + } +} diff --git a/examples/octane/useKeyLockState/src/index.css b/examples/octane/useKeyLockState/src/index.css new file mode 100644 index 000000000..32fdb4630 --- /dev/null +++ b/examples/octane/useKeyLockState/src/index.css @@ -0,0 +1,58 @@ +* { + box-sizing: border-box; +} +body { + margin: 0; + font-family: system-ui, -apple-system, sans-serif; + background: #f5f5f5; + color: #333; +} +.app { + max-width: 600px; + margin: 0 auto; + padding: 20px; +} +h1 { + color: #0066cc; +} +.field { + display: flex; + flex-direction: column; + gap: 6px; + margin-bottom: 24px; +} +.field input { + padding: 8px; + font-size: 16px; +} +.warning { + min-height: 1.5em; + margin: 0; + color: #b45309; + font-weight: bold; +} +.locks { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 12px; +} +.lock { + background: white; + border: 2px solid #ddd; + border-radius: 8px; + padding: 12px; + text-align: center; +} +.lock.on { + background: #4caf50; + border-color: #388e3c; + color: white; +} +.lock-name { + display: block; + font-weight: bold; +} +.note { + color: #666; + font-size: 14px; +} diff --git a/examples/octane/useKeyLockState/src/main.tsrx b/examples/octane/useKeyLockState/src/main.tsrx new file mode 100644 index 000000000..bcf700b0a --- /dev/null +++ b/examples/octane/useKeyLockState/src/main.tsrx @@ -0,0 +1,55 @@ +import { createRoot } from 'octane' + +import { HotkeysProvider, useKeyLockState } from '@tanstack/octane-hotkeys' + +import './index.css' + +function describe(state: boolean | null) { + if (state === null) return 'Unknown' + return state ? 'On' : 'Off' +} + +function App() @{ + const capsLock = useKeyLockState('CapsLock') + const numLock = useKeyLockState('NumLock') + const scrollLock = useKeyLockState('ScrollLock') +
+

useKeyLockState

+ +
+ + +

+ {capsLock === true ? 'Caps Lock is on' : ''} +

+
+ +
+
+ Caps Lock + {describe(capsLock)} +
+
+ Num Lock + {describe(numLock)} +
+
+ Scroll Lock + {describe(scrollLock)} +
+
+ +

+ Unknown until you press a key, click, or move the mouse. Num Lock and + Scroll Lock stay unknown on macOS. +

+
+} + +function Root() @{ + +} + +const root = createRoot(document.getElementById('root')!) +root.render(Root) +import.meta.hot?.dispose(() => root.unmount()) diff --git a/examples/octane/useKeyLockState/tsconfig.json b/examples/octane/useKeyLockState/tsconfig.json new file mode 100644 index 000000000..2e744375e --- /dev/null +++ b/examples/octane/useKeyLockState/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.json", + "compilerOptions": { + "types": ["vite/client"], + "jsx": "react-jsx", + "jsxImportSource": "octane", + "allowImportingTsExtensions": true + }, + "include": ["src", "vite.config.ts"] +} diff --git a/examples/octane/useKeyLockState/vite.config.ts b/examples/octane/useKeyLockState/vite.config.ts new file mode 100644 index 000000000..f9ae3c27b --- /dev/null +++ b/examples/octane/useKeyLockState/vite.config.ts @@ -0,0 +1,3 @@ +import { octane } from 'octane/compiler/vite' +import { defineConfig } from 'vite' +export default defineConfig({ plugins: [octane()] }) diff --git a/examples/preact/useKeyLockState/index.html b/examples/preact/useKeyLockState/index.html new file mode 100644 index 000000000..fd702d532 --- /dev/null +++ b/examples/preact/useKeyLockState/index.html @@ -0,0 +1,14 @@ + + + + + + + useKeyLockState - TanStack Hotkeys Preact Example + + + +
+ + + diff --git a/examples/preact/useKeyLockState/package.json b/examples/preact/useKeyLockState/package.json new file mode 100644 index 000000000..591f64d10 --- /dev/null +++ b/examples/preact/useKeyLockState/package.json @@ -0,0 +1,24 @@ +{ + "name": "@tanstack/hotkeys-example-preact-use-key-lock-state", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --port=3069", + "build": "vite build", + "preview": "vite preview", + "lint": "oxlint .", + "lint:fix": "oxlint . --fix", + "test:types": "tsc" + }, + "dependencies": { + "@tanstack/preact-hotkeys": "^0.25.0", + "preact": "^11.2.0" + }, + "devDependencies": { + "@preact/preset-vite": "^2.10.6", + "@tanstack/preact-devtools": "0.10.16", + "@tanstack/preact-hotkeys-devtools": "^0.13.19", + "typescript": "6.0.3", + "vite": "^8.3.7" + } +} diff --git a/examples/preact/useKeyLockState/src/index.css b/examples/preact/useKeyLockState/src/index.css new file mode 100644 index 000000000..32fdb4630 --- /dev/null +++ b/examples/preact/useKeyLockState/src/index.css @@ -0,0 +1,58 @@ +* { + box-sizing: border-box; +} +body { + margin: 0; + font-family: system-ui, -apple-system, sans-serif; + background: #f5f5f5; + color: #333; +} +.app { + max-width: 600px; + margin: 0 auto; + padding: 20px; +} +h1 { + color: #0066cc; +} +.field { + display: flex; + flex-direction: column; + gap: 6px; + margin-bottom: 24px; +} +.field input { + padding: 8px; + font-size: 16px; +} +.warning { + min-height: 1.5em; + margin: 0; + color: #b45309; + font-weight: bold; +} +.locks { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 12px; +} +.lock { + background: white; + border: 2px solid #ddd; + border-radius: 8px; + padding: 12px; + text-align: center; +} +.lock.on { + background: #4caf50; + border-color: #388e3c; + color: white; +} +.lock-name { + display: block; + font-weight: bold; +} +.note { + color: #666; + font-size: 14px; +} diff --git a/examples/preact/useKeyLockState/src/index.tsx b/examples/preact/useKeyLockState/src/index.tsx new file mode 100644 index 000000000..8481e149c --- /dev/null +++ b/examples/preact/useKeyLockState/src/index.tsx @@ -0,0 +1,64 @@ +import { TanStackDevtools } from '@tanstack/preact-devtools' +import { HotkeysProvider, useKeyLockState } from '@tanstack/preact-hotkeys' +import { hotkeysDevtoolsPlugin } from '@tanstack/preact-hotkeys-devtools' +import { render } from 'preact' +import './index.css' + +function describe(state: boolean | null) { + if (state === null) return 'Unknown' + return state ? 'On' : 'Off' +} + +function App() { + const capsLock = useKeyLockState('CapsLock') + const numLock = useKeyLockState('NumLock') + const scrollLock = useKeyLockState('ScrollLock') + + const locks = [ + { name: 'Caps Lock', state: capsLock }, + { name: 'Num Lock', state: numLock }, + { name: 'Scroll Lock', state: scrollLock }, + ] + + return ( +
+

useKeyLockState

+ +
+ + +

+ {capsLock === true ? 'Caps Lock is on' : ''} +

+
+ +
+ {locks.map((lock) => ( +
+ {lock.name} + {describe(lock.state)} +
+ ))} +
+ +

+ Unknown until you press a key, click, or move the mouse. Num Lock and + Scroll Lock stay unknown on macOS. +

+
+ ) +} + +// TanStackDevtools as sibling of App to avoid Preact hook errors when hotkeys update state +const devtoolsPlugins = [hotkeysDevtoolsPlugin()] + +render( + + + + , + document.getElementById('root')!, +) diff --git a/examples/preact/useKeyLockState/tsconfig.json b/examples/preact/useKeyLockState/tsconfig.json new file mode 100644 index 000000000..8ca4138ba --- /dev/null +++ b/examples/preact/useKeyLockState/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": ["DOM", "DOM.Iterable", "ES2022"], + "module": "ESNext", + "skipLibCheck": true, + "moduleResolution": "Bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + "jsxImportSource": "preact", + "types": ["vite/client"] + }, + "include": ["src", "vite.config.ts"] +} diff --git a/examples/preact/useKeyLockState/vite.config.ts b/examples/preact/useKeyLockState/vite.config.ts new file mode 100644 index 000000000..8b05b36ea --- /dev/null +++ b/examples/preact/useKeyLockState/vite.config.ts @@ -0,0 +1,6 @@ +import preact from '@preact/preset-vite' +import { defineConfig } from 'vite' + +export default defineConfig({ + plugins: [preact()], +}) diff --git a/examples/react/useKeyLockState/index.html b/examples/react/useKeyLockState/index.html new file mode 100644 index 000000000..17fbf6b7c --- /dev/null +++ b/examples/react/useKeyLockState/index.html @@ -0,0 +1,15 @@ + + + + + + + useKeyLockState - TanStack Hotkeys React Example + + + +
+ + + + diff --git a/examples/react/useKeyLockState/package.json b/examples/react/useKeyLockState/package.json new file mode 100644 index 000000000..2df5bf000 --- /dev/null +++ b/examples/react/useKeyLockState/package.json @@ -0,0 +1,27 @@ +{ + "name": "@tanstack/hotkeys-example-react-use-key-lock-state", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --port=3069", + "build": "vite build", + "preview": "vite preview", + "lint": "oxlint .", + "lint:fix": "oxlint . --fix", + "test:types": "tsc" + }, + "dependencies": { + "@tanstack/react-hotkeys": "^0.28.0", + "react": "^19.3.1", + "react-dom": "^19.3.1" + }, + "devDependencies": { + "@tanstack/react-devtools": "0.10.15", + "@tanstack/react-hotkeys-devtools": "^0.14.19", + "@types/react": "^19.3.0", + "@types/react-dom": "^19.3.0", + "@vitejs/plugin-react": "^6.3.0", + "typescript": "6.0.3", + "vite": "^8.3.7" + } +} diff --git a/examples/react/useKeyLockState/src/index.css b/examples/react/useKeyLockState/src/index.css new file mode 100644 index 000000000..32fdb4630 --- /dev/null +++ b/examples/react/useKeyLockState/src/index.css @@ -0,0 +1,58 @@ +* { + box-sizing: border-box; +} +body { + margin: 0; + font-family: system-ui, -apple-system, sans-serif; + background: #f5f5f5; + color: #333; +} +.app { + max-width: 600px; + margin: 0 auto; + padding: 20px; +} +h1 { + color: #0066cc; +} +.field { + display: flex; + flex-direction: column; + gap: 6px; + margin-bottom: 24px; +} +.field input { + padding: 8px; + font-size: 16px; +} +.warning { + min-height: 1.5em; + margin: 0; + color: #b45309; + font-weight: bold; +} +.locks { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 12px; +} +.lock { + background: white; + border: 2px solid #ddd; + border-radius: 8px; + padding: 12px; + text-align: center; +} +.lock.on { + background: #4caf50; + border-color: #388e3c; + color: white; +} +.lock-name { + display: block; + font-weight: bold; +} +.note { + color: #666; + font-size: 14px; +} diff --git a/examples/react/useKeyLockState/src/index.tsx b/examples/react/useKeyLockState/src/index.tsx new file mode 100644 index 000000000..8757ea49b --- /dev/null +++ b/examples/react/useKeyLockState/src/index.tsx @@ -0,0 +1,63 @@ +import { TanStackDevtools } from '@tanstack/react-devtools' +import { HotkeysProvider, useKeyLockState } from '@tanstack/react-hotkeys' +import { hotkeysDevtoolsPlugin } from '@tanstack/react-hotkeys-devtools' +import ReactDOM from 'react-dom/client' +import './index.css' + +const devtoolsPlugins = [hotkeysDevtoolsPlugin()] + +function describe(state: boolean | null) { + if (state === null) return 'Unknown' + return state ? 'On' : 'Off' +} + +function App() { + const capsLock = useKeyLockState('CapsLock') + const numLock = useKeyLockState('NumLock') + const scrollLock = useKeyLockState('ScrollLock') + + const locks = [ + { name: 'Caps Lock', state: capsLock }, + { name: 'Num Lock', state: numLock }, + { name: 'Scroll Lock', state: scrollLock }, + ] + + return ( +
+

useKeyLockState

+ +
+ + +

+ {capsLock === true ? 'Caps Lock is on' : ''} +

+
+ +
+ {locks.map((lock) => ( +
+ {lock.name} + {describe(lock.state)} +
+ ))} +
+ +

+ Unknown until you press a key, click, or move the mouse. Num Lock and + Scroll Lock stay unknown on macOS. +

+ + +
+ ) +} + +ReactDOM.createRoot(document.getElementById('root')!).render( + + + , +) diff --git a/examples/react/useKeyLockState/tsconfig.json b/examples/react/useKeyLockState/tsconfig.json new file mode 100644 index 000000000..1fea9c3d9 --- /dev/null +++ b/examples/react/useKeyLockState/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": ["DOM", "DOM.Iterable", "ES2022"], + "module": "ESNext", + "skipLibCheck": true, + "moduleResolution": "Bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + "types": ["vite/client"] + }, + "include": ["src", "vite.config.ts"] +} diff --git a/examples/react/useKeyLockState/vite.config.ts b/examples/react/useKeyLockState/vite.config.ts new file mode 100644 index 000000000..ae745180e --- /dev/null +++ b/examples/react/useKeyLockState/vite.config.ts @@ -0,0 +1,6 @@ +import react from '@vitejs/plugin-react' +import { defineConfig } from 'vite' + +export default defineConfig({ + plugins: [react()], +}) diff --git a/examples/solid/createKeyLockState/index.html b/examples/solid/createKeyLockState/index.html new file mode 100644 index 000000000..9ba44c87b --- /dev/null +++ b/examples/solid/createKeyLockState/index.html @@ -0,0 +1,11 @@ + + + + + createKeyLockState - TanStack Hotkeys Solid Example + + +
+ + + diff --git a/examples/solid/createKeyLockState/package.json b/examples/solid/createKeyLockState/package.json new file mode 100644 index 000000000..d53bcc5fe --- /dev/null +++ b/examples/solid/createKeyLockState/package.json @@ -0,0 +1,21 @@ +{ + "name": "@tanstack/hotkeys-example-solid-create-key-lock-state", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --port=3069", + "build": "vite build", + "preview": "vite preview" + }, + "dependencies": { + "@solidjs/web": "^2.0.3", + "@tanstack/solid-devtools": "0.9.0", + "@tanstack/solid-hotkeys": "^0.27.0", + "@tanstack/solid-hotkeys-devtools": "^0.14.4", + "solid-js": "^2.0.3" + }, + "devDependencies": { + "@solidjs/vite-plugin": "^3.0.1", + "vite": "^8.3.7" + } +} diff --git a/examples/solid/createKeyLockState/src/index.css b/examples/solid/createKeyLockState/src/index.css new file mode 100644 index 000000000..32fdb4630 --- /dev/null +++ b/examples/solid/createKeyLockState/src/index.css @@ -0,0 +1,58 @@ +* { + box-sizing: border-box; +} +body { + margin: 0; + font-family: system-ui, -apple-system, sans-serif; + background: #f5f5f5; + color: #333; +} +.app { + max-width: 600px; + margin: 0 auto; + padding: 20px; +} +h1 { + color: #0066cc; +} +.field { + display: flex; + flex-direction: column; + gap: 6px; + margin-bottom: 24px; +} +.field input { + padding: 8px; + font-size: 16px; +} +.warning { + min-height: 1.5em; + margin: 0; + color: #b45309; + font-weight: bold; +} +.locks { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 12px; +} +.lock { + background: white; + border: 2px solid #ddd; + border-radius: 8px; + padding: 12px; + text-align: center; +} +.lock.on { + background: #4caf50; + border-color: #388e3c; + color: white; +} +.lock-name { + display: block; + font-weight: bold; +} +.note { + color: #666; + font-size: 14px; +} diff --git a/examples/solid/createKeyLockState/src/index.tsx b/examples/solid/createKeyLockState/src/index.tsx new file mode 100644 index 000000000..5e7010eeb --- /dev/null +++ b/examples/solid/createKeyLockState/src/index.tsx @@ -0,0 +1,64 @@ +/* @refresh reload */ + +import { render } from '@solidjs/web' +import { TanStackDevtools } from '@tanstack/solid-devtools' +import { createKeyLockState, HotkeysProvider } from '@tanstack/solid-hotkeys' +import { hotkeysDevtoolsPlugin } from '@tanstack/solid-hotkeys-devtools' +import './index.css' + +function describe(state: boolean | null) { + if (state === null) return 'Unknown' + return state ? 'On' : 'Off' +} + +function App() { + const capsLock = createKeyLockState('CapsLock') + const numLock = createKeyLockState('NumLock') + const scrollLock = createKeyLockState('ScrollLock') + + return ( +
+

createKeyLockState

+ +
+ + +

+ {capsLock() === true ? 'Caps Lock is on' : ''} +

+
+ +
+
+ Caps Lock + {describe(capsLock())} +
+
+ Num Lock + {describe(numLock())} +
+
+ Scroll Lock + {describe(scrollLock())} +
+
+ +

+ Unknown until you press a key, click, or move the mouse. Num Lock and + Scroll Lock stay unknown on macOS. +

+ + +
+ ) +} + +const root = document.getElementById('root')! +render( + () => ( + + + + ), + root, +) diff --git a/examples/solid/createKeyLockState/tsconfig.json b/examples/solid/createKeyLockState/tsconfig.json new file mode 100644 index 000000000..4e4b6b440 --- /dev/null +++ b/examples/solid/createKeyLockState/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": ["DOM", "DOM.Iterable", "ES2022"], + "module": "ESNext", + "skipLibCheck": true, + "moduleResolution": "Bundler", + "jsx": "preserve", + "jsxImportSource": "@solidjs/web", + "strict": true, + "types": ["vite/client", "solid-js"] + }, + "include": ["src", "vite.config.ts"] +} diff --git a/examples/solid/createKeyLockState/vite.config.ts b/examples/solid/createKeyLockState/vite.config.ts new file mode 100644 index 000000000..348e82760 --- /dev/null +++ b/examples/solid/createKeyLockState/vite.config.ts @@ -0,0 +1,6 @@ +import solid from '@solidjs/vite-plugin' +import { defineConfig } from 'vite' + +export default defineConfig({ + plugins: [solid()], +}) diff --git a/examples/svelte/get-key-lock-state/.gitignore b/examples/svelte/get-key-lock-state/.gitignore new file mode 100644 index 000000000..3b462cb0c --- /dev/null +++ b/examples/svelte/get-key-lock-state/.gitignore @@ -0,0 +1,23 @@ +node_modules + +# Output +.output +.vercel +.netlify +.wrangler +/.svelte-kit +/build + +# OS +.DS_Store +Thumbs.db + +# Env +.env +.env.* +!.env.example +!.env.test + +# Vite +vite.config.js.timestamp-* +vite.config.ts.timestamp-* diff --git a/examples/svelte/get-key-lock-state/index.html b/examples/svelte/get-key-lock-state/index.html new file mode 100644 index 000000000..4a1a95d3f --- /dev/null +++ b/examples/svelte/get-key-lock-state/index.html @@ -0,0 +1,14 @@ + + + + + + + getKeyLockState - TanStack Hotkeys Svelte Example + + + +
+ + + diff --git a/examples/svelte/get-key-lock-state/package.json b/examples/svelte/get-key-lock-state/package.json new file mode 100644 index 000000000..a7a63b957 --- /dev/null +++ b/examples/svelte/get-key-lock-state/package.json @@ -0,0 +1,19 @@ +{ + "name": "@tanstack/hotkeys-example-svelte-get-key-lock-state", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --port=3069" + }, + "dependencies": { + "@tanstack/svelte-devtools": "^0.1.9", + "@tanstack/svelte-hotkeys": "0.26.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.19", + "svelte": "^5.57.3" + }, + "devDependencies": { + "@sveltejs/vite-plugin-svelte": "^7.3.1", + "typescript": "6.0.3", + "vite": "^8.3.7" + } +} diff --git a/examples/svelte/get-key-lock-state/src/App.svelte b/examples/svelte/get-key-lock-state/src/App.svelte new file mode 100644 index 000000000..c4f8b57e0 --- /dev/null +++ b/examples/svelte/get-key-lock-state/src/App.svelte @@ -0,0 +1,44 @@ + + +
+

getKeyLockState

+ +
+ + +

+ {capsLock.value === true ? 'Caps Lock is on' : ''} +

+
+ +
+ {#each locks as lock (lock.name)} +
+ {lock.name} + {describe(lock.state.value)} +
+ {/each} +
+ +

+ Unknown until you press a key, click, or move the mouse. Num Lock and Scroll + Lock stay unknown on macOS. +

+
diff --git a/examples/svelte/get-key-lock-state/src/Root.svelte b/examples/svelte/get-key-lock-state/src/Root.svelte new file mode 100644 index 000000000..4ca60bda1 --- /dev/null +++ b/examples/svelte/get-key-lock-state/src/Root.svelte @@ -0,0 +1,11 @@ + + + + +{#if import.meta.env.DEV} + +{/if} diff --git a/examples/svelte/get-key-lock-state/src/index.css b/examples/svelte/get-key-lock-state/src/index.css new file mode 100644 index 000000000..32fdb4630 --- /dev/null +++ b/examples/svelte/get-key-lock-state/src/index.css @@ -0,0 +1,58 @@ +* { + box-sizing: border-box; +} +body { + margin: 0; + font-family: system-ui, -apple-system, sans-serif; + background: #f5f5f5; + color: #333; +} +.app { + max-width: 600px; + margin: 0 auto; + padding: 20px; +} +h1 { + color: #0066cc; +} +.field { + display: flex; + flex-direction: column; + gap: 6px; + margin-bottom: 24px; +} +.field input { + padding: 8px; + font-size: 16px; +} +.warning { + min-height: 1.5em; + margin: 0; + color: #b45309; + font-weight: bold; +} +.locks { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 12px; +} +.lock { + background: white; + border: 2px solid #ddd; + border-radius: 8px; + padding: 12px; + text-align: center; +} +.lock.on { + background: #4caf50; + border-color: #388e3c; + color: white; +} +.lock-name { + display: block; + font-weight: bold; +} +.note { + color: #666; + font-size: 14px; +} diff --git a/examples/svelte/get-key-lock-state/src/main.ts b/examples/svelte/get-key-lock-state/src/main.ts new file mode 100644 index 000000000..935790013 --- /dev/null +++ b/examples/svelte/get-key-lock-state/src/main.ts @@ -0,0 +1,5 @@ +import { mount } from 'svelte' +import Root from './Root.svelte' +import './index.css' + +mount(Root, { target: document.getElementById('app')! }) diff --git a/examples/svelte/get-key-lock-state/static/robots.txt b/examples/svelte/get-key-lock-state/static/robots.txt new file mode 100644 index 000000000..b6dd6670c --- /dev/null +++ b/examples/svelte/get-key-lock-state/static/robots.txt @@ -0,0 +1,3 @@ +# allow crawling everything by default +User-agent: * +Disallow: diff --git a/examples/svelte/get-key-lock-state/svelte.config.js b/examples/svelte/get-key-lock-state/svelte.config.js new file mode 100644 index 000000000..b30b6572f --- /dev/null +++ b/examples/svelte/get-key-lock-state/svelte.config.js @@ -0,0 +1,11 @@ +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' + +/** @type {import('svelte').Config} */ +const config = { + preprocess: vitePreprocess(), + compilerOptions: { + runes: true, + }, +} + +export default config diff --git a/examples/svelte/get-key-lock-state/tsconfig.json b/examples/svelte/get-key-lock-state/tsconfig.json new file mode 100644 index 000000000..ef64b61b8 --- /dev/null +++ b/examples/svelte/get-key-lock-state/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../../tsconfig.json", + "compilerOptions": { + "moduleResolution": "bundler", + "types": ["vite/client"] + }, + "include": ["src"] +} diff --git a/examples/svelte/get-key-lock-state/vite.config.ts b/examples/svelte/get-key-lock-state/vite.config.ts new file mode 100644 index 000000000..8ad4e192c --- /dev/null +++ b/examples/svelte/get-key-lock-state/vite.config.ts @@ -0,0 +1,6 @@ +import { svelte } from '@sveltejs/vite-plugin-svelte' +import { defineConfig } from 'vite' + +export default defineConfig({ + plugins: [svelte()], +}) diff --git a/examples/vue/useKeyLockState/index.html b/examples/vue/useKeyLockState/index.html new file mode 100644 index 000000000..3148cd06e --- /dev/null +++ b/examples/vue/useKeyLockState/index.html @@ -0,0 +1,12 @@ + + + + + + useKeyLockState - TanStack Hotkeys Vue Example + + +
+ + + diff --git a/examples/vue/useKeyLockState/package.json b/examples/vue/useKeyLockState/package.json new file mode 100644 index 000000000..34d879588 --- /dev/null +++ b/examples/vue/useKeyLockState/package.json @@ -0,0 +1,24 @@ +{ + "name": "@tanstack/hotkeys-example-vue-use-key-lock-state", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --port=3069", + "build": "vite build", + "preview": "vite preview", + "lint": "oxlint .", + "lint:fix": "oxlint . --fix", + "test:types": "tsc" + }, + "dependencies": { + "@tanstack/vue-hotkeys": "^0.26.0", + "vue": "^3.5.45" + }, + "devDependencies": { + "@tanstack/vue-devtools": "^0.2.29", + "@tanstack/vue-hotkeys-devtools": "^0.13.19", + "@vitejs/plugin-vue": "^6.0.10", + "typescript": "6.0.3", + "vite": "^8.3.7" + } +} diff --git a/examples/vue/useKeyLockState/src/App.vue b/examples/vue/useKeyLockState/src/App.vue new file mode 100644 index 000000000..79d0d169c --- /dev/null +++ b/examples/vue/useKeyLockState/src/App.vue @@ -0,0 +1,55 @@ + + + diff --git a/examples/vue/useKeyLockState/src/index.css b/examples/vue/useKeyLockState/src/index.css new file mode 100644 index 000000000..32fdb4630 --- /dev/null +++ b/examples/vue/useKeyLockState/src/index.css @@ -0,0 +1,58 @@ +* { + box-sizing: border-box; +} +body { + margin: 0; + font-family: system-ui, -apple-system, sans-serif; + background: #f5f5f5; + color: #333; +} +.app { + max-width: 600px; + margin: 0 auto; + padding: 20px; +} +h1 { + color: #0066cc; +} +.field { + display: flex; + flex-direction: column; + gap: 6px; + margin-bottom: 24px; +} +.field input { + padding: 8px; + font-size: 16px; +} +.warning { + min-height: 1.5em; + margin: 0; + color: #b45309; + font-weight: bold; +} +.locks { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 12px; +} +.lock { + background: white; + border: 2px solid #ddd; + border-radius: 8px; + padding: 12px; + text-align: center; +} +.lock.on { + background: #4caf50; + border-color: #388e3c; + color: white; +} +.lock-name { + display: block; + font-weight: bold; +} +.note { + color: #666; + font-size: 14px; +} diff --git a/examples/vue/useKeyLockState/src/index.ts b/examples/vue/useKeyLockState/src/index.ts new file mode 100644 index 000000000..50a4dab0d --- /dev/null +++ b/examples/vue/useKeyLockState/src/index.ts @@ -0,0 +1,5 @@ +import { createApp } from 'vue' +import App from './App.vue' +import './index.css' + +createApp(App).mount('#app') diff --git a/examples/vue/useKeyLockState/src/vue.d.ts b/examples/vue/useKeyLockState/src/vue.d.ts new file mode 100644 index 000000000..b07a05969 --- /dev/null +++ b/examples/vue/useKeyLockState/src/vue.d.ts @@ -0,0 +1,6 @@ +declare module '*.vue' { + import type { DefineComponent } from 'vue' + + const component: DefineComponent<{}, {}, any> + export default component +} diff --git a/examples/vue/useKeyLockState/tsconfig.json b/examples/vue/useKeyLockState/tsconfig.json new file mode 100644 index 000000000..6107ec46d --- /dev/null +++ b/examples/vue/useKeyLockState/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../../tsconfig.json", + "compilerOptions": { + "jsx": "preserve", + "types": ["vite/client"] + }, + "include": ["src"] +} diff --git a/examples/vue/useKeyLockState/vite.config.ts b/examples/vue/useKeyLockState/vite.config.ts new file mode 100644 index 000000000..544087a71 --- /dev/null +++ b/examples/vue/useKeyLockState/vite.config.ts @@ -0,0 +1,6 @@ +import vue from '@vitejs/plugin-vue' +import { defineConfig } from 'vite' + +export default defineConfig({ + plugins: [vue()], +}) diff --git a/package.json b/package.json index e4e7b2911..69821ed6f 100644 --- a/package.json +++ b/package.json @@ -197,7 +197,7 @@ "ignore": [ "alpinejs" ], - "limit": "12.5 KB" + "limit": "13 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 a490d8744..8eed0ef3e 100644 --- a/packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md +++ b/packages/alpine-hotkeys/skills/alpine-hotkeys/SKILL.md @@ -91,6 +91,7 @@ Each owner has these methods. Read their state through `.value`, or `.hotkeys` f | `createHotkeyScopesState()` | Get the active scopes and the exclusive scope that owns the keyboard. | | `createHotkeyHint(hotkey, options?)` | Get whether held modifiers should reveal a shortcut's hint. False unless a registration of the hotkey can fire: enabled, in an active scope, and with focus inside its element target. | | `createKeyHold(key)` | Get whether one key is held. Letters match in any case; other names, such as `Shift`, are case-sensitive. | +| `createKeyLockState(key)` | Read `.value`, whether `'CapsLock'`, `'NumLock'`, or `'ScrollLock'` is on: `true`, `false`, or `null` until a key press, click, or mouse move reports it. Resets to `null` when the window loses focus. Num Lock and Scroll Lock are always `null` on macOS and iOS. Use it for lock state, not `createKeyHold`, which is true only while the key is down. | | `createHeldKeys()` | Get every key that's held right now. | | `createHeldKeyCodes()` | Map each held key to its physical `event.code`. | | `destroy()` | Release every hotkey, subscription, and recorder the owner created. | diff --git a/packages/alpine-hotkeys/src/createHotkeysScope.ts b/packages/alpine-hotkeys/src/createHotkeysScope.ts index 991844719..538ba943c 100644 --- a/packages/alpine-hotkeys/src/createHotkeysScope.ts +++ b/packages/alpine-hotkeys/src/createHotkeysScope.ts @@ -13,6 +13,7 @@ import { createHotkeyRegistrations } from './createHotkeyRegistrations' import { createHotkeyScopesState } from './createHotkeyScopesState' import { createHotkeys } from './createHotkeys' import { createKeyHold } from './createKeyHold' +import { createKeyLockState } from './createKeyLockState' import { createKeyboardLayout } from './createKeyboardLayout' import { createScope, ownerScopes } from './scope' import type { MaybeGetter } from '@tanstack/hotkeys' @@ -39,6 +40,7 @@ export function createHotkeysScope( createHeldKeys: (...args) => createHeldKeys(scope, ...args), createHeldKeyCodes: (...args) => createHeldKeyCodes(scope, ...args), createKeyHold: (...args) => createKeyHold(scope, ...args), + createKeyLockState: (...args) => createKeyLockState(scope, ...args), createHotkeyHint: (...args) => createHotkeyHint(scope, ...args), createHotkeyRegistrations: (...args) => createHotkeyRegistrations(scope, ...args), diff --git a/packages/alpine-hotkeys/src/createKeyLockState.ts b/packages/alpine-hotkeys/src/createKeyLockState.ts new file mode 100644 index 000000000..2cac36e36 --- /dev/null +++ b/packages/alpine-hotkeys/src/createKeyLockState.ts @@ -0,0 +1,15 @@ +import { getKeyStateTracker } from '@tanstack/hotkeys' +import { resolveMaybeGetter } from '@tanstack/hotkeys/adapter' +import type { LockKey, MaybeGetter } from '@tanstack/hotkeys' +import type { HotkeysScope } from './scope' + +export function createKeyLockState( + scope: HotkeysScope, + key: MaybeGetter, +) { + const tracker = getKeyStateTracker() + return scope.select( + tracker.store, + (state) => state.locks[resolveMaybeGetter(key)], + ) +} diff --git a/packages/alpine-hotkeys/src/types.ts b/packages/alpine-hotkeys/src/types.ts index 5ed3f061b..e63931b1a 100644 --- a/packages/alpine-hotkeys/src/types.ts +++ b/packages/alpine-hotkeys/src/types.ts @@ -17,6 +17,7 @@ import type { HotkeySequenceRecorderOptions, IndividualKey, KeyboardLayoutMap, + LockKey, MaybeGetter, RegisterableHotkey, RegisteredAppHotkeyListItem, @@ -113,6 +114,44 @@ export interface AlpineHotkeys { createHeldKeyCodes: () => AlpineHotkeyState> /** Read whether a key is held through `.value`. */ createKeyHold: (key: MaybeGetter) => AlpineHotkeyState + /** + * Read whether a lock key, such as Caps Lock, is on through `.value`: `true` + * when the lock is on, `false` when it is off, or `null`. Pass + * `'CapsLock'`, `'NumLock'`, or `'ScrollLock'`, or a getter. + * + * Lock keys toggle instead of being held, so this reads the lock state that + * the browser reports on key and mouse events. `.value` is `null` until the + * user presses a key, clicks, or moves the mouse, after the window loses + * focus or the page is hidden, and always for Num Lock and Scroll Lock on macOS and iOS. + * + * @example + * ```ts + * Alpine.data('passwordField', () => { + * const hotkeys = createHotkeysScope() + * const capsLock = hotkeys.createKeyLockState('CapsLock') + * + * return { + * get capsLockOn() { + * return capsLock.value === true + * }, + * destroy() { + * hotkeys.destroy() + * }, + * } + * }) + * ``` + * + * ```html + * + * ``` + */ + createKeyLockState: ( + key: MaybeGetter, + ) => AlpineHotkeyState /** * Read whether held modifiers reveal a hotkey through `.value`. No hotkey * (`undefined`, `null`, or `''`) is never visible. diff --git a/packages/alpine-hotkeys/tests/conformance.test.ts b/packages/alpine-hotkeys/tests/conformance.test.ts index 96dc874fd..03c5aefd4 100644 --- a/packages/alpine-hotkeys/tests/conformance.test.ts +++ b/packages/alpine-hotkeys/tests/conformance.test.ts @@ -6,7 +6,11 @@ import { import { vitestRunner } from '@tanstack/hotkeys-test-utils/conformance/vitest' import Alpine from 'alpinejs' import { createHotkeyRecorder, createHotkeysScope } from '../src' -import type { IndividualKey, RegisterableHotkey } from '@tanstack/hotkeys' +import type { + IndividualKey, + LockKey, + RegisterableHotkey, +} from '@tanstack/hotkeys' import type { ConformanceHarness, ConformanceHotkey, @@ -90,6 +94,18 @@ const harness: ConformanceHarness = { } }, + async mountKeyLockState(watch) { + const { hotkeys, unmount } = owner() + const state = Alpine.reactive({ key: watch as LockKey }) + const lock = hotkeys.createKeyLockState(() => state.key) + await settle() + return { + value: () => lock.value, + setKey: (key) => settle(() => (state.key = key)), + unmount, + } + }, + async mountRegistrations() { const { hotkeys, unmount } = owner() const registrations = hotkeys.createHotkeyRegistrations() diff --git a/packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md b/packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md index 6f6d966b8..26223b6e6 100644 --- a/packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md +++ b/packages/angular-hotkeys/skills/angular-hotkeys/SKILL.md @@ -76,6 +76,7 @@ export class PanelComponent { | `injectHotkeyScopesState()` | Get a signal of the active scopes and the exclusive scope that owns the keyboard. | | `injectHotkeyHint(hotkey, options?)` | Get a signal of whether held modifiers should reveal a shortcut's hint. False unless a registration of the hotkey can fire: enabled, in an active scope, and with focus inside its element target. | | `injectKeyHold(key)` | Get a signal of whether one key is held. Letters match in any case; other names, such as `Shift`, are case-sensitive. | +| `injectKeyLockState(key)` | Get a signal of whether `'CapsLock'`, `'NumLock'`, or `'ScrollLock'` is on: `true`, `false`, or `null` until a key press, click, or mouse move reports it. Resets to `null` when the window loses focus. Num Lock and Scroll Lock are always `null` on macOS and iOS. Use it for lock state, not `injectKeyHold`, which is true only while the key is down. | | `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`. | diff --git a/packages/angular-hotkeys/src/index.ts b/packages/angular-hotkeys/src/index.ts index e23987285..0f763b9fc 100644 --- a/packages/angular-hotkeys/src/index.ts +++ b/packages/angular-hotkeys/src/index.ts @@ -10,6 +10,7 @@ export * from './injectHotkeys' export * from './injectHeldKeys' export * from './injectHeldKeyCodes' export * from './injectKeyHold' +export * from './injectKeyLockState' export * from './injectHotkeyRecorder' export * from './injectHotkeyRegistrations' export * from './injectHotkeyScopesState' diff --git a/packages/angular-hotkeys/src/injectKeyLockState.ts b/packages/angular-hotkeys/src/injectKeyLockState.ts new file mode 100644 index 000000000..4042dac53 --- /dev/null +++ b/packages/angular-hotkeys/src/injectKeyLockState.ts @@ -0,0 +1,46 @@ +import { computed } from '@angular/core' +import { getKeyStateTracker } from '@tanstack/hotkeys' +import { resolveMaybeGetter } from '@tanstack/hotkeys/adapter' +import { injectSelector } from './_injectSelector' +import { runOutsideZone } from './_zone' +import type { Signal } from '@angular/core' +import type { LockKey, MaybeGetter } from '@tanstack/hotkeys' + +/** + * Angular inject-based API that returns a signal of whether a lock key, such + * as Caps Lock, is on. + * + * Lock keys toggle instead of being held, so this reads the lock state that + * the browser reports on key and mouse events. The signal is `null` until the + * user presses a key, clicks, or moves the mouse, after the window loses + * focus or the page is hidden, and always for Num Lock and Scroll Lock on macOS and iOS. + * + * @param key - `'CapsLock'`, `'NumLock'`, or `'ScrollLock'` - can be a getter function + * @returns Signal that is `true` when the lock is on, `false` when it is off, or `null` + * + * @example + * ```ts + * @Component({ + * template: ` + * + * `, + * }) + * export class PasswordFieldComponent { + * capsLock = injectKeyLockState('CapsLock') + * } + * ``` + */ +export function injectKeyLockState( + key: MaybeGetter, +): Signal { + const tracker = runOutsideZone(getKeyStateTracker) + const locksSelector = injectSelector(tracker.store, (state) => state.locks) + + return computed(() => locksSelector()[resolveMaybeGetter(key)]) +} diff --git a/packages/angular-hotkeys/tests/conformance.test.ts b/packages/angular-hotkeys/tests/conformance.test.ts index 6619b87d9..42156a674 100644 --- a/packages/angular-hotkeys/tests/conformance.test.ts +++ b/packages/angular-hotkeys/tests/conformance.test.ts @@ -28,10 +28,12 @@ import { injectHotkeyRecorder } from '../src/injectHotkeyRecorder' import { injectHotkeyRegistrations } from '../src/injectHotkeyRegistrations' import { injectHotkeys } from '../src/injectHotkeys' import { injectKeyHold } from '../src/injectKeyHold' +import { injectKeyLockState } from '../src/injectKeyLockState' import type { ElementRef, Provider, Signal, Type } from '@angular/core' import type { ComponentFixture } from '@angular/core/testing' import type { IndividualKey, + LockKey, RegisterableHotkey, formatForAria, formatForDisplay, @@ -202,6 +204,22 @@ const harness: ConformanceHarness = { } }, + mountKeyLockState(initial) { + class KeyLockStateView { + readonly watch = signal(initial) + readonly lock = injectKeyLockState(() => this.watch()) + readonly lockText = computed(() => JSON.stringify(this.lock())) + } + const fixture = create(KeyLockStateView, { + template: `{{ lockText() }}`, + }) + return { + value: () => JSON.parse(text(fixture, 'lock')), + setKey: (key) => tick(() => fixture.componentInstance.watch.set(key)), + unmount: destroy(fixture), + } + }, + mountRegistrations() { class RegistrationsView { readonly registrations = injectHotkeyRegistrations() diff --git a/packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md b/packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md index b68a0f30a..bbaca6188 100644 --- a/packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md +++ b/packages/ember-hotkeys/skills/ember-hotkeys/SKILL.md @@ -74,6 +74,7 @@ export default class Editor extends Component { | `useHotkeyScopesState(this)` | Get the active scopes and the exclusive scope that owns the keyboard. | | `useHotkeyHint(this, hotkey, options?)` | Get whether held modifiers should reveal a shortcut's hint. False unless a registration of the hotkey can fire: enabled, in an active scope, and with focus inside its element target. | | `useKeyHold(this, key)` | Get whether one key is held. Letters match in any case; other names, such as `Shift`, are case-sensitive. | +| `useKeyLockState(this, key)` | Read `.value`, whether `'CapsLock'`, `'NumLock'`, or `'ScrollLock'` is on: `true`, `false`, or `null` until a key press, click, or mouse move reports it. Resets to `null` when the window loses focus. Num Lock and Scroll Lock are always `null` on macOS and iOS. Use it for lock state, not `useKeyHold`, which is true only while the key is down. | | `useHeldKeys(this)` | Get every key that's held right now. | | `useHeldKeyCodes(this)` | Map each held key to its physical `event.code`. | diff --git a/packages/ember-hotkeys/src/index.ts b/packages/ember-hotkeys/src/index.ts index 78bca2dba..a6e2775d8 100644 --- a/packages/ember-hotkeys/src/index.ts +++ b/packages/ember-hotkeys/src/index.ts @@ -5,6 +5,7 @@ export { UseHotkeys as useHotkeys } from './useHotkeys' export * from './useHeldKeys' export * from './useHeldKeyCodes' export * from './useKeyHold' +export * from './useKeyLockState' export * from './useHotkeyHint' export * from './useHotkeyRegistrations' export * from './useHotkeyScopesState' diff --git a/packages/ember-hotkeys/src/useKeyLockState.ts b/packages/ember-hotkeys/src/useKeyLockState.ts new file mode 100644 index 000000000..90445de24 --- /dev/null +++ b/packages/ember-hotkeys/src/useKeyLockState.ts @@ -0,0 +1,48 @@ +import { getKeyStateTracker } from '@tanstack/hotkeys' +import { resolveMaybeGetter } from '@tanstack/hotkeys/adapter' +import { select } from './utils' +import type { LockKey, MaybeGetter } from '@tanstack/hotkeys' +import type { EmberHotkeyState } from './types' + +/** + * Returns whether a lock key, such as Caps Lock, is on. Pass the containing + * component as owner to release the subscription on destruction. Getter + * arguments can read changing tracked component properties. + * + * Lock keys toggle instead of being held, so this reads the lock state that + * the browser reports on key and mouse events. Its value is `null` until the + * user presses a key, clicks, or moves the mouse, after the window loses + * focus or the page is hidden, and always for Num Lock and Scroll Lock on macOS and iOS. + * + * @param owner - The component that owns the subscription + * @param key - `'CapsLock'`, `'NumLock'`, or `'ScrollLock'` + * @returns A state whose `value` is `true` when the lock is on, `false` when + * it is off, or `null` + * + * @example + * ```gts + * class PasswordField extends Component { + * capsLock = useKeyLockState(this, 'CapsLock') + * + * + * } + * ``` + */ +export function useKeyLockState( + owner: object, + key: MaybeGetter, +): EmberHotkeyState { + return select( + owner, + getKeyStateTracker().store, + (state) => state.locks[resolveMaybeGetter(key)], + ) +} diff --git a/packages/ember-hotkeys/tests/integration/conformance.test.gts b/packages/ember-hotkeys/tests/integration/conformance.test.gts index ced040435..85f6cc9f4 100644 --- a/packages/ember-hotkeys/tests/integration/conformance.test.gts +++ b/packages/ember-hotkeys/tests/integration/conformance.test.gts @@ -11,7 +11,7 @@ import { import { createHotkeysScope, onHotkey, onHotkeys, provideAppHotkeys, useFormatForAria, useFormatForDisplay, useHeldKeyCodes, useHeldKeys, useHotkey, useHotkeyHint, - useHotkeyRecorder, useHotkeyRegistrations, useHotkeys, useKeyHold, + useHotkeyRecorder, useHotkeyRegistrations, useHotkeys, useKeyHold, useKeyLockState, } from '@tanstack/ember-hotkeys' import type { ConformanceHarness, ConformanceHotkey, ConformanceProvider, ConformanceRunner, @@ -19,7 +19,7 @@ import type { } from '@tanstack/hotkeys-test-utils/conformance' import type { DefaultHotkeysOptions, EmberHotkeyDefinition, EmberHotkeyRecorder, - EmberHotkeysScope, HotkeyRegistrationView, IndividualKey, + EmberHotkeysScope, HotkeyRegistrationView, IndividualKey, LockKey, } from '@tanstack/ember-hotkeys' // The shared conformance suite (test-utils/src/conformance) on QUnit. One @@ -76,6 +76,16 @@ class HeldKeysView extends Component<{ Args: { model: HeldKeysModel } }> { } +class KeyLockStateModel { + @tracked watch: LockKey + constructor(watch: LockKey) { this.watch = watch } +} +class KeyLockStateView extends Component<{ Args: { model: KeyLockStateModel } }> { + lock = useKeyLockState(this, () => this.args.model.watch) + get lockText() { return JSON.stringify(this.lock.value) } + +} + class RegistrationsModel { latest: Array = [] } class RegistrationsView extends Component<{ Args: { model: RegistrationsModel } }> { registrations = useHotkeyRegistrations(this) @@ -169,6 +179,8 @@ const harness: ConformanceHarness = { name: 'Ember', unsupported: { 'provider-scope': 'createHotkeysScope sets defaults but has no hotkey scope; use core activateScope', + 'trusted-test-events': + 'runs in a real browser, where isTrusted cannot be set; the e2e app covers lock state', }, act: settle, async setup() { @@ -199,6 +211,16 @@ const harness: ConformanceHarness = { } }, + async mountKeyLockState(watch) { + const model = new KeyLockStateModel(watch) + const unmount = await show(KeyLockStateView, model) + return { + value: () => JSON.parse(text('lock')), + setKey: (key) => settle(() => (model.watch = key)), + unmount, + } + }, + async mountRegistrations() { const model = new RegistrationsModel() const unmount = await show(RegistrationsView, model) diff --git a/packages/hotkeys-devtools/src/HotkeysContextProvider.tsx b/packages/hotkeys-devtools/src/HotkeysContextProvider.tsx index 9ce7e06ba..f7b592676 100644 --- a/packages/hotkeys-devtools/src/HotkeysContextProvider.tsx +++ b/packages/hotkeys-devtools/src/HotkeysContextProvider.tsx @@ -19,6 +19,7 @@ import type { AppHotkeysStore, HotkeyRegistrationView, HotkeyScopesState, + KeyStateTrackerState, KeyboardLayoutMap, } from '@tanstack/hotkeys' import type { Accessor } from 'solid-js' @@ -32,6 +33,8 @@ interface HotkeysDevtoolsContextType { scopes: Accessor heldKeys: Accessor> heldCodes: Accessor> + /** Whether each lock key is on, or null while the browser hasn't reported it. */ + keyLocks: Accessor /** Monotonic clock for sequence in-progress UI (updates while a sequence match is active). */ sequenceProgressNow: Accessor /** The browser's keyboard layout, or null where it reports none. */ @@ -50,6 +53,7 @@ const HotkeysDevtoolsContext = createContext({ }), heldKeys: () => [], heldCodes: () => ({}), + keyLocks: () => ({ CapsLock: null, NumLock: null, ScrollLock: null }), sequenceProgressNow: () => Date.now(), keyboardLayout: () => null, }) @@ -82,6 +86,7 @@ export function HotkeysContextProvider(props: { children: any }) { const [heldCodes, setHeldCodes] = createSignal>( tracker.store.state.heldCodes, ) + const [keyLocks, setKeyLocks] = createSignal(tracker.store.state.locks) // Subscribe to HotkeyManager registrations store onSettled( @@ -141,6 +146,7 @@ export function HotkeysContextProvider(props: { children: any }) { tracker.store.subscribe(() => { setHeldKeys(tracker.store.state.heldKeys) setHeldCodes(tracker.store.state.heldCodes) + setKeyLocks(tracker.store.state.locks) }).unsubscribe, ) @@ -174,6 +180,7 @@ export function HotkeysContextProvider(props: { children: any }) { scopes, heldKeys, heldCodes, + keyLocks, sequenceProgressNow, keyboardLayout, }} diff --git a/packages/hotkeys-devtools/src/components/HeldKeysTopbar.tsx b/packages/hotkeys-devtools/src/components/HeldKeysTopbar.tsx index 69cf520a0..78ca5913b 100644 --- a/packages/hotkeys-devtools/src/components/HeldKeysTopbar.tsx +++ b/packages/hotkeys-devtools/src/components/HeldKeysTopbar.tsx @@ -7,6 +7,22 @@ import { KEYBOARD_LAYOUT_SELECTION_ID, keyboardLayoutSummary, } from './KeyboardLayoutDetails' +import type { LockKey } from '@tanstack/hotkeys' + +const LOCKS: Array<[LockKey, string]> = [ + ['CapsLock', 'Caps Lock'], + ['NumLock', 'Num Lock'], + ['ScrollLock', 'Scroll Lock'], +] + +type LockChipState = 'on' | 'off' | 'unknown' | 'unavailable' + +const LOCK_CHIP_TEXT: Record = { + on: 'On', + off: 'Off', + unknown: '?', + unavailable: 'n/a', +} export function HeldKeysBar(props: { selectedId: () => string | null @@ -51,6 +67,45 @@ export function HeldKeysBar(props: { +
+ Locks + + {([key, name]) => { + // Browsers on macOS and iOS never report Num Lock or Scroll Lock. + const lockState = (): LockChipState => { + if (key !== 'CapsLock' && platform === 'mac') return 'unavailable' + const value = state.keyLocks()[key] + return value === null ? 'unknown' : value ? 'on' : 'off' + } + const title = () => + ({ + on: `${name} is on`, + off: `${name} is off`, + unknown: + 'Press a key, click, or move the mouse over the page to read it', + unavailable: `macOS and iOS don't report ${name} to web pages`, + })[lockState()] + return ( + + {name} + + {LOCK_CHIP_TEXT[lockState()]} + + + ) + }} + +