[PR #7573] fix(tui): normalize ctrl keybinds on non-latin layouts #12448

Open
opened 2026-02-16 18:17:21 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7573

State: open
Merged: No


What does this PR do?

When Ctrl/Alt/Cmd is held, the keybind now uses the physical key’s base letter (like “v”) instead of the layout-specific character (like “м”). This makes modified shortcuts like Ctrl+V and Ctrl+P work even when the macOS input source is Russian.

How did you verify your code works?

Related: anomalyco/opencode#6753. This PR is a small TUI‑only fix that normalizes modified keys without a config toggle.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7573 **State:** open **Merged:** No --- ### What does this PR do? When Ctrl/Alt/Cmd is held, the keybind now uses the physical key’s base letter (like “v”) instead of the layout-specific character (like “м”). This makes modified shortcuts like Ctrl+V and Ctrl+P work even when the macOS input source is Russian. ### How did you verify your code works? - Switched macOS input source to Russian. - Copied an image and verified `Ctrl+V` pastes in the TUI input. - Verified `Ctrl+P` opens the command list. - Rechecked in English layout. - Fixes #7556 Related: anomalyco/opencode#6753. This PR is a small TUI‑only fix that normalizes modified keys without a config toggle.
yindo added the pull-request label 2026-02-16 18:17:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12448