Fix coding style
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
This commit is contained in:
parent
1346416d20
commit
063b26835e
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue