Skip to content

[Desktop] Chinese input: first keystroke after newline is swallowed #15506

@u49770008

Description

@u49770008

Description

Bug Description

When typing Chinese in the input dialog, the first keystroke after pressing Enter to add a newline gets swallowed. This doesn't happen with English input.

Environment

  • OS: Windows X-lite (simplified Win11)
  • Terminal: OpenCode Desktop client
  • Input Method: 手心输入法 (Shouxin Input Method)
  • OpenCode: 1.2.14

Steps to Reproduce

  1. Open OpenCode Desktop client
  2. Type Chinese text in the input dialog
  3. Press Enter to add a newline
  4. Try to continue typing - first keystroke is swallowed

Expected

Should be able to continue typing Chinese normally after newline

Additional

  • The issue appears to be related to input method key interception
  • Ctrl+J is intercepted by the input method (used to toggle Chinese/English mode)
  • English input works fine
  • Only Chinese input has this problem
  • Using Ctrl+J doesn't create a newline, it just toggles the input method

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktopwindows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions