[Common] Open combobox with arrow down key
This commit is contained in:
parent
d8a1bd88f5
commit
2272003f44
|
@ -348,7 +348,16 @@ define([
|
|||
},
|
||||
|
||||
onAfterKeydownMenu: function(e) {
|
||||
if (e.keyCode == Common.UI.Keys.RETURN) {
|
||||
if (e.keyCode == Common.UI.Keys.DOWN && !this.editable && !this.isMenuOpen()) {
|
||||
this.openMenu();
|
||||
var me = this;
|
||||
_.delay(function() {
|
||||
me._skipInputChange = true;
|
||||
me.cmpEl.find('ul li:first a').focus();
|
||||
}, 10);
|
||||
return false;
|
||||
}
|
||||
else if (e.keyCode == Common.UI.Keys.RETURN && (this.editable || this.isMenuOpen())) {
|
||||
$(e.target).click();
|
||||
var me = this;
|
||||
if (this.rendered) {
|
||||
|
|
Loading…
Reference in a new issue