prevent focus flickering

This commit is contained in:
Devaev Maxim 2018-12-01 13:13:19 +03:00
parent ad6a66ac8f
commit f62715be13

View File

@ -16,7 +16,7 @@ function WindowManager() {
Array.prototype.forEach.call($$("menu-item"), function(el_item) {
el_item.parentElement.querySelector(".menu-item-content").setAttribute("tabindex", "-1");
tools.setOnClick(el_item, () => __toggleMenu(el_item));
tools.setOnDown(el_item, () => __toggleMenu(el_item));
__menu_items.push(el_item);
});