fix: stop replacing del word with Delete (#5897)

This commit is contained in:
David Luzar 2022-11-19 18:28:08 +01:00 committed by GitHub
parent 8ed0fc2c87
commit 81fd2350a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View file

@ -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