From d322e1907e0a4882faffeaa4dfab19a586c54082 Mon Sep 17 00:00:00 2001 From: "Mr.Hope" Date: Mon, 27 Feb 2023 18:43:32 +0800 Subject: [PATCH] chore: tweaks --- .../plugin-docsearch/src/client/composables/useDocSearch.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ecosystem/plugin-docsearch/src/client/composables/useDocSearch.ts b/ecosystem/plugin-docsearch/src/client/composables/useDocSearch.ts index 37c56ed49fb..8e5a40ddbfa 100644 --- a/ecosystem/plugin-docsearch/src/client/composables/useDocSearch.ts +++ b/ecosystem/plugin-docsearch/src/client/composables/useDocSearch.ts @@ -20,7 +20,6 @@ export const useDocsearch = (props): Docsearch => { // hit the hotkey to invoke it. const loading = ref(false) const loaded = ref(false) - const metaKey = ref(`'Meta'`) // resolve docsearch options for current locale const optionsLocale = computed(() => ({ @@ -80,11 +79,6 @@ export const useDocsearch = (props): Docsearch => { onMounted(() => { preconnectAlgolia() - // meta key detect (same logic as in @docsearch/js) - metaKey.value = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) - ? `'⌘'` - : `'Ctrl'` - const handleSearchHotKey = (e: KeyboardEvent): void => { if (e.key === 'k' && (e.ctrlKey || e.metaKey)) { e.preventDefault()