GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@only21mil

@only21mil only21mil commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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+И, no conflict warning
Saves Ctrl+Alt+B with 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.

All reactions
@only21mil
fix(web): Alt shortcuts recorded on a non-Latin layout keep working o…
ccef56f
…n a Latin one
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: c6bc226
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 099aaa5f-a366-4ab9-bd5b-fafb71be304f
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 28, 2026
juliusmarminge and others added 2 commits November 28, 2026 13:35
@juliusmarminge @claude
Merge origin/main into fix/web-alt-shortcut-nonlatin-layout
d3620b4
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge @claude
test(web): trim non-Latin Alt shortcut test to the recording and matc…
3af3c71
…h cases

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge

juliusmarminge commented Nov 28, 2026

Copy link
Copy Markdown
Member

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 Before: mod+alt+и without conflict warning After: mod+alt+b with conflict warning
Saved shortcut Before: custom Ctrl Alt И After: custom Ctrl Alt B
English shortcut result Before: Ctrl+Alt+B opens right panel After: Ctrl+Alt+B opens command palette
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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 28, 2026
@juliusmarminge
juliusmarminge merged commit 4dac459 into pingdotgg:main Nov 28, 2026
56 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

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.

Projects

None yet

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.

2 participants

@only21mil @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.