Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
eb67d055
Commit
eb67d055
authored
Mar 21, 2023
by
xss
Browse files
add canvas tab index so it recieves keydown events
parent
451447bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
web/scripts/app.js
web/scripts/app.js
+1
-0
No files found.
web/scripts/app.js
View file @
eb67d055
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment