1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-03 23:49:57 +08:00

Shortcut Alt + C to collapse/uncollapse selected nodes

This commit is contained in:
Jairo Correa
2023-10-14 11:54:33 -03:00
parent 3fcab0c642
commit 25f0f4e9c8
2 changed files with 11 additions and 0 deletions

View File

@@ -928,6 +928,16 @@ export class ComfyApp {
block_default = true;
}
// Alt + C collapse/uncollapse
if (e.key === 'c' && e.altKey) {
if (this.selected_nodes) {
for (var i in this.selected_nodes) {
this.selected_nodes[i].collapse()
}
}
block_default = true;
}
// Ctrl+C Copy
if ((e.key === 'c') && (e.metaKey || e.ctrlKey)) {
// Trigger onCopy