diff --git a/app/vmui/packages/vmui/src/components/Configurators/AdditionalSettings/AdditionalSettings.tsx b/app/vmui/packages/vmui/src/components/Configurators/AdditionalSettings/AdditionalSettings.tsx index 9ccb8bde3..8bf00aeec 100644 --- a/app/vmui/packages/vmui/src/components/Configurators/AdditionalSettings/AdditionalSettings.tsx +++ b/app/vmui/packages/vmui/src/components/Configurators/AdditionalSettings/AdditionalSettings.tsx @@ -33,8 +33,8 @@ const AdditionalSettingsControls: FC<{isMobile?: boolean}> = ({ isMobile }) => { }; const handleKeyDown = (e: KeyboardEvent) => { - const { key, ctrlKey, metaKey, shiftKey } = e; - if (key === "a" && shiftKey && (ctrlKey || metaKey)) { + const { code, altKey } = e; + if (code === "KeyA" && altKey) { e.preventDefault(); onChangeAutocomplete(); } diff --git a/app/vmui/packages/vmui/src/components/Main/ShortcutKeys/constants/keyList.tsx b/app/vmui/packages/vmui/src/components/Main/ShortcutKeys/constants/keyList.tsx index 5d9f56d37..5072beaa8 100644 --- a/app/vmui/packages/vmui/src/components/Main/ShortcutKeys/constants/keyList.tsx +++ b/app/vmui/packages/vmui/src/components/Main/ShortcutKeys/constants/keyList.tsx @@ -4,8 +4,9 @@ import { VisibilityIcon } from "../../Icons"; import GraphTips from "../../../Chart/GraphTips/GraphTips"; const ctrlMeta = {isMacOs() ? "Cmd" : "Ctrl"}; +const altMeta = {isMacOs() ? "Option" : "Alt"}; -export const AUTOCOMPLETE_KEY = <>{ctrlMeta} + Shift + A; +export const AUTOCOMPLETE_KEY = <>{altMeta} + A; const keyList = [ {