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

Commit

Permalink
revert regression fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alun Turner committed Jan 12, 2023
1 parent a634d4d commit db0bf64
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit db0bf64

Please sign in to comment.