From db0bf64e4bd723357b029fcb989acd68c9f8e353 Mon Sep 17 00:00:00 2001 From: Alun Turner Date: Thu, 12 Jan 2023 17:05:26 +0000 Subject: [PATCH] revert regression fix --- .../rooms/wysiwyg_composer/hooks/useInputEventProcessor.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/views/rooms/wysiwyg_composer/hooks/useInputEventProcessor.ts b/src/components/views/rooms/wysiwyg_composer/hooks/useInputEventProcessor.ts index 0cd86dcf31e..fb36bbf2d16 100644 --- a/src/components/views/rooms/wysiwyg_composer/hooks/useInputEventProcessor.ts +++ b/src/components/views/rooms/wysiwyg_composer/hooks/useInputEventProcessor.ts @@ -29,8 +29,7 @@ export function useInputEventProcessor(onSend: () => void): (event: WysiwygEvent const isKeyboardEvent = event instanceof KeyboardEvent; const isEnterPress = - !isCtrlEnter && - (isKeyboardEvent ? event.key === "Enter" && !event.shiftKey : event.inputType === "insertParagraph"); + !isCtrlEnter && (isKeyboardEvent ? event.key === "Enter" : event.inputType === "insertParagraph"); // sendMessage is sent when ctrl+enter is pressed const isSendMessage = !isKeyboardEvent && event.inputType === "sendMessage";