Selaa lähdekoodia

Update shortcut display for enter on Mac (#1358)

Jed Fox 5 vuotta sitten
vanhempi
commit
136b14cef5
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/utils.ts

+ 1 - 1
src/utils.ts

@@ -163,7 +163,7 @@ export const getShortcutKey = (shortcut: string): string => {
       .replace("Ctrl+", "⌃")
       .replace("Shift+", "⇧")
       .replace("Del", "⌫")
-      .replace("Enter", "Return")}`;
+      .replace(/Enter|Return/, "↩")}`;
   }
   return `${shortcut.replace("CtrlOrCmd", "Ctrl")}`;
 };