Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Add ctrl+shift+enter for queue front

pythongosssss01ec3db9324a
diff --git a/web/scripts/app.js b/web/scripts/app.js
index 6703908da..942fc9028 100644
--- a/web/scripts/app.js
+++ b/web/scripts/app.js
@@ -402,7 +402,7 @@ class ComfyApp {
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);
+ this.queuePrompt(e.shiftKey ? -1 : 0);
}
});
}