mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Add more shortcuts and minor refactor (#1347)
This commit is contained in:
parent
737e4aefc8
commit
70e7dd6e3b
3 changed files with 162 additions and 116 deletions
|
@ -162,7 +162,8 @@ export const getShortcutKey = (shortcut: string): string => {
|
|||
.replace("Alt+", "⌥")
|
||||
.replace("Ctrl+", "⌃")
|
||||
.replace("Shift+", "⇧")
|
||||
.replace("Del", "⌫")}`;
|
||||
.replace("Del", "⌫")
|
||||
.replace("Enter", "Return")}`;
|
||||
}
|
||||
return `${shortcut.replace("CtrlOrCmd", "Ctrl")}`;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue