GeezerVison is showing github.com — fix(web): Alt shortcuts recorded on a non-Latin layout keep working on a Latin one by only21mil · Pull Request #44978 · pingdotgg/t3code
Conversation
Problem
When recording an Alt shortcut (Ctrl+Alt+И on KeyB) in Settings → Keybindings on a non-Latin layout on Linux or Windows, the recorder saves mod+alt+и instead of mod+alt+b. It fails on a Latin layout and misses conflicts like Right Panel: Toggle (Ctrl+Alt+B).
Change
In recordedLayoutShortcutKey (apps/web/src/components/settings/KeybindingsSettings.logic.ts), gate the early event.altKey return on isMacPlatform(platform) so Linux/Windows Alt chords hit #44275's non-Latin letter check before falling back to physicalKey. macOS Option, Latin letters, and AltGr symbols (@, €) stay unchanged. Added one unit test in KeybindingsSettings.logic.test.ts.
Scope
Bug fix: wrong key token for non-Latin Alt shortcuts on Linux/Windows; small obvious bug, no issue needed. Touches only KeybindingsSettings.logic.ts (3 lines) and its test; no string, contract, or matcher changes.
Verification
Linux web repro: XKB ru, Settings → Keybindings, edit Command Palette: Toggle, press Ctrl+Alt+И (KeyB), Save; switch to us on / and press Ctrl+Alt+B.
Setup. Ubuntu 26.04.1 LTS x86_64, Chromium 158.0.8127.36, light, 1280×800, isolated data, X11 keys (Xvfb, setxkbmap, xdotool).
Steps. Settings → Keybindings → Command Palette: Toggle → Ctrl+И, Ctrl+Alt+И (ru) → Save → / → Ctrl+Alt+B (us), Ctrl+Alt+И (ru).
| Before (c1cce2e8c6) |
After (ccef56fddb) |
 Saves Ctrl+Alt+И, no conflict warning |
 Saves Ctrl+Alt+B with conflict warning |
Activation on /: us Ctrl+Alt+B opened 0 dialogs on c1cce2e8c6 vs 1 on ccef56fddb; ru Ctrl+Alt+И opened it on both.
Links. driver, base obs, head obs, #44275, #15972. Clean git merge-tree vs d0717f7e20.
Not shown.
- macOS (
MacIntel tests), Windows (Win32 test), desktop app (ccef56fddb); no video clip (static row state).
Automated checks and event details
- Failing-first test on
c1cce2e8c6: KeybindingsSettings.logic.test.ts > records the physical letter for non-Latin Alt shortcuts on Linux and Windows failed: AssertionError: expected 'mod+alt+и' to be 'mod+alt+b'.
- Tests and checks on
ccef56fddb (AI agent):
apps/web/src/components/settings/*.test.ts, keybindings.test.ts, keyboardLayout.test.ts: 46/46 files, 473/473 passed.
KeybindingsSettings.browser.test.tsx, useSnapShotShortcutRecorder.browser.test.tsx: 2/2 files, 11/11 passed.
vp run check:changed c1cce2e8c6f6ba6be22dd141b8efa8c42ec430b8: format, lint (0 warnings), knip 1/2 & 2/2, typecheck (2 packages), test (24/24), react compiler all passed.
- Observed X11 events in Chromium (
Linux x86_64):
- Control (
ru Ctrl+И, KeyB, no Alt): { key: "и", code: "KeyB", ctrlKey: true, altKey: false, altGraph: false } → mod+b on both commits.
- Bug (
ru Ctrl+Alt+И, KeyB, with Alt): { key: "и", code: "KeyB", ctrlKey: true, altKey: true, altGraph: false } → mod+alt+и on c1cce2e8c6, mod+alt+b on ccef56fddb.
- German
de AltGr (AltGr+Q → @, AltGr+E → €, AltGr+M → µ): ctrlKey: false, altKey: false, altGraph: true on Linux; on Windows (ctrlKey: true, altKey: true), @/€ are non-letters and µ still records m.
Generated with Gemini 4 Neon in T3 Code Nightly
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The shortcut recorder checks non-Latin layout keys before handling other Alt-modified keys. Regression tests cover Ctrl+Alt shortcuts recorded at physical KeyB on Windows and Linux, and Linux shortcut matching with Latin and Cyrillic event keys.
Changes: Shortcut Recording
| Layer / File(s) |
Summary |
Layout key handling and test coverage apps/web/src/components/settings/KeybindingsSettings.logic.ts, apps/web/src/components/settings/KeybindingsSettings.logic.test.ts |
recordedLayoutShortcutKey checks non-single-character layout keys before other Alt handling. Tests verify that Ctrl+Alt at physical KeyB records as mod+alt+b on Windows and Linux, and that Linux matching accepts Latin b and Cyrillic и. |
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Suggested reviewers: aymankhan9, iamshadmantaqi, v-khanna
Merge Risk: Minimal · up to 3af3c
-
This fixes recording Alt shortcuts on non-Latin layouts for Linux and Windows. The change is small and tested, and no merge-blocking risk was found.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the main change: Alt shortcuts recorded on a non-Latin layout now keep working on a Latin layout. This matches the gated early altKey return in recordedLayoutShortcutKey, the added reg… |
| Description check |
 |
The description follows the template sections (Problem, Change, Scope, Verification). It explains the bug, the code change, and the scope. It gives a Linux X11 repro, before/after evidence, failing-fi… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title names the main change: Alt shortcuts recorded on a non-Latin layout now keep working on a Latin layout. This matches the gated early altKey return in recordedLayoutShortcutKey, the added regression test, and the stated objective. The title follows the conventional commit format and is specific.
Full details: Description check
-
Explanation
The description follows the template sections (Problem, Change, Scope, Verification). It explains the bug, the code change, and the scope. It gives a Linux X11 repro, before/after evidence, failing-first test output, and automated check results. It also lists what was not verified (macOS, Windows, desktop app). The Verification section meets the template requirement for specific observed results. The closing agent-model line is present. Minor gap: the template asks for a before/after screenshot for UI changes, and the PR provides them, so no gap there. Overall the description is mostly complete.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between ccef56f and 3af3c71.
Files selected for processing: 1
-
apps/web/src/components/settings/KeybindingsSettings.logic.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Evidence
Proven in real Chromium on Linux, 1280×800, dark theme, fresh databases and Replay (dev). Both runs used trusted OS keyboard events with Russian key и on physical KeyB.
Steps: Settings → Keybindings → edit Command Palette: Toggle → switch to Russian → Ctrl+Alt+И → save → open chat → switch to English → Ctrl+Alt+B.
|
Before |
After |
| Commit |
c6bc226997 |
3af3c71328 |
| Result |
Scenario fails: command palette absent; right panel opens |
Scenario passes: command palette opens |
| Recording and conflict |
 |
 |
| Saved shortcut |
 |
 |
| English shortcut result |
 |
 |
| Recording |
Before video |
After video |
Scenario driver · Temporary runner patch enabling headed Chromium
Not shown:
- Windows and desktop/Electron were not exercised; this proof covers the Linux web client.
- The optional switch-back-to-Russian control was not repeated; the scenario captured the recording, persistence, conflict detection and English-layout activation.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:XS
0-9 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|