Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/long-s-key.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tanstack/hotkeys': patch
---

The long s (`ſ`) is now a key of its own, as Turkish `ı` is. It uppercases to `S`, so a `ſ` hotkey fired on the S key, and the `ſ` that AltGr+W types on German and other Linux layouts counted as AltGr typing nothing new, so it fired nothing. Now a `ſ` hotkey fires only on a key that types `ſ`.
152 changes: 109 additions & 43 deletions .intent/review-state.json
Original file line number Diff line number Diff line change
Expand Up @@ -4408,13 +4408,13 @@
]
},
"source:packages/hotkeys/tests/match.test.ts": {
"fingerprint": "ccd81b982c89f914f5fb17d20ceb6170434b8769465591f98dca40b85c1663a6",
"fingerprint": "4be13f993c56170a6b8c4b2b6c1dd6e23a2e067c666c788e7ef9585cf1040fc3",
"snapshot": {
"packages/hotkeys/tests/match.test.ts": "33c996cf6c2f386b255a8d97a4ce9ed9f7e7701a4c32e67501d39d0f9d54f29d"
"packages/hotkeys/tests/match.test.ts": "895a82a1b26724ad0daebc5554e2c457a9e99dc5c0338ed2b78b73f463e4996f"
},
"head": "133548f44becbcb8327b123ed4196256d0838a13",
"head": "7d7987cd3aa0a01565debdc06bcfb104a59d0889",
"outcome": "out-of-scope",
"reason": "Tests or generated reference docs for the matching fixes; no skill guidance depends on them.",
"reason": "Test fixtures, invariant tests, the layout table generator, generated reference docs, or formatter config; no skill guidance depends on them.",
"evidence": ["No skill references this file"]
},
"source:packages/hotkeys/tests/sequence-regressions.test.ts": {
Expand Down Expand Up @@ -6199,15 +6199,15 @@
]
},
"source:packages/hotkeys/src/constants.ts": {
"fingerprint": "fb25770187e7dda335bbbbf1a590af71aa9fc56a8c9507cdcee03c7af837e103",
"fingerprint": "3d820388e3779897cb66a255e07ab802dc03726fcd72712f28ba5f600970b607",
"snapshot": {
"packages/hotkeys/src/constants.ts": "f855d30b3f439ef837aa713ff3f43975020cf3ab4d92cdae4e7fb0b1021b20be"
"packages/hotkeys/src/constants.ts": "4c0269a3602565528028a32ba3c434b9be85f706fe5467634bebf653ea4bb807"
},
"head": "1f0a2c627c4a18f005762600966a81e9b8daef3a",
"head": "7d7987cd3aa0a01565debdc06bcfb104a59d0889",
"outcome": "no-change",
"reason": "Refactor to shared types and helpers, generated reference docs, and an example type fix; no guidance changes.",
"reason": "normalizeKeyName keeps the long s as its own key, like Turkish ı. The core skill gives no guidance on it, and an agent writes the same hotkeys before and after.",
"evidence": [
"Behavior and public names are unchanged; reference docs are regenerated by pnpm generate-docs."
"packages/hotkeys/skills/hotkeys-core/SKILL.md: no pitfall covers key normalization of ı or ſ"
]
},
"source:packages/hotkeys/tests/key-tables.test.ts": {
Expand Down Expand Up @@ -6825,14 +6825,14 @@
]
},
"source:packages/hotkeys/tests/typed-behavior.test.ts": {
"fingerprint": "27bef4db2c12eb5d63123ff4626c1a817c21ba94bede855a5266e2f136d26c5d",
"fingerprint": "a4b9a69ee493fb73fa2722853c6f1b8feb06e62161d53af32217e63c955d477a",
"snapshot": {
"packages/hotkeys/tests/typed-behavior.test.ts": "8f23da7e59847724cabfc91510433351051c8cb95a699564ee92600d036d8b48"
"packages/hotkeys/tests/typed-behavior.test.ts": "cecc47dd37fe863c7cbc111f2a3dea542ce3343eac127cf39457cbe54d1bdbf2"
},
"head": "6568af21d83abc92ff1ee9f330b8c7537f376478",
"outcome": "no-change",
"reason": "Tests for the recorder's new default and the conflict check context. Skills don't describe the test suites.",
"evidence": ["packages/hotkeys/tests/typed-behavior.test.ts"]
"head": "7d7987cd3aa0a01565debdc06bcfb104a59d0889",
"outcome": "out-of-scope",
"reason": "Test fixtures, invariant tests, the layout table generator, generated reference docs, or formatter config; no skill guidance depends on them.",
"evidence": ["No skill references this file"]
},
"source:packages/hotkeys/tests/unified-hotkeys.test.ts": {
"fingerprint": "84ea6e4465995de18af8677d3413b37181cb6a56a7f48da748dd8f16c59b3b04",
Expand Down Expand Up @@ -17177,14 +17177,14 @@
]
},
"source:oxfmt.config.ts": {
"fingerprint": "75c3d2b164b07a7a2797fe8dd31c86ab3e746d011efee28b0b1504931c6b4b57",
"fingerprint": "53b04f15fcc6a39a5f53169c842b6b4550d475f84693d6887176166f7d2d5bb3",
"snapshot": {
"oxfmt.config.ts": "e4931fd90be7752eced8c3382db9d60865e2d0633402e21a6d960cd796a36fec"
"oxfmt.config.ts": "9414175c10934c0507475326afdc2d073bb5b0815f87497b1990c2f7c98c127b"
},
"head": "ceb3d5f93b2439d373096ae80c354df1f77b3f3a",
"outcome": "no-change",
"reason": "New formatter config: @tanstack/oxfmt-config, Svelte formatting, and repo ignore paths. Tooling only.",
"evidence": ["oxfmt.config.ts"]
"head": "7d7987cd3aa0a01565debdc06bcfb104a59d0889",
"outcome": "out-of-scope",
"reason": "Test fixtures, invariant tests, the layout table generator, or formatter config; no skill guidance depends on them, and library behavior is unchanged.",
"evidence": ["No skill references this file"]
},
"source:oxlint.config.ts": {
"fingerprint": "b2555dd4dd5c33f73c97be331822ddbdc3850d02d7dadd48f3bfe94c6f0cf6cf",
Expand Down Expand Up @@ -19239,16 +19239,14 @@
]
},
"source:packages/hotkeys/tests/invariants/fixtures.ts": {
"fingerprint": "b7325b5e53184ea0dc0968a3708a75f8a8dea972ef15e697b62d17ca5fc92d91",
"fingerprint": "be15e0c5ef99ead69128bca52ffe28e7789431f487a0295fda72f5d6ad201641",
"snapshot": {
"packages/hotkeys/tests/invariants/fixtures.ts": "2a7c3e77ccdc71ca695f42eabc2e8a0800fe6fb342f6ca89ef97961f1091698a"
"packages/hotkeys/tests/invariants/fixtures.ts": "5a5b6aa0f21b99ed4cf775336a6d9ee4fee689364f818c259e4489d26414d960"
},
"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": "7d7987cd3aa0a01565debdc06bcfb104a59d0889",
"outcome": "out-of-scope",
"reason": "Test fixtures, invariant tests, the layout table generator, or formatter config; no skill guidance depends on them, and library behavior is unchanged.",
"evidence": ["No skill references this file"]
},
"source:packages/hotkeys/tests/invariants/matching.test.ts": {
"fingerprint": "d1fb221fed3c2520ae865c9029a2f4b3a37bad609b2fdfc4ff157cae8830e2ac",
Expand All @@ -19275,14 +19273,14 @@
]
},
"source:packages/hotkeys/tests/invariants/recorder-match.test.ts": {
"fingerprint": "3c497b7968eb6deae2268ee86549a249015b7bab70fbfed5840ca14df810bdd5",
"fingerprint": "0ea9343c7803cf513ef71e6ddd5850b284f8d84e1975fed3a90fa36c48b37d6f",
"snapshot": {
"packages/hotkeys/tests/invariants/recorder-match.test.ts": "04a25c591fe9f3d7b9c455ee4f01cc84993762d1a61ec00d8c0b9195ab2daf4d"
"packages/hotkeys/tests/invariants/recorder-match.test.ts": "613d369c0cfb4f947a5f688726f340659d6034e13ce32a442d9b0f53f0051cae"
},
"head": "94358d54fd72a38952b6fb68560b48043a3f8277",
"outcome": "no-change",
"reason": "Tests for the recorder's new default and the conflict check context. Skills don't describe the test suites.",
"evidence": ["packages/hotkeys/tests/invariants/recorder-match.test.ts"]
"head": "7d7987cd3aa0a01565debdc06bcfb104a59d0889",
"outcome": "out-of-scope",
"reason": "Test fixtures, invariant tests, the layout table generator, generated reference docs, or formatter config; no skill guidance depends on them.",
"evidence": ["No skill references this file"]
},
"source:packages/hotkeys/tests/invariants/round-trip.test.ts": {
"fingerprint": "f80e36e694dd618f7fc4c34def7ed4afdb2b0c22dbef614801e5884832dced36",
Expand All @@ -19297,16 +19295,14 @@
]
},
"source:packages/hotkeys/tests/invariants/sequence-fuzz.test.ts": {
"fingerprint": "8b7015d3d6632283b57c872cab384c5b1d80e6782fca2287d18e760ddc11ba52",
"fingerprint": "8c19312a6359524cc2cb53fbfe41196a07f9e32a3ea6c9d5e9f28291a5fe02d2",
"snapshot": {
"packages/hotkeys/tests/invariants/sequence-fuzz.test.ts": "8ca3f9583c9e1e4d8f0dd80fd92745d93d3c42e10d4c576f9daea8ee19e4f46b"
"packages/hotkeys/tests/invariants/sequence-fuzz.test.ts": "8501da3e8b22c8d8bef03046b8edffc32b947a30a6b06580a5d0c17ee9a82d07"
},
"head": "ce272666d8aae7bebafc02b184b29fcd2e853125",
"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/sequence-fuzz.test.ts at ce272666d8aae7bebafc02b184b29fcd2e853125"
]
"head": "7d7987cd3aa0a01565debdc06bcfb104a59d0889",
"outcome": "out-of-scope",
"reason": "Test fixtures, invariant tests, the layout table generator, generated reference docs, or formatter config; no skill guidance depends on them.",
"evidence": ["No skill references this file"]
},
"source:packages/hotkeys/tests/recorder-options.test.ts": {
"fingerprint": "167d28ac6541af53f2635d3ede000b778facd311ae4077be11bd35aade19d7b9",
Expand Down Expand Up @@ -23522,6 +23518,76 @@
"outcome": "out-of-scope",
"reason": "Generated reference docs, examples, tests, sidebar config, lockfile, or package/tsconfig wiring for the layout key types; no skill guidance depends on them.",
"evidence": ["No skill references this file"]
},
"source:packages/hotkeys/tests/fixtures/layout-events.ts": {
"fingerprint": "c5bc87e57485f18a595316c2b6f784bdd4186303cf252961e2c6c1b7c2094de9",
"snapshot": {
"packages/hotkeys/tests/fixtures/layout-events.ts": "c8a95c561ba0df75652164a60782544108294f60538a3961163607c43312cae7"
},
"head": "f34e89d37247ffb9b8e07fb79e8ed1dcdf9b7868",
"outcome": "out-of-scope",
"reason": "Test fixtures and the layout table generator; no skill guidance depends on them.",
"evidence": ["No skill references this file"]
},
"source:packages/hotkeys/tests/fixtures/layout-table.json": {
"fingerprint": "16ae9fdf23b899025b8adc8deb129b821358b103c16dae548e55e583fb70f49f",
"snapshot": {
"packages/hotkeys/tests/fixtures/layout-table.json": "89e9298922d86451fdbb07acc3dc12c89b60f62cdd676966a90f18410a9a3cde"
},
"head": "f34e89d37247ffb9b8e07fb79e8ed1dcdf9b7868",
"outcome": "out-of-scope",
"reason": "Test fixtures and the layout table generator; no skill guidance depends on them.",
"evidence": ["No skill references this file"]
},
"source:packages/hotkeys/tests/invariants/layouts.test.ts": {
"fingerprint": "d6d86756b0d60f3a80f1ac9f2a72b26e481c70d78fdcf3a4935879688da25f6f",
"snapshot": {
"packages/hotkeys/tests/invariants/layouts.test.ts": "ae4b43cbc3268022e736e572777d8bb13bdc2cdf47223a232e4bc1119c359667"
},
"head": "7d7987cd3aa0a01565debdc06bcfb104a59d0889",
"outcome": "out-of-scope",
"reason": "Test fixtures, invariant tests, the layout table generator, generated reference docs, or formatter config; no skill guidance depends on them.",
"evidence": ["No skill references this file"]
},
"source:scripts/layout-table/dump-xkb.sh": {
"fingerprint": "0425d7f60d1a07a1833701a3cff2a7ca45604e8a3b6e8c13999032a1dc537125",
"snapshot": {
"scripts/layout-table/dump-xkb.sh": "fc613f002185d33472d32417100b7532e49c2ed377aa20fbf3048be9356ecddd"
},
"head": "7d7987cd3aa0a01565debdc06bcfb104a59d0889",
"outcome": "out-of-scope",
"reason": "Test fixtures, invariant tests, the layout table generator, generated reference docs, or formatter config; no skill guidance depends on them.",
"evidence": ["No skill references this file"]
},
"source:scripts/layout-table/fetch-cldr.sh": {
"fingerprint": "3d92a8adc627e0f72a1a6188d9e4d4cd09eebc109db7800b576588f7f2fb4c35",
"snapshot": {
"scripts/layout-table/fetch-cldr.sh": "4655ad0d2ad2c1dbb34befc43491b69ddfc75fad61ee4cf66b750443b6f56fc4"
},
"head": "7d7987cd3aa0a01565debdc06bcfb104a59d0889",
"outcome": "out-of-scope",
"reason": "Test fixtures, invariant tests, the layout table generator, or formatter config; no skill guidance depends on them, and library behavior is unchanged.",
"evidence": ["No skill references this file"]
},
"source:scripts/layout-table/generate.ts": {
"fingerprint": "340bf270d015facbfd37ce1c53453457569921eb72d3263d1c2f72f626dd3200",
"snapshot": {
"scripts/layout-table/generate.ts": "7b8cde04243919fae56702dc3b8717aae5be0a55d244d64e1907698c83d6f30e"
},
"head": "f34e89d37247ffb9b8e07fb79e8ed1dcdf9b7868",
"outcome": "out-of-scope",
"reason": "Test fixtures and the layout table generator; no skill guidance depends on them.",
"evidence": ["No skill references this file"]
},
"source:scripts/layout-table/maclayouts.swift": {
"fingerprint": "de8d1d519aea64fbc7fb8efb9c378d187beea9fbd89fcd19c934cc7e13640dd7",
"snapshot": {
"scripts/layout-table/maclayouts.swift": "7e072ae4fe29ea96855418b0fa0b2c019552b97172d44c3ae5c2c4df035553b4"
},
"head": "f34e89d37247ffb9b8e07fb79e8ed1dcdf9b7868",
"outcome": "out-of-scope",
"reason": "Test fixtures and the layout table generator; no skill guidance depends on them.",
"evidence": ["No skill references this file"]
}
}
}
2 changes: 2 additions & 0 deletions oxfmt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export default defineConfig({
'**/old-examples',
'**/playwright-report',
'**/test-results',
// Generated by scripts/layout-table/generate.ts
'**/tests/fixtures/layout-table.json',
// TanStack Router regenerates this on build, in an order `sortImports` rejects
'**/routeTree.gen.ts',
],
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"format": "oxfmt",
"format:check": "oxfmt --check",
"generate-docs": "node scripts/generate-docs.ts && pnpm run copy:readme",
"generate:layout-table": "node scripts/layout-table/generate.ts",
"lint": "nx affected --target=lint --exclude=examples/**",
"lint:all": "pnpm run test:oxlint && pnpm run test:eslint && nx run-many --target=lint --projects=\"examples/**\"",
"lint:fix": "nx affected --target=lint:fix --exclude=examples/**",
Expand Down
4 changes: 3 additions & 1 deletion packages/hotkeys/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ export function normalizeKeyName(key: string): string {
// (browser extensions synthesizing key events, accessibility tools, certain OS/browser combinations).
if (!key) return ''
if (isSingleLetterKey(key)) {
if (key === 'ı') return key
// Turkish `ı` and the long s `ſ` uppercase to the ASCII I and S, which
// would make them other keys
if (key === 'ı' || key === 'ſ') return key
const upper = key.toUpperCase()
// Some Unicode letters (e.g., 'ß') uppercase to multi-character sequences
// ('SS'). Avoid changing the string length so the rest of the matching
Expand Down
Loading
Loading