add canvas tab index so it recieves keydown events

This commit is contained in:
xss 2023-03-21 13:31:47 -05:00
parent 451447bd9f
commit eb67d05540

View File

@ -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();