From eb67d0554016758d04af86375ac284a864924cbe Mon Sep 17 00:00:00 2001 From: xss Date: Tue, 21 Mar 2023 13:31:47 -0500 Subject: [PATCH] add canvas tab index so it recieves keydown events --- web/scripts/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/scripts/app.js b/web/scripts/app.js index dc61c5a6..fd410cd3 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();