[Common] Open combobox with arrow down key

This commit is contained in:
Julia Radzhabova 2020-09-25 22:06:53 +03:00
parent d8a1bd88f5
commit 2272003f44

View file

@ -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) {