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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")}`;
};