Add more shortcuts and minor refactor (#1347)

This commit is contained in:
Lipis 2020-04-09 22:58:29 +03:00 committed by GitHub
parent 737e4aefc8
commit 70e7dd6e3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 162 additions and 116 deletions

View file

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