mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-07-22 15:37:18 +08:00
add canvas tab index so it recieves keydown events
This commit is contained in:
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…
x
Reference in New Issue
Block a user