From bc98ea256a25730bbdc631b37e2f98b0cd8b04ee Mon Sep 17 00:00:00 2001 From: Qing Date: Sun, 25 Sep 2022 21:08:46 +0800 Subject: [PATCH] fix input ctrl+z --- lama_cleaner/app/src/components/shared/Input.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lama_cleaner/app/src/components/shared/Input.tsx b/lama_cleaner/app/src/components/shared/Input.tsx index 421987a..ba0e30e 100644 --- a/lama_cleaner/app/src/components/shared/Input.tsx +++ b/lama_cleaner/app/src/components/shared/Input.tsx @@ -35,6 +35,9 @@ const TextInput = React.forwardRef< if (e.key === 'Escape') { e.currentTarget.blur() } + if ((e.ctrlKey || e.metaKey) && e.key === 'z') { + e.stopPropagation() + } }} /> )