mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-30 22:22:52 +08:00
feat: 优化搜索框行为 进入插件自动选中搜索框全部文本 #14
This commit is contained in:
parent
29becf4a04
commit
54d83bce88
@ -197,6 +197,7 @@ utools.onPluginEnter(() => {
|
||||
utools.copyText('ImageOverSized')
|
||||
globalOverSize = false
|
||||
}
|
||||
document.querySelector('.clip-search input').select() // 进入插件将搜索框内容全选
|
||||
focus()
|
||||
toTop()
|
||||
resetNav()
|
||||
|
@ -37,7 +37,6 @@ onMounted(() => {
|
||||
const { key } = e
|
||||
if (key === 'Escape' && props.fullData.data) {
|
||||
// 有值时执行退出 Overlay
|
||||
// TODO: 目前仅在 detach时有效 如何取消 utools的默认退出行为
|
||||
emit('onOverlayClick')
|
||||
e.stopPropagation()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user