You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the MessageInput component to enter text with an Input Method Editor (IME) for languages like Korean, pressing the Enter key during text composition prematurely ends the composition. This results in incomplete characters or unintended behavior, leaving residual characters in the input field.
To Reproduce
Steps to reproduce the behavior:
Navigate to the page containing the MessageInput component.
Click on the input area to focus it.
Switch your keyboard input method to a language that uses IME (e.g., Korean, Chinese, or Japanese).
Begin typing characters that require composition (e.g., Korean syllables).
While still composing (before finalizing the character), press the Enter key.
Observe that the composition is interrupted, and incomplete characters remain in the input field.
Expected behavior
Pressing the Enter key during IME composition should not interrupt the composition process. The character composition should complete normally, and the Enter key should only submit the message after the composition has ended.
Screenshots
2024-10-30.4.34.22.mov
Additional context
This issue occurs because the onKeyDown event handler does not account for the IME composition state. The Enter key event should be ignored while the user is in the middle of composing text with an IME.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using the MessageInput component to enter text with an Input Method Editor (IME) for languages like Korean, pressing the Enter key during text composition prematurely ends the composition. This results in incomplete characters or unintended behavior, leaving residual characters in the input field.
To Reproduce
Steps to reproduce the behavior:
Navigate to the page containing the MessageInput component.
Click on the input area to focus it.
Switch your keyboard input method to a language that uses IME (e.g., Korean, Chinese, or Japanese).
Begin typing characters that require composition (e.g., Korean syllables).
While still composing (before finalizing the character), press the Enter key.
Observe that the composition is interrupted, and incomplete characters remain in the input field.
Expected behavior
Pressing the Enter key during IME composition should not interrupt the composition process. The character composition should complete normally, and the Enter key should only submit the message after the composition has ended.
Screenshots
2024-10-30.4.34.22.mov
Additional context
This issue occurs because the onKeyDown event handler does not account for the IME composition state. The Enter key event should be ignored while the user is in the middle of composing text with an IME.
The text was updated successfully, but these errors were encountered: