exo icon indicating copy to clipboard operation
exo copied to clipboard

fix: prevent form submission during IME composition

Open rickychen-infinirc opened this issue 8 months ago • 0 comments

Fix issue with Enter key handling during Chinese (and other IME-based) text input

Add detection for IME composition state using event.isComposing flag Add fallback check for keyCode 229 which indicates IME processing Prevent message submission when Enter is pressed during active IME composition Allow normal Enter behavior for confirming IME selections Maintains existing Shift+Enter functionality for line breaks

Before:

https://github.com/user-attachments/assets/2685e0b9-9a5f-43c7-9d4b-10569b697a70

After:

https://github.com/user-attachments/assets/272563fc-760a-4c6b-b35e-d834d1d7d218

rickychen-infinirc avatar Apr 14 '25 01:04 rickychen-infinirc