X Tutup
Skip to content

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

Open
morikoudayo wants to merge 1 commit intovoideditor: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 intovoideditor:mainfrom
morikoudayo:fix-ime-enter-key-submit

Conversation

@morikoudayo
Copy link

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.

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.

1 participant

X Tutup