anomalyco / anomalyco/opencode
Keybind Ctrl + . does not work with non-US keyboard layouts (e.g., Russian)
@Hona is already working on this.
Since Aug 1, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
The Ctrl + . keybind is matched against the produced character of the pressed key rather than its physical position. On non-US layouts the period character lives on a different physical key, so the shortcut requires pressing a key the user is not used to.
Concretely with the Russian (ЙЦУКЕН) layout:
- The physical period key (US key code 190) types
юon the Russian layout, soCtrl + 190does nothing. - The period character
.is produced by the physical key with code 191, so the keybind only fires withCtrl + 191.
Plugins
None (default)
OpenCode version
1.18.11 (desktop app)
Steps to reproduce
- Switch the keyboard layout to Russian (ЙЦУКЕН).
- Press
Ctrl + .on the physical period key (US key code 190). - The keybind does not fire.
- Press
Ctrl + 191(the key that types.on the Russian layout). - The keybind fires.
Screenshot and/or share link
N/A
Operating System
Windows 10 22H2
Terminal
N/A — desktop app
Additional context
Expected behavior: keybinds should be layout-independent and bind to the physical key position (e.g., e.code === "Period" for key code 190) instead of the produced character (e.key). With the current behavior the same physical key triggers different keybinds depending on the active layout, which is confusing when switching between layouts.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.