Skip to content

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

Closed as not planned

Description

@w1zx1

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.

Activity

  1. github-actions commented on Aug 1, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

  2. github-actions commented on Oct 1, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions