From e37dd8b93e87f61f02fe5878c89a5f04f8a8c938 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 6 Jul 2022 18:35:45 -0700 Subject: [PATCH] Disable enter for touchscreens --- packages/client/src/pages/messaging/messaging-room.form.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/pages/messaging/messaging-room.form.vue b/packages/client/src/pages/messaging/messaging-room.form.vue index f2657dfa8..a6424a5fb 100644 --- a/packages/client/src/pages/messaging/messaging-room.form.vue +++ b/packages/client/src/pages/messaging/messaging-room.form.vue @@ -128,7 +128,7 @@ function onKeydown(ev: KeyboardEvent) { if ((ev.key === 'Enter') && (ev.ctrlKey || ev.metaKey)) { textEl.value += '\n'; } - else if (ev.key === 'Enter' && !ev.shiftKey && canSend) { + else if (ev.key === 'Enter' && !ev.shiftKey && !('ontouchstart' in document.documentElement) && canSend) { send(); } }