diff --git a/src/components/AppSearch/index.vue b/src/components/AppSearch/index.vue index a37f0a10..ecf6b2c5 100644 --- a/src/components/AppSearch/index.vue +++ b/src/components/AppSearch/index.vue @@ -4,7 +4,7 @@ class="" circle size="small" - :title="`${$t('common.search')}(Command/Ctrl + F)`" + :title="`${$t('common.search')}(${shortcutTip})`" @click="openSearchModal" > @@ -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() })