mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Only clear clipboard when copying nodes.
This commit is contained in:
parent
4d41bd595c
commit
0793eb9269
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user