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() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
document.addEventListener('keyup', (event: KeyboardEvent) => {
|
document.addEventListener('keyup', (event: KeyboardEvent) => {
|
||||||
if (event.target !== document.body) {
|
if (event.target !== document.body || event.altKey || event.shiftKey || event.metaKey) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
switch (event.key) {
|
switch (event.key) {
|
||||||
|
|
Loading…
Reference in a new issue