Skip to content

Commit

Permalink
TODO: fix prompt input undo redo
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanster committed Sep 22, 2022
1 parent 5bdc5c1 commit f947e2a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lama_cleaner/app/src/components/Editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 &&
Expand Down

0 comments on commit f947e2a

Please sign in to comment.