From 81d8c223ad52fc842587a9233598bd41a97ab5f6 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 6 Jul 2022 18:39:32 -0700 Subject: [PATCH] prevent default for good enter --- packages/client/src/pages/messaging/messaging-room.form.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/client/src/pages/messaging/messaging-room.form.vue b/packages/client/src/pages/messaging/messaging-room.form.vue index a6424a5fb4..0b609e0581 100644 --- a/packages/client/src/pages/messaging/messaging-room.form.vue +++ b/packages/client/src/pages/messaging/messaging-room.form.vue @@ -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(); } }