Hide shortcut key on Android.
This commit is contained in:
@@ -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'
|
||||
: ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user