mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 15:08:12 -05:00
Select active profile in popup menu by default. Fix #24.
This commit is contained in:
parent
811be9102f
commit
5e91760f35
@ -13,6 +13,8 @@ jQuery(document).on 'keydown', (e) ->
|
||||
items = jQuery('.popup-menu-nav > li:not(.ng-hide) > a')
|
||||
|
||||
i = items.index(jQuery(e.target).closest('a'))
|
||||
if i == -1
|
||||
i = items.index(jQuery('.popup-menu-nav > li.active > a'))
|
||||
switch e.keyCode
|
||||
when 38
|
||||
i--
|
||||
|
Loading…
Reference in New Issue
Block a user