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

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
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
1 changed files with 1 additions and 0 deletions

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);
}
}