prevent default for good enter
This commit is contained in:
parent
e37dd8b93e
commit
81d8c223ad
|
@ -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 New Issue