diff --git a/src/components/image-editor/index.tsx b/src/components/image-editor/index.tsx index 3c17adcb..11043888 100644 --- a/src/components/image-editor/index.tsx +++ b/src/components/image-editor/index.tsx @@ -453,7 +453,11 @@ const CanvasImageEditor: React.FC = forwardRef( useEffect(() => { const handleUndoShortcut = (e: KeyboardEvent) => { - if ((e.ctrlKey || e.metaKey) && e.key === 'z') { + if ( + (e.ctrlKey || e.metaKey) && + e.key === 'z' && + !negativeMaskRef.current + ) { undo(); } };