mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Remove the default key and rename the action
Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
This commit is contained in:
parent
5a1c18de24
commit
1cbc4fd9da
@ -91,8 +91,7 @@
|
|||||||
"alt-shift-w": "core:show-last-hidden-flow",
|
"alt-shift-w": "core:show-last-hidden-flow",
|
||||||
"ctrl-+": "core:zoom-in",
|
"ctrl-+": "core:zoom-in",
|
||||||
"ctrl--": "core:zoom-out",
|
"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": {
|
"red-ui-editor-stack": {
|
||||||
"ctrl-enter": "core:confirm-edit-tray",
|
"ctrl-enter": "core:confirm-edit-tray",
|
||||||
|
@ -3014,7 +3014,7 @@ RED.nodes = (function() {
|
|||||||
RED.events.on('deploy', function () {
|
RED.events.on('deploy', function () {
|
||||||
allNodes.clearState()
|
allNodes.clearState()
|
||||||
});
|
});
|
||||||
RED.actions.add("core:click-selected-nodes-button", function () {
|
RED.actions.add("core:trigger-selected-nodes-action", function () {
|
||||||
const selectedNodes = RED.view.selection().nodes || [];
|
const selectedNodes = RED.view.selection().nodes || [];
|
||||||
// Triggers the button action of the selected nodes
|
// Triggers the button action of the selected nodes
|
||||||
selectedNodes.forEach((node) => RED.view.clickNodeButton(node));
|
selectedNodes.forEach((node) => RED.view.clickNodeButton(node));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user