From bd8007d8aaf70a7882b4e892f9f2bc6ca8863588 Mon Sep 17 00:00:00 2001 From: Dariusz L Date: Thu, 3 Jul 2025 16:15:42 +0200 Subject: [PATCH] Remove 'v' key paste shortcut from canvas interactions The 'v' key no longer triggers the paste action in CanvasInteractions. This change may be to prevent conflicts or to streamline keyboard shortcuts. --- js/CanvasInteractions.js | 3 --- js/CanvasState.js | 1 + pyproject.toml | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/js/CanvasInteractions.js b/js/CanvasInteractions.js index 99866b7..0885bfa 100644 --- a/js/CanvasInteractions.js +++ b/js/CanvasInteractions.js @@ -346,9 +346,6 @@ export class CanvasInteractions { this.canvas.canvasLayers.copySelectedLayers(); } break; - case 'v': - this.canvas.canvasLayers.handlePaste('mouse'); - break; default: handled = false; break; diff --git a/js/CanvasState.js b/js/CanvasState.js index e0e93c2..2c6c3fc 100644 --- a/js/CanvasState.js +++ b/js/CanvasState.js @@ -227,6 +227,7 @@ export class CanvasState { nodeId: this.canvas.node.id, state: state }); + this.canvas.render(); } else { log.warn("State saver worker not available. Saving on main thread."); await setCanvasState(this.canvas.node.id, state); diff --git a/pyproject.toml b/pyproject.toml index fd84e37..a891dfd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "layerforge" description = "Photoshop-like layered canvas editor to your ComfyUI workflow. This node is perfect for complex compositing, inpainting, and outpainting, featuring multi-layer support, masking, blend modes, and precise transformations. Includes optional AI-powered background removal for streamlined image editing." -version = "1.3.5" +version = "1.3.6" license = {file = "LICENSE"} dependencies = ["torch", "torchvision", "transformers", "aiohttp", "numpy", "tqdm", "Pillow"]