Skip to content

fix(chat-ui): prevent Enter send during IME composition#438

Open
pandego wants to merge 1 commit intoRightNow-AI:mainfrom
pandego:fix/429-ime-enter
Open

fix(chat-ui): prevent Enter send during IME composition#438
pandego wants to merge 1 commit intoRightNow-AI:mainfrom
pandego:fix/429-ime-enter

Conversation

@pandego
Copy link

@pandego pandego commented Mar 8, 2026

Summary

Fix chat input Enter handling for CJK IME composition in the dashboard UI.

When users are composing text with an IME, pressing Enter should confirm the current candidate, not send the message.

What changed

  • Updated the chat textarea Enter handler in crates/openfang-api/static/index_body.html
  • Added !$event.isComposing guard before calling sendMessage()

Issue

Closes #429

Validation

  • Manual logic validation against browser IME behavior:
    • Enter sends only when isComposing is false
    • Shift+Enter behavior remains unchanged
  • Local Rust checks were not runnable in this environment because cargo is not installed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chat UI: Enter key sends message during CJK IME composition

1 participant