Skip to content

Commit

Permalink
Update shortcut display for enter on Mac (excalidraw#1358)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-f1 authored Apr 10, 2020
1 parent 0a284ad commit 136b14c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")}`;
};
Expand Down

0 comments on commit 136b14c

Please sign in to comment.