Skip to content

Commit

Permalink
perf: ♻️ Search prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed May 18, 2024
1 parent 2f2e1cf commit 0d963aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/AppSearch/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class=""
circle
size="small"
:title="`${$t('common.search')}(Command/Ctrl + F)`"
:title="`${$t('common.search')}(${shortcutTip})`"
@click="openSearchModal"
>
<el-icon size="12">
Expand All @@ -21,6 +21,10 @@ const themeStore = useThemeStore()
const activeTab = inject('activeTab')
const shortcutTip = `${
window.electron.process.platform === 'darwin' ? 'Command' : 'Ctrl'
} + F`
watch([() => themeStore.value, () => activeTab.value], () => {
closeSearchModal()
})
Expand Down

0 comments on commit 0d963aa

Please sign in to comment.