add spotlight ui

This commit is contained in:
Xuan Sang LE 2018-03-03 10:58:33 +01:00
parent d329c2c423
commit 7305ec1d4c

View File

@ -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 = @