From 415521e313e7a62ae79f7136ce3cf396f64cb218 Mon Sep 17 00:00:00 2001 From: Pedro Lamas Date: Mon, 12 Aug 2024 18:35:46 +0100 Subject: [PATCH] fix: Check for Meta key on keyboard shortcuts (#1477) Signed-off-by: Pedro Lamas --- src/util/event-helpers.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/event-helpers.ts b/src/util/event-helpers.ts index 5ef663bf57..62eba92e9f 100644 --- a/src/util/event-helpers.ts +++ b/src/util/event-helpers.ts @@ -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') }