From 136b14cef501948d4b5dedbe12415ee84a84acc2 Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Fri, 10 Apr 2020 10:13:06 -0400 Subject: [PATCH] Update shortcut display for enter on Mac (#1358) --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 48fb9c30..24753315 100644 --- a/src/utils.ts +++ b/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")}`; };