From a5b40f710d2cc778905eed56be5813557f748cbb Mon Sep 17 00:00:00 2001 From: William Brawner Date: Wed, 13 Sep 2023 22:08:46 -0600 Subject: [PATCH] Prevent timer keyboard shortcuts from firing when modifier keys are pressed --- src/script/components/active-timer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/components/active-timer.ts b/src/script/components/active-timer.ts index a9dec46..4467b5d 100644 --- a/src/script/components/active-timer.ts +++ b/src/script/components/active-timer.ts @@ -76,7 +76,7 @@ export class ActiveTimer extends LitElement { constructor() { super(); document.addEventListener('keyup', (event: KeyboardEvent) => { - if (event.target !== document.body) { + if (event.target !== document.body || event.altKey || event.shiftKey || event.metaKey) { return; } switch (event.key) {