From 0793eb926933034997cc2383adc414d080643e77 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Wed, 20 Sep 2023 23:16:01 -0400 Subject: [PATCH] Only clear clipboard when copying nodes. --- web/scripts/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/scripts/app.js b/web/scripts/app.js index f0bb8640..5efe08c0 100644 --- a/web/scripts/app.js +++ b/web/scripts/app.js @@ -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();