You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
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:
@@ -734,6 +734,7 @@ export default class MessageComposerInput extends React.Component {
|
|||||||
}[ev.keyCode];
|
}[ev.keyCode];
|
||||||
|
|
||||||
if (ctrlCmdCommand) {
|
if (ctrlCmdCommand) {
|
||||||
|
ev.preventDefault(); // to prevent clashing with Mac's minimize window
|
||||||
return this.handleKeyCommand(ctrlCmdCommand);
|
return this.handleKeyCommand(ctrlCmdCommand);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user