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 canvas tab index so it recieves keydown events

xsseb67d0554016
diff --git a/web/scripts/app.js b/web/scripts/app.js
index dc61c5a66..fd410cd30 100644
--- a/web/scripts/app.js
+++ b/web/scripts/app.js
@@ -494,6 +494,7 @@ class ComfyApp {
// Create and mount the LiteGraph in the DOM
const canvasEl = (this.canvasEl = Object.assign(document.createElement("canvas"), { id: "graph-canvas" }));
+ canvasEl.tabIndex = "1"
document.body.prepend(canvasEl);
this.graph = new LGraph();