From 7305ec1d4ced883ee1e8bf31bb4ed6b1e6b65e7f Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Sat, 3 Mar 2018 10:58:33 +0100 Subject: [PATCH] add spotlight ui --- src/packages/Preview/main.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/packages/Preview/main.coffee b/src/packages/Preview/main.coffee index ebb0ee5..c8304a3 100644 --- a/src/packages/Preview/main.coffee +++ b/src/packages/Preview/main.coffee @@ -8,7 +8,10 @@ class Preview extends this.OS.GUI.BaseApplication @view = @find "view" @status = @find "status" PDFJS.workerSrc = @_api.handler.get + "/#{@path()}/pdf.worker.js" + @binKey "ALT-O", () -> me.actionFile "#{@name}-Open" + @binKey "CTRL-O", () -> me.actionFile "#{@name}-Close" @open @currfile + open: (file) -> me = @