-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[Desktop] Chinese input: first keystroke after newline is swallowed #15506
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingwebRelates to opencode on web / desktopRelates to opencode on web / desktopwindows
Description
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
- Open OpenCode Desktop client
- Type Chinese text in the input dialog
- Press Enter to add a newline
- 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingwebRelates to opencode on web / desktopRelates to opencode on web / desktopwindows