mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-22 05:30:19 +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();
|
||||
return;
|
||||
}
|
||||
if (shouldSubmit(e) && promptHints.length === 0) {
|
||||
if (!isMobileScreen && shouldSubmit(e) && promptHints.length === 0) {
|
||||
doSubmit(userInput);
|
||||
e.preventDefault();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user