mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 15:34:26 +01:00
Trigger button action of the selected nodes with new Hotkey
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user