From f62715be13c8d67175ccda8ddfb5cf754965f109 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sat, 1 Dec 2018 13:13:19 +0300 Subject: prevent focus flickering --- web/js/wm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/js/wm.js') diff --git a/web/js/wm.js b/web/js/wm.js index 002009c2..e4f0a042 100644 --- a/web/js/wm.js +++ b/web/js/wm.js @@ -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); }); -- cgit v1.2.3