diff --git a/packages/core/src/components/hotkeys/keyComboTag.tsx b/packages/core/src/components/hotkeys/keyComboTag.tsx index 437e24eb1b..120de49321 100644 --- a/packages/core/src/components/hotkeys/keyComboTag.tsx +++ b/packages/core/src/components/hotkeys/keyComboTag.tsx @@ -17,23 +17,36 @@ import classNames from "classnames"; import * as React from "react"; +import { + ArrowDown, + ArrowLeft, + ArrowRight, + ArrowUp, + KeyCommand, + KeyControl, + KeyDelete, + KeyEnter, + KeyOption, + KeyShift, +} from "@blueprintjs/icons"; + import { AbstractPureComponent, Classes, DISPLAYNAME_PREFIX, type Props } from "../../common"; -import { Icon, type IconName } from "../icon/icon"; +import { Icon } from "../icon/icon"; import { normalizeKeyCombo } from "./hotkeyParser"; -const KEY_ICONS: Record = { - ArrowDown: { icon: "arrow-down", iconTitle: "Down key" }, - ArrowLeft: { icon: "arrow-left", iconTitle: "Left key" }, - ArrowRight: { icon: "arrow-right", iconTitle: "Right key" }, - ArrowUp: { icon: "arrow-up", iconTitle: "Up key" }, - alt: { icon: "key-option", iconTitle: "Alt/Option key" }, - cmd: { icon: "key-command", iconTitle: "Command key" }, - ctrl: { icon: "key-control", iconTitle: "Control key" }, - delete: { icon: "key-delete", iconTitle: "Delete key" }, - enter: { icon: "key-enter", iconTitle: "Enter key" }, - meta: { icon: "key-command", iconTitle: "Command key" }, - shift: { icon: "key-shift", iconTitle: "Shift key" }, +const KEY_ICONS: Record = { + ArrowDown: { icon: , iconTitle: "Down key" }, + ArrowLeft: { icon: , iconTitle: "Left key" }, + ArrowRight: { icon: , iconTitle: "Right key" }, + ArrowUp: { icon: , iconTitle: "Up key" }, + alt: { icon: , iconTitle: "Alt/Option key" }, + cmd: { icon: , iconTitle: "Command key" }, + ctrl: { icon: , iconTitle: "Control key" }, + delete: { icon: , iconTitle: "Delete key" }, + enter: { icon: , iconTitle: "Enter key" }, + meta: { icon: , iconTitle: "Command key" }, + shift: { icon: , iconTitle: "Shift key" }, }; /** Reverse table of some CONFIG_ALIASES fields, for display by KeyComboTag */