add canvas tab index so it recieves keydown events

main
xss 2 years ago
parent 451447bd9f
commit eb67d05540

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

Loading…
Cancel
Save