mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-03-21 20:52:12 -03:00
Fix: Allow paste event to bubble for system clipboard access
This commit is contained in:
@@ -575,8 +575,15 @@ export class CanvasInteractions {
|
||||
}
|
||||
break;
|
||||
case 'v':
|
||||
// Paste from internal clipboard or system clipboard
|
||||
this.canvas.canvasLayers.handlePaste('mouse');
|
||||
// Only handle internal clipboard paste here.
|
||||
// If internal clipboard is empty, let the paste event bubble
|
||||
// so handlePasteEvent can access e.clipboardData for system images.
|
||||
if (this.canvas.canvasLayers.internalClipboard.length > 0) {
|
||||
this.canvas.canvasLayers.pasteLayers();
|
||||
} else {
|
||||
// Don't preventDefault - let paste event fire for system clipboard
|
||||
handled = false;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
handled = false;
|
||||
|
||||
Reference in New Issue
Block a user