mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 01:38:21 +01:00
add shortcut to preview
This commit is contained in:
parent
794ff33735
commit
685301e793
@ -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 "#{me.mame}-Open"
|
||||
@bindKey "CTRL-O", () -> me.actionFile "#{me.name}-Close"
|
||||
@bindKey "ALT-O", () -> me.actionFile "#{me.name}-Open"
|
||||
@bindKey "CTRL-X", () -> me.actionFile "#{me.name}-Close"
|
||||
@open @currfile
|
||||
|
||||
|
||||
@ -106,6 +106,7 @@ class Preview extends this.OS.GUI.BaseApplication
|
||||
menu
|
||||
|
||||
actionFile: (e) ->
|
||||
console.log e
|
||||
me = @
|
||||
switch e
|
||||
when "#{@name}-Open"
|
||||
|
Loading…
Reference in New Issue
Block a user