fix: 修正Ctrl相关快捷键失效的问题 移除日志输出

This commit is contained in:
ZiuChen 2022-09-09 11:04:54 +08:00
parent cea005a9a1
commit 55fb304fa3
2 changed files with 3 additions and 6 deletions

View File

@ -113,7 +113,6 @@ const handleItemClick = (ev, item) => {
// selectList // selectList
// index/ // index/
// //
console.log(props.currentActiveTab)
const tmpArray = selectItemList.value const tmpArray = selectItemList.value
.filter((item) => .filter((item) =>
props.currentActiveTab === 'all' ? true : item.type === props.currentActiveTab 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)) .sort((a, b) => selectItemList.value.indexOf(a) - selectItemList.value.indexOf(b))
const h = props.showList.indexOf(tmpArray[0]) // index index const h = props.showList.indexOf(tmpArray[0]) // index index
const l = props.showList.indexOf(tmpArray[tmpArray.length - 1]) // index const l = props.showList.indexOf(tmpArray[tmpArray.length - 1]) // index
console.log(props.showList)
if (index < h) { if (index < h) {
// : index0 // : index0
// selectItemList.value = [] // selectItemList.value = []

View File

@ -274,12 +274,11 @@ onMounted(() => {
} else { } else {
// : uTools // : uTools
} }
} else if (ctrlKey || metaKey || isArrow || isEnter) { } else if (isArrow || isEnter) {
// Ctrl (utools)
e.preventDefault() e.preventDefault()
} else if (isShift) { } else if (isShift || ctrlKey || metaKey) {
// Shift: // Shift:
// e.preventDefault() // Ctrl: utools
} else { } else {
window.focus() // window.focus() //
} }