From 17d6f0548fcf7d54ca147fe1ba1fa9ad4b1a3721 Mon Sep 17 00:00:00 2001 From: EllangoK Date: Thu, 13 Apr 2023 01:26:28 -0400 Subject: [PATCH] adds keybinds to readme and converts to table --- README.md | 30 +++++++++++++++++++++--------- web/extensions/core/keybinds.js | 3 +-- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 77d979ac3..0d71de296 100644 --- a/README.md +++ b/README.md @@ -31,15 +31,27 @@ This ui will let you design and execute advanced stable diffusion pipelines usin Workflow examples can be found on the [Examples page](https://comfyanonymous.github.io/ComfyUI_examples/) -## Shortcuts -- **Ctrl + A** select all nodes -- **Ctrl + M** mute/unmute selected nodes -- **Delete** or **Backspace** delete selected nodes -- **Space** Holding space key while moving the cursor moves the canvas around. It works when holding the mouse button down so it is easier to connect different nodes when the canvas gets too large. -- **Ctrl/Shift + Click** Add clicked node to selection. -- **Ctrl + C/Ctrl + V** - Copy and paste selected nodes, without maintaining the connection to the outputs of unselected nodes. -- **Ctrl + C/Ctrl + Shift + V** - Copy and paste selected nodes, and maintaining the connection from the outputs of unselected nodes to the inputs of the newly pasted nodes. -- Holding **Shift** and drag selected nodes - Move multiple selected nodes at the same time. +## Shortcuts/Keybinds + +| Keybind | Explanation | +| - | - | +| Enter | Queues up current graph for generation | +| Ctrl + A | Select all nodes | +| Ctrl + M | Mute/unmute selected nodes | +| Delete/Backspace | Delete selected nodes | +| Space | Move the canvas around when held and moving the cursor | +| 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 + 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 | +| F | Places current graph at the front of the queue | +| Q | Toggles visibility of the queue | +| H | Toggles visibility of history | +| S | Saves current graph as json | +| L | Brings up file input to load graphs | +| R | Refreshes graph | +| C | Clears graph | +| D | Loads default graph | # Installing diff --git a/web/extensions/core/keybinds.js b/web/extensions/core/keybinds.js index efc9deb94..e3284f905 100644 --- a/web/extensions/core/keybinds.js +++ b/web/extensions/core/keybinds.js @@ -24,7 +24,6 @@ app.registerExtension({ }; const buttonId = keyToButtonIdMap[event.key]; - console.log(event.key, buttonId); if (buttonId) { const button = document.querySelector(`#${buttonId}`); button.dispatchEvent(new Event("click")); @@ -33,4 +32,4 @@ app.registerExtension({ document.addEventListener("keyup", keybindListener); } -}); \ No newline at end of file +});