From e4122cfe15490eb7f4cd0806b445984dd7584d84 Mon Sep 17 00:00:00 2001 From: ZiuChen <457353192@qq.com> Date: Fri, 9 Sep 2022 11:13:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E4=BA=86Alt=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E9=94=99=E8=AF=AF=E8=81=9A=E7=84=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Main.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/Main.vue b/src/views/Main.vue index e78be9b..d069c9c 100644 --- a/src/views/Main.vue +++ b/src/views/Main.vue @@ -253,6 +253,7 @@ onMounted(() => { const isArrow = key === 'ArrowDown' || key === 'ArrowUp' const isEnter = key === 'Enter' const isShift = key === 'Shift' + const isAlt = key === 'Alt' if (isTab) { const tabTypes = tabs.map((item) => item.type) const index = tabTypes.indexOf(activeTab.value) @@ -276,9 +277,10 @@ onMounted(() => { } } else if (isArrow || isEnter) { e.preventDefault() - } else if (isShift || ctrlKey || metaKey) { + } else if (isShift || ctrlKey || metaKey || isAlt) { // Shift: 多选操作 // Ctrl: utools模拟执行粘贴时触发 + // Alt: } else { window.focus() // 其他键盘事件 直接聚焦搜索框 }