prevent default for good enter

This commit is contained in:
ThatOneCalculator 2022-07-06 18:39:32 -07:00
parent 50e7c828f3
commit a66f9ef810

View file

@ -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();
}
}