diff options
author | Devaev Maxim <[email protected]> | 2018-12-01 13:13:19 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-12-01 13:13:19 +0300 |
commit | f62715be13c8d67175ccda8ddfb5cf754965f109 (patch) | |
tree | efad98251248bf0fc0c0182b467e5edb285091fe | |
parent | ad6a66ac8fcf7726540f750a6d83e5f80fb0cd71 (diff) |
prevent focus flickering
-rw-r--r-- | web/js/wm.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); }); |