The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Added ctrl+enter to queue prompt
pythongosssss255ff2d6ddd3
diff --git a/web/scripts/app.js b/web/scripts/app.jsindex e70e1c157..6703908da 100644--- a/web/scripts/app.js+++ b/web/scripts/app.js@@ -398,6 +398,15 @@ class ComfyApp {api.init();}+ #addKeyboardHandler() {+ window.addEventListener("keydown", (e) => {+ // Queue prompt using ctrl or command + enter+ if ((e.ctrlKey || e.metaKey) && (e.key === "Enter" || e.keyCode === 13 || e.keyCode === 10)) {+ this.queuePrompt(0);+ }+ });+ }+/*** Loads all extensions from the API into the window*/@@ -464,6 +473,7 @@ class ComfyApp {this.#addApiUpdateHandlers();this.#addDropHandler();this.#addPasteHandler();+ this.#addKeyboardHandler();await this.#invokeExtensionsAsync("setup");}