Hide shortcut key on Android.

This commit is contained in:
Leo Vasanko
2025-09-24 17:03:19 -06:00
parent ade17b80b1
commit d461a42ae5

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'
: ''