mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
keydown event error fix
This commit is contained in:
parent
0ae4f5c7c8
commit
869a92e24c
@ -117,7 +117,7 @@ export class GalleryLightboxComponent {
|
||||
return null;
|
||||
}
|
||||
|
||||
@HostListener('window:keydown')
|
||||
@HostListener('window:keydown', ['$event'])
|
||||
onKeyPress(e) {
|
||||
let event = window.event ? window.event : e;
|
||||
switch (event.keyCode) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user