Fix new line created when enter is pressed (#10064)

This commit is contained in:
Florian Duros 2023-02-03 10:48:12 +01:00 committed by GitHub
parent b7cd28bd29
commit 469228f45e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 3 deletions

View file

@ -168,13 +168,15 @@ function handleInputEvent(event: InputEvent, send: Send, isCtrlEnterToSend: bool
case "insertParagraph":
if (!isCtrlEnterToSend) {
send();
return null;
}
return null;
break;
case "sendMessage":
if (isCtrlEnterToSend) {
send();
return null;
}
return null;
break;
}
return event;