mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #17141] issue: Cmd+Enter shortcut to send message fails after activating IME #56848
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @detecti1 on GitHub (Sep 2, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17141
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.26
Ollama Version (if applicable)
No response
Operating System
macOS 15.6
Browser (if applicable)
Chrome 138
Confirmation
README.md.Expected Behavior
When
Enter Key Behaviorset toCtrl+Enter to Send, pressing Cmd+Enter (or Ctrl+Enter) should send the message.Actual Behavior
After upgrading from v0.6.21 to v0.6.26, the Cmd+Enter shortcut to send a message stops working if an Input Method Editor (IME) has been activated at any point during the session.
Once an IME (e.g., for Chinese, Japanese, or Korean input) is used in the message field, the shortcut becomes permanently disabled for that page load. This happens even if the user switches back to a standard English layout and the IME is no longer active.
The shortcut only functions correctly if the user only uses a non-IME keyboard layout.
Steps to Reproduce
Logs & Screenshots
N/A
Additional Information
This appears to be a regression potentially introduced by the fix for issue #16615.
I did some initial debugging to isolate the cause. My investigation led me to the new
inOrNearCompositionlogic withinMessageInput.svelte. To test whether this new logic was related to the issue, I used my browser's developer tools to override the compiled JavaScript and force theinOrNearCompositioncheck to always returnfalse, effectively disabling its event-blocking behavior.After applying this change, the
Cmd+Entershortcut began working correctly under all conditions, regardless of IME usage.While this is not a proper fix, this test strongly suggests that the new composition-handling logic is incorrectly preventing the keydown event for the shortcut from propagating, even after the IME is no longer in an active composition state.
@GrayXu commented on GitHub (Sep 3, 2025):
Same problem, no matter what sending method is set, as long as the input method is opened, the hotkeys will become invalid.
@FZZoooh commented on GitHub (Sep 6, 2025):
Same problem on Windows. Whatever the sending key is set to, Enter or Ctrl + Enter, it fails. Once the IME has been used (even if it is disabled later again), Enter always inserts a new line, instead of sending the message.
I upgraded it from 0.6.22 to 0.6.26 and then found this problem.
@CodeBoy2006 commented on GitHub (Sep 10, 2025):
It seems to have been fixed in version 0.6.27