Update shortcut display for enter on Mac (#1358)
This commit is contained in:
parent
0a284adc18
commit
136b14cef5
@ -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…
x
Reference in New Issue
Block a user