fix: Search takes too much priority from cmd+k trigger

This commit is contained in:
Tom Moor
2022-02-26 11:47:48 -08:00
parent 7f05fe0127
commit 6cbc30172c
7 changed files with 26 additions and 20 deletions

View File

@@ -25,7 +25,7 @@ import KeyboardShortcuts from "~/scenes/KeyboardShortcuts";
import { createAction } from "~/actions";
import {
NavigationSection,
NoSection,
SearchSection,
RecentSearchesSection,
} from "~/actions/sections";
import history from "~/utils/history";
@@ -60,7 +60,7 @@ export const navigateToRecentSearchQuery = (searchQuery: SearchQuery) =>
export const navigateToSearchQuery = (searchQuery: string) =>
createAction({
id: "search",
section: NoSection,
section: SearchSection,
name: ({ t }) =>
t(`Search documents for "{{searchQuery}}"`, { searchQuery }),
icon: <SearchIcon />,