Skip to main content

Enter key submits messages while composing Chinese text with an IME

Hi Wonder team,

I've encountered a frustrating issue when typing Traditional Chinese using an Input Method Editor (IME).

Steps to reproduce:

  1. Focus the AI chat input in Wonder.

  2. Switch to a Chinese IME (e.g., macOS Traditional Chinese input).

  3. Type Chinese text and press Enter to confirm the current composition or candidate.

  4. The message is immediately submitted instead of allowing the IME to finish composing.

Expected behavior:
Pressing Enter during an active IME composition should only confirm the selected Chinese character or phrase. It should not submit the message.

Actual behavior:
Wonder interprets the Enter key as a submit action, even when the IME is still composing text. This causes incomplete messages to be sent unintentionally.

Suggested fix:
Please ensure keyboard handlers respect IME composition state, including event.isComposing and compositionstart / compositionend events. Also consider platform-specific behavior such as keyCode === 229 where applicable.

Impact:
This significantly disrupts the experience for users typing Chinese, Japanese, Korean, and other languages that rely on IMEs.

IME support should be treated as a basic input requirement rather than an optional localization feature.

Thanks!

Log in to comment and vote

No comments yet

Be the first to share your thoughts.