mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-07-18 09:48:37 +08:00
fix: 修正Ctrl相关快捷键失效的问题 移除日志输出
This commit is contained in:
parent
cea005a9a1
commit
55fb304fa3
@ -113,7 +113,6 @@ const handleItemClick = (ev, item) => {
|
||||
// 找到selectList的最高位与最低位
|
||||
// 如果index大于最高位/小于最低位 则将二者之间的全部历史都选中
|
||||
// 区分不同标签
|
||||
console.log(props.currentActiveTab)
|
||||
const tmpArray = selectItemList.value
|
||||
.filter((item) =>
|
||||
props.currentActiveTab === 'all' ? true : item.type === props.currentActiveTab
|
||||
@ -121,7 +120,6 @@ const handleItemClick = (ev, item) => {
|
||||
.sort((a, b) => selectItemList.value.indexOf(a) - selectItemList.value.indexOf(b))
|
||||
const h = props.showList.indexOf(tmpArray[0]) // 已选中的index最高位 实际上index是最小的
|
||||
const l = props.showList.indexOf(tmpArray[tmpArray.length - 1]) // 已选中的最低位 实际上index是最大的
|
||||
console.log(props.showList)
|
||||
if (index < h) {
|
||||
// 更高: index从0开始计算
|
||||
// selectItemList.value = []
|
||||
|
@ -274,12 +274,11 @@ onMounted(() => {
|
||||
} else {
|
||||
// 无上述情况 执行默认: 隐藏uTools主窗口
|
||||
}
|
||||
} else if (ctrlKey || metaKey || isArrow || isEnter) {
|
||||
// 仅有 Ctrl时 什么也不执行 (utools模拟执行粘贴时触发)
|
||||
} else if (isArrow || isEnter) {
|
||||
e.preventDefault()
|
||||
} else if (isShift) {
|
||||
} else if (isShift || ctrlKey || metaKey) {
|
||||
// Shift: 多选操作
|
||||
// e.preventDefault()
|
||||
// Ctrl: utools模拟执行粘贴时触发
|
||||
} else {
|
||||
window.focus() // 其他键盘事件 直接聚焦搜索框
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user