From 49c4d345f28919b7c8d30604616d08aa136957f6 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 6 Jul 2022 17:59:21 -0700 Subject: [PATCH] Don't need for shift key --- packages/client/src/pages/messaging/messaging-room.form.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/pages/messaging/messaging-room.form.vue b/packages/client/src/pages/messaging/messaging-room.form.vue index 2e008bf40e..b50d626bf0 100644 --- a/packages/client/src/pages/messaging/messaging-room.form.vue +++ b/packages/client/src/pages/messaging/messaging-room.form.vue @@ -125,10 +125,10 @@ function onDrop(ev: DragEvent): void { function onKeydown(ev: KeyboardEvent) { typing(); - if ((ev.key === 'Enter') && (ev.ctrlKey || ev.metaKey || ev.shiftKey) && canSend) { + if ((ev.key === 'Enter') && (ev.ctrlKey || ev.metaKey)) { textEl.value += '\n' } - else if (ev.key === 'Enter' && canSend) { + else if (ev.key === 'Enter' && !ev.shiftKey && canSend) { send(); } }