Prevent timer keyboard shortcuts from firing when modifier keys are pressed
This commit is contained in:
parent
12d5ca64b4
commit
a5b40f710d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue