1
0
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:
Braun Patrik 2016-07-05 13:33:09 +02:00
parent 0ae4f5c7c8
commit 869a92e24c

View File

@ -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) {