Skip to content

fix: keyboard shortcuts work with non-Latin layouts (Russian, etc.)#1007

Open
coldranned wants to merge 6 commits into
mfat:devfrom
coldranned:fix/non-latin-keyboard-shortcuts
Open

fix: keyboard shortcuts work with non-Latin layouts (Russian, etc.)#1007
coldranned wants to merge 6 commits into
mfat:devfrom
coldranned:fix/non-latin-keyboard-shortcuts

Conversation

@coldranned

Copy link
Copy Markdown

No description provided.

mfat and others added 6 commits June 24, 2026 10:31
GTK4 resolves keyvals from the active keyboard layout, so shortcuts
fail silently when a Cyrillic or other non-Latin layout is active.

Add keyboard_utils.get_latin_keyval() which translates the hardware
keycode to its Latin (group-0) equivalent via Gdk.Display.translate_key().

- window.py: CAPTURE handler on MainWindow iterates registered
  app/win accelerators and activates the matching action using the
  Latin keyval. Covers all app-level shortcuts (Ctrl+N, Ctrl+F, etc.).
- terminal.py: CAPTURE controller on the VTE widget handles copy/paste/
  zoom (Ctrl+Shift+C/V/A, Ctrl+=/−/0); search handler uses Latin keyval
  for Ctrl+F and Ctrl+G.
- split_view.py: pane navigation (Ctrl+Alt+H/J/K/L) and Ctrl+Shift+N.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants