mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-08-18 21:05:32 +00:00
Fix: Prevent auto-send when pressing Enter with a non-English input method (#700)
This commit is contained in:
parent
579cde8ff3
commit
8aab59165d
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ function toastFetchError(text, error) {
|
|||
globalThis.toastFetchError = toastFetchError;
|
||||
|
||||
chatInput.addEventListener("keydown", (e) => {
|
||||
if (e.key === "Enter" && !e.shiftKey) {
|
||||
if (e.key === "Enter" && !e.shiftKey && !e.isComposing && e.keyCode !== 229) {
|
||||
e.preventDefault();
|
||||
sendMessage();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue