From 063b26835e154ebd32e20ace80ab19a058a13148 Mon Sep 17 00:00:00 2001 From: czeidler Date: Fri, 20 Nov 2020 19:02:52 +1300 Subject: [PATCH] Fix coding style Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com> --- src/components/views/rooms/SendMessageComposer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/SendMessageComposer.js b/src/components/views/rooms/SendMessageComposer.js index 35be02b2a3..e88060304a 100644 --- a/src/components/views/rooms/SendMessageComposer.js +++ b/src/components/views/rooms/SendMessageComposer.js @@ -124,7 +124,8 @@ export default class SendMessageComposer extends React.Component { } const hasModifier = event.altKey || event.ctrlKey || event.metaKey || event.shiftKey; const ctrlEnterToSend = !!SettingsStore.getValue('MessageComposerInput.ctrlEnterToSend'); - const send = ctrlEnterToSend ? event.key === Key.ENTER && isOnlyCtrlOrCmdKeyEvent(event) + const send = ctrlEnterToSend + ? event.key === Key.ENTER && isOnlyCtrlOrCmdKeyEvent(event) : event.key === Key.ENTER && !hasModifier; if (send) { this._sendMessage();