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

Open
opened 2026-02-16 18:12:28 -05:00 by yindo · 1 comment
Owner

Originally created by @cantpr09ram on GitHub (Feb 16, 2026).

Originally assigned to: @kommander on GitHub.

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

Originally created by @cantpr09ram on GitHub (Feb 16, 2026). Originally assigned to: @kommander on GitHub. ### 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
yindo added the opentuibug labels 2026-02-16 18:12:28 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 16, 2026):


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

  • #8652: Keyboard shortcuts don't work while Korean IME is active on macOS — This appears to be the same issue but with a different IME (Korean vs. Zhuyin). The underlying cause is likely identical.

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

@github-actions[bot] commented on GitHub (Feb 16, 2026): --- This issue might be a duplicate or closely related to existing issues. Please check: - #8652: Keyboard shortcuts don't work while Korean IME is active on macOS — This appears to be the same issue but with a different IME (Korean vs. Zhuyin). The underlying cause is likely identical. For keybind-related issues and documentation, please also see our pinned keybinds issue: #4997
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9445