Merge branch 'patch-canvas-tabindex' of https://github.com/abbail/ComfyUI

This commit is contained in:
comfyanonymous
2023-03-21 15:05:55 -04:00

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