Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
EVG-20918: Update search input focus shortcut on configure page (#2080)
Browse files Browse the repository at this point in the history
  • Loading branch information
SupaJoon authored Oct 4, 2023
1 parent 9c4fcbb commit b54c968
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -61,8 +61,7 @@ const ConfigureTasks: React.FC<Props> = ({
const searchRef = useRef<HTMLInputElement>(null);
useKeyboardShortcut(
{
charKey: CharKey.F,
modifierKeys: [ModifierKey.Control],
charKey: CharKey.ForwardSlash,
},
() => {
searchRef.current?.focus();
Expand Down

0 comments on commit b54c968

Please sign in to comment.