From f947e2aa944f3691cf4c1585eaa67d6bcd1e2c3b Mon Sep 17 00:00:00 2001 From: Qing Date: Thu, 22 Sep 2022 22:47:09 +0800 Subject: [PATCH] TODO: fix prompt input undo redo --- lama_cleaner/app/src/components/Editor/Editor.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lama_cleaner/app/src/components/Editor/Editor.tsx b/lama_cleaner/app/src/components/Editor/Editor.tsx index 57a2fca..74b7670 100644 --- a/lama_cleaner/app/src/components/Editor/Editor.tsx +++ b/lama_cleaner/app/src/components/Editor/Editor.tsx @@ -641,9 +641,6 @@ export default function Editor(props: EditorProps) { // Handle Cmd+Z const undoPredicate = (event: KeyboardEvent) => { // TODO: fix prompt input ctrl+z - if (isSD) { - return false - } const isCmdZ = (event.metaKey || event.ctrlKey) && !event.shiftKey && event.key === 'z' // Handle tab switch @@ -718,9 +715,6 @@ export default function Editor(props: EditorProps) { // Handle Cmd+shift+Z const redoPredicate = (event: KeyboardEvent) => { - if (isSD) { - return false - } const isCmdZ = (event.metaKey || event.ctrlKey) && event.shiftKey &&