From 6bb88c0548474b7189069d943a0ff17f4b87b52d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 18 Jul 2018 11:28:48 +0100 Subject: [PATCH] attempt to fix clash of Cmd-M on Mac. Should fix vector-im/riot-web#7047 Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/rooms/MessageComposerInput.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/views/rooms/MessageComposerInput.js b/src/components/views/rooms/MessageComposerInput.js index 03ca16c72ce..16551f84460 100644 --- a/src/components/views/rooms/MessageComposerInput.js +++ b/src/components/views/rooms/MessageComposerInput.js @@ -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); } }