[SSE] For Bug 45140: close entries list menu on Alt+down

This commit is contained in:
Julia Radzhabova 2021-03-05 19:29:02 +03:00
parent 5127935203
commit 24bf3a4131

View file

@ -1046,6 +1046,14 @@ define([
items: [] items: []
}).on('show:after', function () { }).on('show:after', function () {
this.scroller.update({alwaysVisibleY: true}); this.scroller.update({alwaysVisibleY: true});
}).on('keydown:before', function (menu, e) {
if (e.altKey && e.keyCode == Common.UI.Keys.DOWN) {
var li = $(e.target).closest('li');
if (li.length>0)
li.click();
else
menu.hide();
}
}); });
this.funcMenu = new Common.UI.Menu({ this.funcMenu = new Common.UI.Menu({