Merge pull request #732 from ONLYOFFICE/fix/sse-bug-45140

[SSE] For Bug 45140: close entries list menu on Alt+down
This commit is contained in:
Julia Radzhabova 2021-03-05 19:51:54 +03:00 committed by GitHub
commit 4c6dd63373
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1046,6 +1046,14 @@ define([
items: []
}).on('show:after', function () {
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({