Commit 0793eb92 authored by comfyanonymous's avatar comfyanonymous
Browse files

Only clear clipboard when copying nodes.

parent 4d41bd59
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment