Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Enter key interrupts IME composition in MessageInput component #444

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

minai621
Copy link

Summary
This PR fixes an issue in the MessageInput component where pressing the Enter key during IME (Input Method Editor) composition interrupts the composition process. Users typing in languages that require IME input, such as Korean, Chinese, or Japanese, are affected by this bug.

Problem
When users are composing text using an IME, the onKeyDown event handler does not account for the composition state. Pressing the Enter key during composition prematurely ends the process, resulting in incomplete characters or leaving residual text in the input field.

Related Issue
Closes #443

Checklist

  • Tested the changes locally
  • npm run format:write to format the code

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.

Enter key interrupts IME composition in MessageInput component
1 participant