mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-22 13:40:16 +09:00
feat: On mobile devices, pressing Enter by default does not send the message, but performs a normal line break
This commit is contained in:
parent
2474d5b6d2
commit
79b46d793a
@ -1098,7 +1098,7 @@ function _Chat() {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (shouldSubmit(e) && promptHints.length === 0) {
|
if (!isMobileScreen && shouldSubmit(e) && promptHints.length === 0) {
|
||||||
doSubmit(userInput);
|
doSubmit(userInput);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user