Skip to content

Enter key sends message instead of dismissing IME candidate box #70

@bobleer

Description

@bobleer

Problem Description

On macOS, when using a Chinese input method (such as Sogou Input, Tencent Input, or system default Chinese IME), pressing Enter while the candidate box is still visible will send the message immediately, instead of just closing/dismissing the candidate box as expected.

Expected Behavior

When the Chinese IME candidate box is visible, pressing Enter should dismiss the candidate box without sending the message. The message should only be sent after the candidate box is closed.

Actual Behavior

Pressing Enter while the candidate box is visible sends the message immediately, even though the user has not finished composing.

Steps to Reproduce

  1. Open a chat window or any text input field on macOS
  2. Switch to Chinese input method
  3. Start typing to bring up the candidate box
  4. Without closing the candidate box, press Enter
  5. The message is sent while the candidate box is still visible

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions