mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-04 23:20:07 +00:00
Allow selecting multi nodes without pressing extra keys
This commit is contained in:
2
src/litegraph.d.ts
vendored
2
src/litegraph.d.ts
vendored
@@ -1142,6 +1142,8 @@ export declare class LGraphCanvas {
|
||||
allow_interaction: boolean;
|
||||
/** allows to change a connection with having to redo it again */
|
||||
allow_reconnect_links: boolean;
|
||||
/** allow selecting multi nodes without pressing extra keys */
|
||||
multi_select: boolean;
|
||||
/** No effect */
|
||||
allow_searchbox: boolean;
|
||||
always_render_background: boolean;
|
||||
|
||||
@@ -5202,6 +5202,7 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
this.allow_dragcanvas = true;
|
||||
this.allow_dragnodes = true;
|
||||
this.allow_interaction = true; //allow to control widgets, buttons, collapse, etc
|
||||
this.multi_select = false; //allow selecting multi nodes without pressing extra keys
|
||||
this.allow_searchbox = true;
|
||||
this.allow_reconnect_links = true; //allows to change a connection with having to redo it again
|
||||
this.align_to_grid = false; //snap to grid
|
||||
@@ -7279,7 +7280,7 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
};
|
||||
|
||||
LGraphCanvas.prototype.processNodeSelected = function(node, e) {
|
||||
this.selectNode(node, e && (e.shiftKey||e.ctrlKey));
|
||||
this.selectNode(node, e && (e.shiftKey || e.ctrlKey || this.multi_select));
|
||||
if (this.onNodeSelected) {
|
||||
this.onNodeSelected(node);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user