Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesKlauss committed Sep 2, 2024
1 parent 88264ea commit 4c506d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parseHotkeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const mappedKeys: Record<string, string> = {
}

export function mapKey(key?: string): string {
return (mappedKeys[key] || key || '')
return ((key && mappedKeys[key]) || key || '')
.trim()
.toLowerCase()
.replace(/key|digit|numpad|arrow/, '')
Expand Down

0 comments on commit 4c506d3

Please sign in to comment.