Merge pull request #205 from ridemountainpig/hotkey-unuse

Remove search input hotkey unuse code
This commit is contained in:
Pablo Hdez 2024-01-09 08:28:27 +00:00 committed by GitHub
commit d0a69a3c52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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') {