The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix modifiers triggering key down checks
pythongosssssdf49a727ff0c
diff --git a/web/extensions/core/undoRedo.js b/web/extensions/core/undoRedo.jsindex 3cb137520..ff976c74c 100644--- a/web/extensions/core/undoRedo.js+++ b/web/extensions/core/undoRedo.js@@ -106,6 +106,7 @@ const bindInput = (activeEl) => {}};+let keyIgnored = false;window.addEventListener("keydown",(e) => {@@ -116,6 +117,9 @@ window.addEventListener(return;}+ keyIgnored = e.key === "Control" || e.key === "Shift" || e.key === "Alt" || e.key === "Meta";+ if (keyIgnored) return;+// Check if this is a ctrl+z ctrl+yif (await undoRedo(e)) return;@@ -127,6 +131,13 @@ window.addEventListener(true);+window.addEventListener("keyup", (e) => {+ if (keyIgnored) {+ keyIgnored = false;+ checkState();+ }+});+// Handle clicking DOM elements (e.g. widgets)window.addEventListener("mouseup", () => {checkState();