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
0793eb92
Commit
0793eb92
authored
Sep 20, 2023
by
comfyanonymous
Browse files
Only clear clipboard when copying nodes.
parent
4d41bd59
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
web/scripts/app.js
web/scripts/app.js
+2
-1
No files found.
web/scripts/app.js
View file @
0793eb92
...
...
@@ -753,8 +753,9 @@ export class ComfyApp {
// Default system copy
return
;
}
// copy nodes and clear clipboard
if
(
this
.
canvas
.
selected_nodes
)
{
if
(
e
.
target
.
className
===
"
litegraph
"
&&
this
.
canvas
.
selected_nodes
)
{
this
.
canvas
.
copyToClipboard
();
e
.
clipboardData
.
setData
(
'
text
'
,
'
'
);
//clearData doesn't remove images from clipboard
e
.
preventDefault
();
...
...
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