opencode icon indicating copy to clipboard operation
opencode copied to clipboard

IME: Enter key triggers list selection during composition

Open DRunkPiano114 opened this issue 10 months ago • 1 comments

Description

Bug Description

When using an IME (Input Method Editor) for Chinese (I guess this also happens in terms of Korean and Japanese), input in a list with search/filter functionality, pressing Enter to confirm the IME composition also triggers the list item selection.

Image

Expected Behavior

Only the IME composition should be confirmed. The list selection should not be triggered.

Actual Behavior

Both the IME composition is confirmed AND the currently selected list item is activated/selected.

Plugins

N/A

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

macOS 15.5

Terminal

No response

DRunkPiano114 avatar Jan 20 '26 07:01 DRunkPiano114

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

  • #8652: bug(tui): Keyboard shortcuts don't work while Korean IME is active on macOS
  • #6950: [WebUI] Enter submits on IME composition confirm, preventing Japanese input
  • #3404: opentui: Unable to input Chinese characters

These issues are all related to IME (Input Method Editor) handling, particularly with CJK (Chinese, Japanese, Korean) inputs. The core problem appears to be that Enter key and other keyboard events are not being properly handled during IME composition across different UI modes (TUI and WebUI).

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Jan 20 '26 07:01 github-actions[bot]