Skip to content

Commit

Permalink
Select active profile in popup menu by default. Fix #24.
Browse files Browse the repository at this point in the history
  • Loading branch information
FelisCatus committed Dec 27, 2014
1 parent 811be91 commit 5e91760
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions omega-web/src/coffee/popup.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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--
Expand Down

0 comments on commit 5e91760

Please sign in to comment.