Hide shortcut key on Android.

This commit is contained in:
LeoVasanko committed 2025-09-25 05:03:19 +00:00
1 parent 46119222e6
commit 74de1481c0
1 file changed
+3 -1
+3 -1
View File
@@ -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'
: ''