mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-23 16:07:04 +08:00
feat: shortcuts for zoom in/out
This commit is contained in:
parent
565eb6d176
commit
442c18803a
@ -42,7 +42,7 @@ Workflow examples can be found on the [Examples page](https://comfyanonymous.git
|
|||||||
## Shortcuts
|
## Shortcuts
|
||||||
|
|
||||||
| Keybind | Explanation |
|
| Keybind | Explanation |
|
||||||
|---------------------------|--------------------------------------------------------------------------------------------------------------------|
|
|---------------------------|-------------------------------------------------------------------------------------------------------------------|
|
||||||
| Ctrl + Enter | Queue up current graph for generation |
|
| Ctrl + Enter | Queue up current graph for generation |
|
||||||
| Ctrl + Shift + Enter | Queue up current graph as first for generation |
|
| Ctrl + Shift + Enter | Queue up current graph as first for generation |
|
||||||
| Ctrl + Z/Ctrl + Y | Undo/Redo |
|
| Ctrl + Z/Ctrl + Y | Undo/Redo |
|
||||||
@ -57,9 +57,11 @@ Workflow examples can be found on the [Examples page](https://comfyanonymous.git
|
|||||||
| Space | Move the canvas around when held and moving the cursor |
|
| Space | Move the canvas around when held and moving the cursor |
|
||||||
| Ctrl/Shift + Click | Add clicked node to selection |
|
| Ctrl/Shift + Click | Add clicked node to selection |
|
||||||
| Ctrl + C/Ctrl + V | Copy and paste selected nodes (without maintaining connections to outputs of unselected nodes) |
|
| Ctrl + C/Ctrl + V | Copy and paste selected nodes (without maintaining connections to outputs of unselected nodes) |
|
||||||
| Ctrl + C/Ctrl + Shift + V | Copy and paste selected nodes (maintaining connections from outputs of unselected nodes to inputs of pasted nodes) |
|
| Ctrl + C/Ctrl + Shift + V | Copy and paste selected nodes (maintaining connections from outputs of unselected nodes to inputs of pasted nodes)|
|
||||||
| Shift + Drag | Move multiple selected nodes at the same time |
|
| Shift + Drag | Move multiple selected nodes at the same time |
|
||||||
| Ctrl + D | Load default graph |
|
| Ctrl + D | Load default graph |
|
||||||
|
| Alt + `+` | Canvas zoom in |
|
||||||
|
| Alt + `-` | Canvas zoom out |
|
||||||
| Q | Toggle visibility of the queue |
|
| Q | Toggle visibility of the queue |
|
||||||
| H | Toggle visibility of history |
|
| H | Toggle visibility of history |
|
||||||
| R | Refresh graph |
|
| R | Refresh graph |
|
||||||
|
|||||||
@ -1059,6 +1059,20 @@ export class ComfyApp {
|
|||||||
// Trigger onPaste
|
// Trigger onPaste
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if((e.key === '+') && e.altKey) {
|
||||||
|
block_default = true;
|
||||||
|
let scale = this.ds.scale * 1.1;
|
||||||
|
this.ds.changeScale(scale, [this.ds.element.width/2, this.ds.element.height/2]);
|
||||||
|
this.graph.change();
|
||||||
|
}
|
||||||
|
|
||||||
|
if((e.key === '-') && e.altKey) {
|
||||||
|
block_default = true;
|
||||||
|
let scale = this.ds.scale * 1 / 1.1;
|
||||||
|
this.ds.changeScale(scale, [this.ds.element.width/2, this.ds.element.height/2]);
|
||||||
|
this.graph.change();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.graph.change();
|
this.graph.change();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user