mirror of https://github.com/node-red/node-red.git
Trigger button action of the selected nodes with new Hotkey
parent
83acc4836b
commit
5a1c18de24
|
@ -91,8 +91,8 @@
|
|||
"alt-shift-w": "core:show-last-hidden-flow",
|
||||
"ctrl-+": "core:zoom-in",
|
||||
"ctrl--": "core:zoom-out",
|
||||
"ctrl-0": "core:zoom-reset"
|
||||
|
||||
"ctrl-0": "core:zoom-reset",
|
||||
"ctrl-shift-t": "core:click-selected-nodes-button"
|
||||
},
|
||||
"red-ui-editor-stack": {
|
||||
"ctrl-enter": "core:confirm-edit-tray",
|
||||
|
|
|
@ -3013,7 +3013,12 @@ RED.nodes = (function() {
|
|||
});
|
||||
RED.events.on('deploy', function () {
|
||||
allNodes.clearState()
|
||||
})
|
||||
});
|
||||
RED.actions.add("core:click-selected-nodes-button", function () {
|
||||
const selectedNodes = RED.view.selection().nodes || [];
|
||||
// Triggers the button action of the selected nodes
|
||||
selectedNodes.forEach((node) => RED.view.clickNodeButton(node));
|
||||
});
|
||||
},
|
||||
registry:registry,
|
||||
setNodeList: registry.setNodeList,
|
||||
|
|
Loading…
Reference in New Issue