Trigger button action of the selected nodes with new Hotkey

This commit is contained in:
GogoVega
2024-10-22 15:14:46 +02:00
parent 83acc4836b
commit 5a1c18de24
2 changed files with 8 additions and 3 deletions

View File

@@ -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,