prevent default for good enter
This commit is contained in:
parent
e37dd8b93e
commit
81d8c223ad
1 changed files with 1 additions and 0 deletions
|
@ -129,6 +129,7 @@ function onKeydown(ev: KeyboardEvent) {
|
|||
textEl.value += '\n';
|
||||
}
|
||||
else if (ev.key === 'Enter' && !ev.shiftKey && !('ontouchstart' in document.documentElement) && canSend) {
|
||||
ev.preventDefault();
|
||||
send();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue