Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit db0bf64

Browse files
author
Alun Turner
committed
revert regression fix
1 parent a634d4d commit db0bf64

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/views/rooms/wysiwyg_composer/hooks/useInputEventProcessor.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ export function useInputEventProcessor(onSend: () => void): (event: WysiwygEvent
2929

3030
const isKeyboardEvent = event instanceof KeyboardEvent;
3131
const isEnterPress =
32-
!isCtrlEnter &&
33-
(isKeyboardEvent ? event.key === "Enter" && !event.shiftKey : event.inputType === "insertParagraph");
32+
!isCtrlEnter && (isKeyboardEvent ? event.key === "Enter" : event.inputType === "insertParagraph");
3433
// sendMessage is sent when ctrl+enter is pressed
3534
const isSendMessage = !isKeyboardEvent && event.inputType === "sendMessage";
3635

0 commit comments

Comments
 (0)