Files
Comfyui-LayerForge/js
diodiogod dd5fc5470f Fix keyboard shortcuts capturing events when node is unfocused
Prevent LayerForge from intercepting Ctrl+C, Ctrl+V, and other keyboard
shortcuts when the canvas is not focused. This was causing unwanted
popups and interfering with other nodes in ComfyUI.

Changes:
- Remove document.body focus check from handlePasteEvent
- Add focus validation to handleKeyDown before processing shortcuts
- Modifier keys (Ctrl, Shift, Alt, Meta) are still tracked globally
- All other shortcuts only trigger when canvas is focused

Fixes issue where paste events were captured globally regardless of focus.
2026-01-10 11:12:31 -03:00
..
2025-07-30 13:35:53 +02:00
2025-07-04 04:22:51 +02:00
2025-07-04 04:22:51 +02:00
2025-07-04 04:22:51 +02:00
2025-08-08 22:41:19 +02:00
2025-07-30 10:37:12 +02:00
2025-07-04 04:22:51 +02:00