Update shortcut display for enter on Mac (#1358)

This commit is contained in:
Jed Fox
2020-04-10 10:13:06 -04:00
committed by GitHub
parent 0a284adc18
commit 136b14cef5

View File

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