fix tsc viewer

This commit is contained in:
Mario Romano
2016-06-21 11:52:42 +01:00
parent 5aca16bef1
commit 3d4aa46442
4 changed files with 14 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ export class NotSupportedFormat {
/**
* Download file opening it in a new window
*/
private download() {
download() {
window.open(this.urlFile);
}
}

View File

@@ -244,9 +244,9 @@ export class PdfViewerComponent {
@HostListener('document:keydown', ['$event'])
handleKeyboardEvent(event: KeyboardEvent) {
let key = event.keyCode;
if (key === 39) { //right arrow
if (key === 39) { // right arrow
this.nextPage();
} else if (key === 37) {//left arrow
} else if (key === 37) { // left arrow
this.previousPage();
}
}

View File

@@ -151,7 +151,7 @@ export class ViewerComponent {
*
* @returns {boolean}
*/
private supportedExtension() {
supportedExtension() {
return this.isImage() || this.isPdf();
}
@@ -162,7 +162,7 @@ export class ViewerComponent {
@HostListener('document:keydown', ['$event'])
handleKeyboardEvent(event: KeyboardEvent) {
let key = event.keyCode;
if (key === 27) { //esc
if (key === 27) { // esc
this.close();
}
}