Skip to content

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

Closed as not planned

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

Activity

  1. github-actions commented on Mar 1, 2026

    @github-actions
    Contributor

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

    If your issue is distinct (specifically the first keystroke being swallowed after a newline), please add a comment clarifying how it differs from the above.

  2. github-actions commented on Apr 30, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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