Repository navigation
fix macOS shifted key normalization - #162
Open
JelloBagel wants to merge 4 commits into
Open
JelloBagel wants to merge 4 commits into
JelloBagel wants to merge 4 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
JelloBagel
marked this pull request as ready for review
November 25, 2026 18:06
JelloBagel
requested review from
gracepark
and
an adaptive review from Copilot
November 25, 2026 18:06
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Changes to public macOS modifier+Shift shortcut serialization and matching may break existing bindings, requiring human assessment of downstream compatibility.
No open issues 🎉
What changed in this PR
Fixes macOS hotkey normalization so shifted digits and punctuation from non-US keyboard layouts are preserved rather than converted using US-layout mappings.
Changes:
- Limits Shift normalization to ASCII letters when another modifier is held.
- Adds regression coverage for reported symbols and modifier+Shift combinations.
- Documents the updated behavior and the remaining US-layout Option mapping limitation.
| File | Description |
|---|---|
test/test.js |
Reorganizes test cases and adds shifted-symbol and hotkey-matching coverage. |
src/macos-uppercase-layer.ts |
Removes digit and punctuation mappings, retaining ASCII letter mappings. |
src/hotkey.ts |
Restricts macOS Shift normalization to combinations with another modifier. |
README.md |
Clarifies letter normalization, preserved symbols, and Option mapping limitations. |
Review effort: Balanced (adaptive)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
088f592826d0a0fa4571ce9c87005f1fcd8dc741↓ No physical German keyboard or downstream integration test was run.
/to?; the updated tests verify that digits and symbols now stay unchanged.↓ Browser event behavior was simulated in tests.
/) and modifier+Shift variants are covered by focused cases.↓ The reported shortcuts-dialog symptom was not reproduced in this package.
On macOS, the US Shift map could convert a character reported by another layout, such as German Shift+7
/, to?. Modifier+Shift events reporting digits or punctuation had the same layout-dependent mapping.The Shift map now only uppercases ASCII letters; non-letter
event.keyvalues are preserved. Existing macOS modifier+Shift letter normalization remains, as does the separate US-layout Option mapping for Alt combinations.event.key/Shift+?Shift+/=Shift+PlusShift+=1Meta+Shift+!Meta+Shift+1/Control+Shift+?Control+Shift+//Alt+Shift+?Alt+Shift+/xMeta+Shift+XMeta+Shift+X(same)Validation: 110 browser tests passed using installed Chrome; lint and TypeScript checks passed. No physical German keyboard test was run.