diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js index e47ddcdc0..16f8f7a87 100755 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js @@ -2809,7 +2809,11 @@ RED.view = (function() { if (dblClickPrimed && mousedown_node == d && clickElapsed > 0 && clickElapsed < dblClickInterval) { mouse_mode = RED.state.DEFAULT; if (d.type != "subflow") { - RED.editor.edit(d); + if (/^subflow:/.test(d.type) && (d3.event.ctrlKey || d3.event.metaKey)) { + RED.workspaces.show(d.type.substring(8)); + } else { + RED.editor.edit(d); + } } else { RED.editor.editSubflow(activeSubflow); } @@ -2952,7 +2956,7 @@ RED.view = (function() { clickTime = now; dblClickPrimed = (lastClickNode == mousedown_node && (d3.event.touches || d3.event.button === 0) && - !d3.event.shiftKey && !d3.event.metaKey && !d3.event.altKey && !d3.event.ctrlKey && + !d3.event.shiftKey && !d3.event.altKey && clickElapsed < dblClickInterval ) lastClickNode = mousedown_node;