Bug 31933
This commit is contained in:
parent
cf8bb7178e
commit
76105ffb22
|
@ -158,10 +158,9 @@ define([
|
||||||
|
|
||||||
if (e.keyCode == Common.UI.Keys.UP || e.keyCode == Common.UI.Keys.DOWN) {
|
if (e.keyCode == Common.UI.Keys.UP || e.keyCode == Common.UI.Keys.DOWN) {
|
||||||
_.delay(function() {
|
_.delay(function() {
|
||||||
var selected = me.cmpEl.find('ul li.selected a');
|
var selected = (e.keyCode == Common.UI.Keys.DOWN) ? me.cmpEl.find('ul li.selected').nextAll('li:not(.divider)') : me.cmpEl.find('ul li.selected').prevAll('li:not(.divider)');
|
||||||
|
selected = (selected.length>0) ? selected.eq(0) : ((e.keyCode == Common.UI.Keys.DOWN) ? me.cmpEl.find('ul li:not(.divider):first') : me.cmpEl.find('ul li:not(.divider):last'));
|
||||||
if (selected.length<=0)
|
selected = selected.find('a');
|
||||||
selected = me.cmpEl.find('ul li:not(.divider):first a');
|
|
||||||
|
|
||||||
me._skipInputChange = true;
|
me._skipInputChange = true;
|
||||||
selected.focus();
|
selected.focus();
|
||||||
|
|
|
@ -67,7 +67,9 @@
|
||||||
color: @dropdown-link-active-color;
|
color: @dropdown-link-active-color;
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&.hover {
|
&.hover,
|
||||||
|
&:focus,
|
||||||
|
&.focus {
|
||||||
background-color: @primary;
|
background-color: @primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue