mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 15:53:59 -06:00
[GH-ISSUE #16608] issue: macOS Chinese IME: Pressing Enter while composing text sends the message immediately (missing composition state check) #56640
Reference in New Issue
Block a user
Originally created by @yuliang615 on GitHub (Aug 14, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16608
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.21
Ollama Version (if applicable)
No response
Operating System
mac os safari
Browser (if applicable)
safari
Confirmation
README.md.Expected Behavior
Pressing Enter during composition (while IME candidate list is active) should not send the message — it should only confirm the selected character.
Only after compositionend should the next Enter trigger message submission.
Actual Behavior
On macOS, pressing Enter during Chinese IME composition immediately triggers the send action.
On Windows IME, this often behaves correctly because the IME handles Enter differently.
Steps to Reproduce
Set up the input method:
On macOS, switch to a Chinese IME using Control + Space until you see:
“繁體中文 – 注音” (Traditional Chinese – Zhuyin)
or “簡體中文 – 拼音” (Simplified Chinese – Pinyin)
in the top menu bar.
Begin typing in the chat input:
Click inside the chat input box.
Type a Pinyin or Zhuyin sequence that will produce a candidate list of characters — for example:
Type zhong → you should see candidates like “中”, “重”, “種”, etc.
Do not press the space bar — keep the candidate list open.
Press Enter while still composing:
With the candidate list still visible (IME composition ongoing), press the Enter key once to confirm the first candidate.
Bug: Instead of confirming the character and allowing continued typing, the browser sends the entire chat message immediately.
The message containing the incomplete or partially composed text is sent.
The composition ends abruptly and your intended input is not completed.
In many other applications (Slack, Notion, Google Docs), pressing Enter in this state only confirms the character and does not send.
Logs & Screenshots
Additional Information
No response
@ShirasawaSama commented on GitHub (Aug 14, 2025):
用的是什么输入法呢?我用mac自带的输入法没有这个问题
@tjbck commented on GitHub (Aug 14, 2025):
Can't seem to reproduce from our end, keep us updated!