|
|
@ -2,7 +2,7 @@ class app.Shortcuts
|
|
|
|
$.extend @prototype, Events
|
|
|
|
$.extend @prototype, Events
|
|
|
|
|
|
|
|
|
|
|
|
constructor: ->
|
|
|
|
constructor: ->
|
|
|
|
@isWindows = $.isWindows()
|
|
|
|
@isMac = $.isMac()
|
|
|
|
@start()
|
|
|
|
@start()
|
|
|
|
|
|
|
|
|
|
|
|
start: ->
|
|
|
|
start: ->
|
|
|
@ -91,14 +91,14 @@ class app.Shortcuts
|
|
|
|
when 13
|
|
|
|
when 13
|
|
|
|
@trigger 'superEnter'
|
|
|
|
@trigger 'superEnter'
|
|
|
|
when 37
|
|
|
|
when 37
|
|
|
|
unless @isWindows
|
|
|
|
if @isMac
|
|
|
|
@trigger 'superLeft'
|
|
|
|
@trigger 'superLeft'
|
|
|
|
false
|
|
|
|
false
|
|
|
|
when 38
|
|
|
|
when 38
|
|
|
|
@trigger 'pageTop'
|
|
|
|
@trigger 'pageTop'
|
|
|
|
false
|
|
|
|
false
|
|
|
|
when 39
|
|
|
|
when 39
|
|
|
|
unless @isWindows
|
|
|
|
if @isMac
|
|
|
|
@trigger 'superRight'
|
|
|
|
@trigger 'superRight'
|
|
|
|
false
|
|
|
|
false
|
|
|
|
when 40
|
|
|
|
when 40
|
|
|
@ -135,14 +135,14 @@ class app.Shortcuts
|
|
|
|
when 9
|
|
|
|
when 9
|
|
|
|
@trigger 'altRight', event
|
|
|
|
@trigger 'altRight', event
|
|
|
|
when 37
|
|
|
|
when 37
|
|
|
|
if @isWindows
|
|
|
|
unless @isMac
|
|
|
|
@trigger 'superLeft'
|
|
|
|
@trigger 'superLeft'
|
|
|
|
false
|
|
|
|
false
|
|
|
|
when 38
|
|
|
|
when 38
|
|
|
|
@trigger 'altUp'
|
|
|
|
@trigger 'altUp'
|
|
|
|
false
|
|
|
|
false
|
|
|
|
when 39
|
|
|
|
when 39
|
|
|
|
if @isWindows
|
|
|
|
unless @isMac
|
|
|
|
@trigger 'superRight'
|
|
|
|
@trigger 'superRight'
|
|
|
|
false
|
|
|
|
false
|
|
|
|
when 40
|
|
|
|
when 40
|
|
|
|