prevent default for good enter

This commit is contained in:
ThatOneCalculator 2022-07-06 18:39:32 -07:00
parent e37dd8b93e
commit 81d8c223ad

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