mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
prevent default for good enter
This commit is contained in:
parent
50e7c828f3
commit
a66f9ef810
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