Repository navigation
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
HlaKarki
marked this pull request as ready for review
November 2, 2026 00:18
This branch was previously 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.
Fixes #3634
On macOS, gpui turns ⌘⇧4 into
cmd-$with Shift cleared, so the shortcut recorder rejected every ⌘⇧ combo on a digit or symbol key.unfold_shifted_symbolmaps the 21 US shifted symbols back to their key and restores Shift. It only does that while the recorder's held modifiers say Shift is down. Those come fromwindow.modifiers()andon_modifiers_changed. AZERTY has an unshifted$key, and without that check it would record as ⌘⇧4.The mapping assumes a US layout, like the existing punctuation table in
hotkey_code_for_key. Recording the physical key would need gpui'sKeystroketo carry the key code, which is a bigger change in the fork.Testing
cargo test --bin cap-gpuion macOS 27.0: 1565 passed, 0 failed, 32 ignored.shifted_symbols_record_as_their_key_with_shifttest covers all 21 symbols, the AZERTY$case and letters.

Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Restores Shift and the US base key when GPUI reports a shifted symbol with Shift cleared.
HlaKarki explicitly treats US-layout mapping as intentional and defers physical-key support to a broader GPUI change.
Reviews (1) · Last reviewed commit: "fix: shortcut recorder; record Shift sho..." · Reviewed by Greptile