mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00: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
|
||||
const canvasEl = (this.canvasEl = Object.assign(document.createElement("canvas"), { id: "graph-canvas" }));
|
||||
canvasEl.tabIndex = "1"
|
||||
document.body.prepend(canvasEl);
|
||||
|
||||
this.graph = new LGraph();
|
||||
|
Loading…
Reference in New Issue
Block a user