feat: 按住Shift直接进入多选 移除进入插件时的自动聚焦

This commit is contained in:
ZiuChen 2022-09-09 14:53:03 +08:00
parent 290464d55e
commit bdfc4baf22
2 changed files with 6 additions and 4 deletions

View File

@ -246,8 +246,6 @@ utools.onPluginEnter(() => {
utools.copyText('ImageOverSized')
globalImageOversize = false
}
focus()
select() // 进入插件将搜索框内容全选
toTop()
resetNav()
})

View File

@ -276,10 +276,14 @@ onMounted(() => {
} else {
// : uTools
}
} else if (isShift) {
// Shift:
if (!isMultiple.value) {
handleMultiBtnClick()
}
} else if (isArrow || isEnter) {
e.preventDefault()
} else if (isShift || ctrlKey || metaKey || isAlt) {
// Shift:
} else if (ctrlKey || metaKey || isAlt) {
// Ctrl: utools
// Alt:
} else {