mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
Update shortcut display for enter on Mac (#1358)
This commit is contained in:
parent
0a284adc18
commit
136b14cef5
1 changed files with 1 additions and 1 deletions
|
@ -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")}`;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue