"git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "3152023fbc4f8ee6598a863314ca98d48ea9c2e6"
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 { ...@@ -753,8 +753,9 @@ export class ComfyApp {
// Default system copy // Default system copy
return; return;
} }
// copy nodes and clear clipboard // copy nodes and clear clipboard
if (this.canvas.selected_nodes) { if (e.target.className === "litegraph" && this.canvas.selected_nodes) {
this.canvas.copyToClipboard(); this.canvas.copyToClipboard();
e.clipboardData.setData('text', ' '); //clearData doesn't remove images from clipboard e.clipboardData.setData('text', ' '); //clearData doesn't remove images from clipboard
e.preventDefault(); 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