mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-28 18:54:09 +00:00
Implement mask editor undo/redo (#3708)
This commit is contained in:
@@ -204,6 +204,10 @@ export class ChangeTracker {
|
||||
// This can happen when user is holding down "Space" to pan the canvas.
|
||||
if (e.repeat) return
|
||||
|
||||
// If the mask editor is opened, we don't want to trigger on key events
|
||||
const comfyApp = app.constructor as typeof ComfyApp
|
||||
if (comfyApp.maskeditor_is_opended?.()) return
|
||||
|
||||
const activeEl = document.activeElement
|
||||
requestAnimationFrame(async () => {
|
||||
let bindInputEl: Element | null = null
|
||||
|
||||
Reference in New Issue
Block a user