feat: On mobile devices, pressing Enter by default does not send the message, but performs a normal line break

This commit is contained in:
rxliuli 2024-09-19 21:13:24 +08:00
parent 2474d5b6d2
commit 79b46d793a

View File

@ -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();
}