mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 17:58:22 +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) ->
|
search: (e) ->
|
||||||
switch e.which
|
switch e.which
|
||||||
|
when 27
|
||||||
|
# escape key
|
||||||
|
@toggle false
|
||||||
|
|
||||||
when 37
|
when 37
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
when 38
|
when 38
|
||||||
@ -103,6 +107,7 @@ class SystemPanelTag extends Ant.OS.GUI.BaseTag
|
|||||||
@refs.applist.set "data", list
|
@refs.applist.set "data", list
|
||||||
|
|
||||||
toggle: (flag) ->
|
toggle: (flag) ->
|
||||||
|
@view = flag
|
||||||
if flag
|
if flag
|
||||||
@refreshAppList()
|
@refreshAppList()
|
||||||
$(@refs.overlay).show()
|
$(@refs.overlay).show()
|
||||||
@ -160,7 +165,6 @@ class SystemPanelTag extends Ant.OS.GUI.BaseTag
|
|||||||
@toggle true
|
@toggle true
|
||||||
else
|
else
|
||||||
@toggle false
|
@toggle false
|
||||||
@view = not @view
|
|
||||||
Ant.OS.announcer.trigger("syspanelloaded")
|
Ant.OS.announcer.trigger("syspanelloaded")
|
||||||
|
|
||||||
Ant.OS.GUI.define "afx-sys-panel", SystemPanelTag
|
Ant.OS.GUI.define "afx-sys-panel", SystemPanelTag
|
Loading…
Reference in New Issue
Block a user