attempt to fix clash of Cmd-M on Mac. Should fix vector-im/riot-web#7047

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-07-18 11:28:48 +01:00
parent 3e956514b3
commit 6bb88c0548
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -734,6 +734,7 @@ export default class MessageComposerInput extends React.Component {
}[ev.keyCode];
if (ctrlCmdCommand) {
ev.preventDefault(); // to prevent clashing with Mac's minimize window
return this.handleKeyCommand(ctrlCmdCommand);
}
}