From 3c51413816d8c0f700a3b629359274999e747797 Mon Sep 17 00:00:00 2001 From: heiheihei <1395202740@qq.com> Date: Tue, 26 Aug 2025 18:57:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=A7=E5=86=99=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E4=B8=8Bctrl+f=E6=97=A0=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ModelVis/app/src/features/Search/index.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/mindstudio-insight-plugins/ModelVis/app/src/features/Search/index.tsx b/plugins/mindstudio-insight-plugins/ModelVis/app/src/features/Search/index.tsx index caaa8e6c54..67539e9da6 100644 --- a/plugins/mindstudio-insight-plugins/ModelVis/app/src/features/Search/index.tsx +++ b/plugins/mindstudio-insight-plugins/ModelVis/app/src/features/Search/index.tsx @@ -29,7 +29,7 @@ const Search = () => { useEffect(() => { const handleCtrlK = (e: KeyboardEvent) => - (e.ctrlKey || e.metaKey) && e.key === "f" && !visible && setVisible(true) + (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "f" && !visible && setVisible(true) document.addEventListener("keydown", handleCtrlK) return () => document.removeEventListener("keydown", handleCtrlK) @@ -47,10 +47,10 @@ const Search = () => { > - {t("search")} - + className="mr-1.5 h-4 w-4 fill-dark-secondary dark:fill-white" /> + {t("search")} +