From 84dc786b28aaa23caad9b786d76bc814aee570c8 Mon Sep 17 00:00:00 2001 From: hi2hi Date: Fri, 24 Jan 2025 04:46:11 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=84=20=E5=85=BC=E5=AE=B9=20macOS=20?= =?UTF-8?q?=E4=B8=8A=E4=BD=BF=E7=94=A8=20Command=20+=20K=20=E5=BF=AB?= =?UTF-8?q?=E6=8D=B7=E9=94=AE=E6=89=93=E5=BC=80=E6=90=9C=E7=B4=A2=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/search-box.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/components/search-box.vue b/src/layout/components/search-box.vue index 810cdfd..d0c9f8d 100644 --- a/src/layout/components/search-box.vue +++ b/src/layout/components/search-box.vue @@ -155,7 +155,7 @@ function openDetail(info) { } function handleKeyDown(event) { - if (event.ctrlKey && event.key === 'k') { + if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'k') { event.stopPropagation(); event.preventDefault(); if (show.value) {