From 794ff33735b8ec3e9937c9ad5bd65a98ac9e2694 Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Sat, 3 Mar 2018 11:09:20 +0100 Subject: [PATCH] add shortcut to preview --- src/packages/Preview/main.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packages/Preview/main.coffee b/src/packages/Preview/main.coffee index 5c6ffd5..328b0bb 100644 --- a/src/packages/Preview/main.coffee +++ b/src/packages/Preview/main.coffee @@ -8,8 +8,8 @@ class Preview extends this.OS.GUI.BaseApplication @view = @find "view" @status = @find "status" PDFJS.workerSrc = @_api.handler.get + "/#{@path()}/pdf.worker.js" - @bindKey "ALT-O", () -> me.actionFile "#{@name}-Open" - @bindKey "CTRL-O", () -> me.actionFile "#{@name}-Close" + @bindKey "ALT-O", () -> me.actionFile "#{me.mame}-Open" + @bindKey "CTRL-O", () -> me.actionFile "#{me.name}-Close" @open @currfile