IME: Enter key triggers list selection during composition #6902

Closed
opened 2026-02-16 18:05:33 -05:00 by yindo · 1 comment
Owner

Originally created by @DRunkPiano114 on GitHub (Jan 20, 2026).

Originally assigned to: @kommander on GitHub.

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

Originally created by @DRunkPiano114 on GitHub (Jan 20, 2026). Originally assigned to: @kommander on GitHub. ### 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. <img width="1341" height="737" alt="Image" src="https://github.com/user-attachments/assets/9d6cbe07-ae42-4578-8399-480fa79f27e8" /> ## 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_
yindo added the opentuibug labels 2026-02-16 18:05:33 -05:00
yindo closed this issue 2026-02-16 18:05:33 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2026):

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] commented on GitHub (Jan 20, 2026): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6902