diff --git a/src/components/Search.vue b/src/components/Search.vue index 11f3b54..c8f5836 100644 --- a/src/components/Search.vue +++ b/src/components/Search.vue @@ -63,7 +63,9 @@ const searchIndex = ref(0) const searchInputRef = ref(null) let previewTimer = null -const shortcut = /Mac/.test(navigator.userAgent) ? '⌘F' +// Note: Android is also Linux. HarmonyOS 5 doesn't include "Linux". +const shortcut = /Android/.test(navigator.userAgent) ? '' + : /Mac/.test(navigator.userAgent) ? '⌘F' : /Windows|Linux/.test(navigator.userAgent) ? 'Ctrl+F' : ''