Commit eb67d055 authored by xss's avatar xss
Browse files

add canvas tab index so it recieves keydown events

parent 451447bd
...@@ -494,6 +494,7 @@ class ComfyApp { ...@@ -494,6 +494,7 @@ class ComfyApp {
// Create and mount the LiteGraph in the DOM // Create and mount the LiteGraph in the DOM
const canvasEl = (this.canvasEl = Object.assign(document.createElement("canvas"), { id: "graph-canvas" })); const canvasEl = (this.canvasEl = Object.assign(document.createElement("canvas"), { id: "graph-canvas" }));
canvasEl.tabIndex = "1"
document.body.prepend(canvasEl); document.body.prepend(canvasEl);
this.graph = new LGraph(); this.graph = new LGraph();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment