mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-29 21:52:53 +08:00
fix: 修正了Alt导致的错误聚焦
This commit is contained in:
parent
55fb304fa3
commit
e4122cfe15
@ -253,6 +253,7 @@ onMounted(() => {
|
|||||||
const isArrow = key === 'ArrowDown' || key === 'ArrowUp'
|
const isArrow = key === 'ArrowDown' || key === 'ArrowUp'
|
||||||
const isEnter = key === 'Enter'
|
const isEnter = key === 'Enter'
|
||||||
const isShift = key === 'Shift'
|
const isShift = key === 'Shift'
|
||||||
|
const isAlt = key === 'Alt'
|
||||||
if (isTab) {
|
if (isTab) {
|
||||||
const tabTypes = tabs.map((item) => item.type)
|
const tabTypes = tabs.map((item) => item.type)
|
||||||
const index = tabTypes.indexOf(activeTab.value)
|
const index = tabTypes.indexOf(activeTab.value)
|
||||||
@ -276,9 +277,10 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
} else if (isArrow || isEnter) {
|
} else if (isArrow || isEnter) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
} else if (isShift || ctrlKey || metaKey) {
|
} else if (isShift || ctrlKey || metaKey || isAlt) {
|
||||||
// Shift: 多选操作
|
// Shift: 多选操作
|
||||||
// Ctrl: utools模拟执行粘贴时触发
|
// Ctrl: utools模拟执行粘贴时触发
|
||||||
|
// Alt:
|
||||||
} else {
|
} else {
|
||||||
window.focus() // 其他键盘事件 直接聚焦搜索框
|
window.focus() // 其他键盘事件 直接聚焦搜索框
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user