mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 01:38:21 +01:00
fix spotlight behavior
This commit is contained in:
parent
0b27af3e9d
commit
0abb49dadc
@ -36,6 +36,10 @@ class SystemPanelTag extends Ant.OS.GUI.BaseTag
|
||||
|
||||
search: (e) ->
|
||||
switch e.which
|
||||
when 27
|
||||
# escape key
|
||||
@toggle false
|
||||
|
||||
when 37
|
||||
e.preventDefault()
|
||||
when 38
|
||||
@ -103,6 +107,7 @@ class SystemPanelTag extends Ant.OS.GUI.BaseTag
|
||||
@refs.applist.set "data", list
|
||||
|
||||
toggle: (flag) ->
|
||||
@view = flag
|
||||
if flag
|
||||
@refreshAppList()
|
||||
$(@refs.overlay).show()
|
||||
@ -160,7 +165,6 @@ class SystemPanelTag extends Ant.OS.GUI.BaseTag
|
||||
@toggle true
|
||||
else
|
||||
@toggle false
|
||||
@view = not @view
|
||||
Ant.OS.announcer.trigger("syspanelloaded")
|
||||
|
||||
Ant.OS.GUI.define "afx-sys-panel", SystemPanelTag
|
Loading…
Reference in New Issue
Block a user