From 7a448c5ba2065035adf90d9bd9ff31067df543c6 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 18 Mar 2020 20:56:28 +0000 Subject: [PATCH] Fix Alt being Option on Mac Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/accessibility/KeyboardShortcuts.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/accessibility/KeyboardShortcuts.tsx b/src/accessibility/KeyboardShortcuts.tsx index 97b3a69bd5..618ed4755a 100644 --- a/src/accessibility/KeyboardShortcuts.tsx +++ b/src/accessibility/KeyboardShortcuts.tsx @@ -45,8 +45,7 @@ _td("Super"); _td("Ctrl"); export enum Modifiers { - ALT = "Alt", - OPTION = "Option", // This gets displayed as an Icon + ALT = "Alt", // Option on Mac and displayed as an Icon ALT_GR = "Alt Gr", SHIFT = "Shift", SUPER = "Super", // should this be "Windows"? @@ -231,9 +230,12 @@ interface IModal { const modifierIcon: Record = { [Modifiers.COMMAND]: "⌘", - [Modifiers.OPTION]: "⌥", }; +if (isMac) { + modifierIcon[Modifiers.ALT] = "⌥"; +} + const alternateKeyName: Record = { [Key.PAGE_UP]: _td("Page Up"), [Key.PAGE_DOWN]: _td("Page Down"),