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