From b54c96898c7eb6e465899ddcd9262c7b59051748 Mon Sep 17 00:00:00 2001 From: SupaJoon Date: Wed, 4 Oct 2023 12:41:38 -0400 Subject: [PATCH] EVG-20918: Update search input focus shortcut on configure page (#2080) --- .../configurePatchCore/ConfigureTasks/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/configurePatch/configurePatchCore/ConfigureTasks/index.tsx b/src/pages/configurePatch/configurePatchCore/ConfigureTasks/index.tsx index e7a80c91df..b8da523168 100644 --- a/src/pages/configurePatch/configurePatchCore/ConfigureTasks/index.tsx +++ b/src/pages/configurePatch/configurePatchCore/ConfigureTasks/index.tsx @@ -7,7 +7,7 @@ import Tooltip from "@leafygreen-ui/tooltip"; import { Body, Disclaimer } from "@leafygreen-ui/typography"; import pluralize from "pluralize"; import Icon from "components/Icon"; -import { CharKey, ModifierKey } from "constants/keys"; +import { CharKey } from "constants/keys"; import { size } from "constants/tokens"; import { VariantTask } from "gql/generated/types"; import useKeyboardShortcut from "hooks/useKeyboardShortcut"; @@ -61,8 +61,7 @@ const ConfigureTasks: React.FC = ({ const searchRef = useRef(null); useKeyboardShortcut( { - charKey: CharKey.F, - modifierKeys: [ModifierKey.Control], + charKey: CharKey.ForwardSlash, }, () => { searchRef.current?.focus();