mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #7364] Bug: Incorrect behavior when pressing Enter with non-English keyboard input #14718
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 @EulerBlind on GitHub (Nov 26, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7364
Installation Method
ubuntu docker compose
Environment
Open WebUI Version: v0.4.4
Ollama (if applicable): v0.4.4
Operating System: Ubuntu 23.10
Browser (if applicable): Edge 130.0.2849.80
Confirmation:
Expected Behavior:
In non-English input mode, after typing a word, pressing Enter should select the word, and pressing Enter again should submit the prompt to wait for the result.
Actual Behavior:
When pressing Enter after typing an English word using a non-English keyboard layout, the system immediately calls the language model instead of selecting the word or allowing further editing.
Description
Bug Summary:
In non-English input mode on Mac, pressing Enter after typing an English word triggers the language model call immediately instead of selecting the word and requiring another Enter press to submit the prompt.
Reproduction Details
Steps to Reproduce:
Logs and Screenshots
Screenshots/Screen Recordings (if applicable):

e.g.
It will submit [fa s ta pi] and call llm, but I just want type word [fastapi].
Additional Information
It seems to be related to recent commits, such as this judgment method. This issue does not exist in version 0.4.0.

@tjbck commented on GitHub (Nov 26, 2024):
Good catch, Fixed on dev!
@EulerBlind commented on GitHub (Dec 6, 2024):
@tjbck Under non-English input methods, the input content conflicts with the auto-complete feature. If auto-complete is activated, it causes the incomplete pinyin input to turn into a prompt.
@freejool commented on GitHub (Mar 18, 2025):
Hi! I have the same issue on Open WebUI version 0.5.20, Safari 18.3, MacOS Sequoia 15.3.1 (24D70)
Chrome is Ok.
It appears to have come with one of the recent commits.
And I have the auto-completion funtion off.
@rebelliouswhiz commented on GitHub (May 19, 2025):
I observed the same behavior with the latest version, v0.6.10
When I am trying to type Mooncake and press Enter, I get feeding llm instead:
@EulerBlind @tjbck can we reopen the issue?