mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-07 22:04:06 +08:00
fix: 优化按下ESC键搜索框的表现逻辑
This commit is contained in:
parent
eaa0e762c0
commit
9b172f684c
@ -184,11 +184,15 @@ onMounted(() => {
|
|||||||
if (filterText.value) {
|
if (filterText.value) {
|
||||||
// 有筛选词 先清空筛选词
|
// 有筛选词 先清空筛选词
|
||||||
filterText.value = ''
|
filterText.value = ''
|
||||||
} else {
|
window.focus()
|
||||||
// 无筛选词 隐藏搜索框
|
e.stopPropagation()
|
||||||
|
} else if (isSearchPanelExpand.value) {
|
||||||
|
// 移除焦点 隐藏搜索框
|
||||||
window.focus(true)
|
window.focus(true)
|
||||||
|
e.stopPropagation()
|
||||||
|
} else {
|
||||||
|
// 无上述情况 执行默认: 隐藏uTools主窗口
|
||||||
}
|
}
|
||||||
e.stopPropagation()
|
|
||||||
} else if (ctrlKey || metaKey || isArrow || isEnter) {
|
} else if (ctrlKey || metaKey || isArrow || isEnter) {
|
||||||
// 仅有 Ctrl时 什么也不执行 (utools模拟执行粘贴时触发)
|
// 仅有 Ctrl时 什么也不执行 (utools模拟执行粘贴时触发)
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user