Skip to content

Don't submit chat input on Enter during IME composition - #140

Open
chaspy wants to merge 1 commit into
cloudflare:mainfrom
chaspy:fix-ime-enter-submit
Open

Don't submit chat input on Enter during IME composition#140
chaspy wants to merge 1 commit into
cloudflare:mainfrom
chaspy:fix-ime-enter-submit

Conversation

@chaspy

@chaspy chaspy commented Aug 11, 2026

Copy link
Copy Markdown

Problem

When typing with an IME (Japanese, Chinese, Korean, etc.), pressing Enter to confirm a text conversion sends the chat message instead of just committing the composition. This makes the chat input nearly unusable for CJK users.

Fix

Check KeyboardEvent.isComposing before treating Enter as submit, in three places in ChatInterface.tsx:

  • chat message send
  • slash-command picker selection
  • chat rename input

6 insertions, 4 deletions. Verified locally with a Japanese IME: Enter during conversion now only commits the composition; Enter after conversion sends as before.

🤖 Generated with Claude Code

When typing with an IME (Japanese, Chinese, Korean, etc.), pressing
Enter to confirm a text conversion would send the message instead of
just committing the composition. Check KeyboardEvent.isComposing on
the chat send, slash-command picker, and chat rename Enter handlers.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@github-actions github-actions Bot added the workshop/frontend Changes to the Workshop frontend label Aug 11, 2026
@chaspy

chaspy commented Aug 11, 2026

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

workshop/frontend Changes to the Workshop frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant