fix: Alt+Tab triggers "Remap on all layers" (#773)
This commit is contained in:
committed by
László Monda
parent
a21d278c0c
commit
c16365a0e5
@@ -120,13 +120,13 @@ export class SvgKeyboardKeyComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
this.scanCodePressed = false;
|
this.scanCodePressed = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@HostListener('click')
|
@HostListener('click', ['$event'])
|
||||||
onClick() {
|
onClick(e: MouseEvent) {
|
||||||
this.reset();
|
this.reset();
|
||||||
this.keyClick.emit({
|
this.keyClick.emit({
|
||||||
keyTarget: this.element.nativeElement,
|
keyTarget: this.element.nativeElement,
|
||||||
shiftPressed: this.pressedShiftLocation > -1,
|
shiftPressed: e.shiftKey,
|
||||||
altPressed: this.pressedAltLocation > -1
|
altPressed: e.altKey
|
||||||
});
|
});
|
||||||
this.pressedShiftLocation = -1;
|
this.pressedShiftLocation = -1;
|
||||||
this.pressedAltLocation = -1;
|
this.pressedAltLocation = -1;
|
||||||
@@ -143,14 +143,8 @@ export class SvgKeyboardKeyComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
} else {
|
} else {
|
||||||
this.recording = true;
|
this.recording = true;
|
||||||
this.recordAnimation = 'active';
|
this.recordAnimation = 'active';
|
||||||
|
this.shiftPressed = e.shiftKey;
|
||||||
if (this.pressedShiftLocation > -1) {
|
this.altPressed = e.altKey;
|
||||||
this.shiftPressed = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.pressedAltLocation > -1) {
|
|
||||||
this.altPressed = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user