diff --git a/src/components/search.svelte b/src/components/search.svelte index c3446a5..b13faba 100644 --- a/src/components/search.svelte +++ b/src/components/search.svelte @@ -5,17 +5,8 @@ export let clearSearch: () => void; import X from 'phosphor-svelte/lib/X'; - let shortcutText: string = ''; let inputElement; - if (typeof window !== 'undefined') { - if (navigator.platform.toUpperCase().indexOf('MAC') !== -1) { - shortcutText = 'command'; - } else { - shortcutText = 'control'; - } - } - function focusInput(node: HTMLElement) { const handleKeydown = (event: KeyboardEvent) => { if ((event.metaKey || event.ctrlKey) && event.key === 'k') {