Skip to content

bug(tui): Keyboard shortcuts don’t work while Zhuyin ((tranditional) IME is active on macOS (Ghostty) #13805

Closed

Description

@cantpr09ram

Description

On macOS, when the input source is Zhuyin (tranditional), most/all keyboard shortcuts inside OpenCode TUI stop working. Only Ctrl+C still works (interrupt). Switching the macOS input source to English (ABC) immediately restores all shortcuts.

This seems related to #8652 (Korean IME on macOS), but for Zhuyin(tranditional)

Expected behavior

Shortcuts should work regardless of active input source / IME.

Actual behavior

Shortcuts are ignored while Zhuyin IME is active; only Ctrl+C works.

Additional notes / diagnostics

In the same Ghostty session, running cat shows Ctrl sequences can reach the child process (e.g. ^P is received). This suggests the terminal/PTY can deliver control characters, but OpenCode TUI does not handle shortcuts while IME is active.

try bunx opencode-ai@snapshot-kmdr-debug, still not work.

Plugins

no

OpenCode version

1.2.1

Steps to reproduce

  1. Switch macOS input source to Zhuyin (tranditional)
  2. Launch opencode (TUI)
  3. Try common shortcuts (e.g. Ctrl+P, Ctrl+X leader shortcuts, etc.)
  4. Observe nothing happens
  5. Switch input source to English (ABC)
  6. Try the same shortcuts again → works

Screenshot and/or share link

No response

Operating System

macOS 26.2

Terminal

Ghostty 1.2.3

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Feb 16, 2026
  2. github-actions commented on Feb 16, 2026

    @github-actions
    Contributor

    This issue might be a duplicate or closely related to existing issues. Please check:

    For keybind-related issues and documentation, please also see our pinned keybinds issue: #4997

  3. github-actions commented on Apr 18, 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

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions