Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.

fix: Prevent sending message on IME confirmation with Enter key#919

Open
morikoudayo wants to merge 1 commit into
voideditor:mainfrom
morikoudayo:fix-ime-enter-key-submit
Open

fix: Prevent sending message on IME confirmation with Enter key#919
morikoudayo wants to merge 1 commit into
voideditor:mainfrom
morikoudayo:fix-ime-enter-key-submit

Conversation

@morikoudayo

Copy link
Copy Markdown

When typing in languages that require IME composition (e.g., Japanese) in a chat interface with an LLM, Enter needs to be pressed twice. However, the message is currently sent on the first Enter key press during composition.

To fix this, I prevented the default action when e.browserEvent.isComposing is true, ensuring that the message is not sent while IME composition is still in progress.

@andrewpareles andrewpareles force-pushed the main branch 11 times, most recently from 360390b to b3166e7 Compare June 2, 2026 22:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant