mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: stop replacing del
word with Delete
(#5897)
This commit is contained in:
parent
8ed0fc2c87
commit
81fd2350a9
3 changed files with 3 additions and 4 deletions
|
@ -326,8 +326,7 @@ export const getShortcutKey = (shortcut: string): string => {
|
|||
shortcut = shortcut
|
||||
.replace(/\bAlt\b/i, "Alt")
|
||||
.replace(/\bShift\b/i, "Shift")
|
||||
.replace(/\b(Enter|Return)\b/i, "Enter")
|
||||
.replace(/\bDel\b/i, "Delete");
|
||||
.replace(/\b(Enter|Return)\b/i, "Enter");
|
||||
|
||||
if (isDarwin) {
|
||||
return shortcut
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue