Skip to content

Commit

Permalink
fix: Check for Meta key on keyboard shortcuts
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas committed Aug 12, 2024
1 parent 79f9999 commit 11c5723
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util/event-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ export const keyboardEventToKeyboardShortcut = (event: KeyboardEvent): string =>
keys.push('Ctrl')
}

if (event.metaKey) {
keys.push('Meta')
}

if (event.altKey) {
keys.push('Alt')
}
Expand Down

0 comments on commit 11c5723

Please sign in to comment.