mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
dont handle both cmd+ctrl
This commit is contained in:
parent
5d698d66d0
commit
694fdebc71
@ -249,7 +249,10 @@ RED.keyboard = (function() {
|
|||||||
// One exception is shortcuts that include both Cmd and Ctrl. We don't
|
// 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
|
// support them - but we need to make sure we don't block browser-specific
|
||||||
// shortcuts (such as Cmd-Ctrl-F for fullscreen).
|
// 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;
|
slot = slot.ctrl;
|
||||||
}
|
}
|
||||||
if (slot && evt.shiftKey) {
|
if (slot && evt.shiftKey) {
|
||||||
|
Loading…
Reference in New Issue
Block a user