Skip to content

[FEATURE]: Keybinds should work regardless of active input method (non-English IME support) #16252

@eunjios

Description

@eunjios

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Enhancement

Currently, keybinds (including the leader key Ctrl+x) appear to rely on character values rather than physical key codes. This means that when a non-English input method is active (e.g., Korean), shortcuts don't work at all.

For example, with Korean IME active, pressing Ctrl+x is registered as Ctrl+ㅌ (the Korean character mapped to the physical X key), so the leader key never fires. This effectively locks non-English users out of all keybind functionality until they manually switch to English input.

Benefits

  • Non-English speaking users can use shortcuts without constantly switching their input method
  • This is the standard approach used by other tools (e.g., VS Code, most modern editors)
  • Eliminates a common source of confusion — users think shortcuts are broken when they're simply in the wrong input language
  • Affects all leader key combinations: session navigation, new session, etc.

Reproduce

  1. Set keyboard input method to any non-English language (e.g., Korean)
  2. Press Ctrl+X to activate the leader key
  3. Nothing happens — the leader key is not recognized
  4. Switch input to English → works as expected

Environment

  • OpenCode version: 1.2.17
  • Interface: TUI
  • OS: macOS
  • Keyboard input method: Any non-English IME

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions