Skip to content

Commit

Permalink
fix: Check for Meta key on keyboard shortcuts (#1477)
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
  • Loading branch information
pedrolamas authored Aug 12, 2024
1 parent 79f9999 commit 415521e
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 415521e

Please sign in to comment.