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
0e4395a8
Commit
0e4395a8
authored
Sep 13, 2023
by
pythongosssss
Browse files
Allow pasting nodes with connections in firefox
parent
3039b08e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
web/scripts/app.js
web/scripts/app.js
+5
-1
No files found.
web/scripts/app.js
View file @
0e4395a8
...
...
@@ -671,6 +671,10 @@ export class ComfyApp {
*/
#
addPasteHandler
()
{
document
.
addEventListener
(
"
paste
"
,
(
e
)
=>
{
// ctrl+shift+v is used to paste nodes with connections
// this is handled by litegraph
if
(
this
.
shiftDown
)
return
;
let
data
=
(
e
.
clipboardData
||
window
.
clipboardData
);
const
items
=
data
.
items
;
...
...
@@ -853,7 +857,7 @@ export class ComfyApp {
}
// Ctrl+V Paste
if
((
e
.
key
===
'
v
'
||
e
.
key
==
'
V
'
)
&&
(
e
.
metaKey
||
e
.
ctrlKey
))
{
if
((
e
.
key
===
'
v
'
||
e
.
key
==
'
V
'
)
&&
(
e
.
metaKey
||
e
.
ctrlKey
)
&&
!
e
.
shiftKey
)
{
// Trigger onPaste
return
true
;
}
...
...
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