From 79b46d793a4ac39f00cc6a11da4997a3042827f5 Mon Sep 17 00:00:00 2001 From: rxliuli Date: Thu, 19 Sep 2024 21:13:24 +0800 Subject: [PATCH] feat: On mobile devices, pressing Enter by default does not send the message, but performs a normal line break --- app/components/chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 3d519dee722..6e03b7e8211 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -1098,7 +1098,7 @@ function _Chat() { e.preventDefault(); return; } - if (shouldSubmit(e) && promptHints.length === 0) { + if (!isMobileScreen && shouldSubmit(e) && promptHints.length === 0) { doSubmit(userInput); e.preventDefault(); }