anomalyco / anomalyco/opencode

Keybind Ctrl + . does not work with non-US keyboard layouts (e.g., Russian)

Open
#40,048 1 comment 1 reaction 1 assignee View on GitHub

@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, so Ctrl + 190 does nothing.
  • The period character . is produced by the physical key with code 191, so the keybind only fires with Ctrl + 191.
Plugins

None (default)

OpenCode version

1.18.11 (desktop app)

Steps to reproduce
  1. Switch the keyboard layout to Russian (ЙЦУКЕН).
  2. Press Ctrl + . on the physical period key (US key code 190).
  3. The keybind does not fire.
  4. Press Ctrl + 191 (the key that types . on the Russian layout).
  5. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.