From 694fdebc71d968b12b3e95eb3d47aa9dba1e4a6b Mon Sep 17 00:00:00 2001 From: Stephen McLaughlin <44235289+Steve-Mcl@users.noreply.github.com> Date: Sat, 10 Jun 2023 16:23:21 +0100 Subject: [PATCH] dont handle both cmd+ctrl --- .../@node-red/editor-client/src/js/ui/keyboard.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/keyboard.js b/packages/node_modules/@node-red/editor-client/src/js/ui/keyboard.js index a081656fc..fdf4fe1ef 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/keyboard.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/keyboard.js @@ -249,7 +249,10 @@ RED.keyboard = (function() { // One exception is shortcuts that include both Cmd and Ctrl. We don't // support them - but we need to make sure we don't block browser-specific // shortcuts (such as Cmd-Ctrl-F for fullscreen). - if ((evt.ctrlKey || evt.metaKey) && (evt.ctrlKey !== evt.metaKey)) { + if (evt.ctrlKey && evt.metaKey) { + return null; // dont handle both cmd+ctrl - let browser handle this + } + if (evt.ctrlKey || evt.metaKey) { slot = slot.ctrl; } if (slot && evt.shiftKey) {