Sfoglia il codice sorgente

Update shortcut display for enter on Mac (#1358)

Jed Fox 5 anni fa
parent
commit
136b14cef5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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")}`;
 };