mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-11-24 07:30:15 +01:00
perf: ♻️ Search prompts
This commit is contained in:
parent
2f2e1cfcd6
commit
0d963aab65
@ -4,7 +4,7 @@
|
|||||||
class=""
|
class=""
|
||||||
circle
|
circle
|
||||||
size="small"
|
size="small"
|
||||||
:title="`${$t('common.search')}(Command/Ctrl + F)`"
|
:title="`${$t('common.search')}(${shortcutTip})`"
|
||||||
@click="openSearchModal"
|
@click="openSearchModal"
|
||||||
>
|
>
|
||||||
<el-icon size="12">
|
<el-icon size="12">
|
||||||
@ -21,6 +21,10 @@ const themeStore = useThemeStore()
|
|||||||
|
|
||||||
const activeTab = inject('activeTab')
|
const activeTab = inject('activeTab')
|
||||||
|
|
||||||
|
const shortcutTip = `${
|
||||||
|
window.electron.process.platform === 'darwin' ? 'Command' : 'Ctrl'
|
||||||
|
} + F`
|
||||||
|
|
||||||
watch([() => themeStore.value, () => activeTab.value], () => {
|
watch([() => themeStore.value, () => activeTab.value], () => {
|
||||||
closeSearchModal()
|
closeSearchModal()
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user