From bf0f5b4ef353124670fcf8a0494d1b73a8c201ed Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Mon, 25 Nov 2019 16:42:24 +0100 Subject: [PATCH] Change shortcut --- src/components/Navigator/Navigator.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/Navigator/Navigator.tsx b/src/components/Navigator/Navigator.tsx index 90eb55ff1..2809851fd 100644 --- a/src/components/Navigator/Navigator.tsx +++ b/src/components/Navigator/Navigator.tsx @@ -19,7 +19,7 @@ import NavigatorSection from "./NavigatorSection"; import { QuickSearchAction } from "./types"; import useQuickSearch from "./useQuickSearch"; -const navigatorHotkey = "ctrl+m, command+m"; +const navigatorHotkey = "ctrl+k, command+k"; function getItemOffset( actions: QuickSearchAction[], @@ -35,7 +35,10 @@ const Navigator: React.FC = () => { const intl = useIntl(); React.useEffect(() => { - hotkeys(navigatorHotkey, () => setVisible(true)); + hotkeys(navigatorHotkey, event => { + event.preventDefault(); + setVisible(!visible); + }); return () => hotkeys.unbind(navigatorHotkey); }, []);