mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-15 10:40:28 +08:00
prevent focus flickering
This commit is contained in:
parent
ad6a66ac8f
commit
f62715be13
@ -16,7 +16,7 @@ function WindowManager() {
|
|||||||
|
|
||||||
Array.prototype.forEach.call($$("menu-item"), function(el_item) {
|
Array.prototype.forEach.call($$("menu-item"), function(el_item) {
|
||||||
el_item.parentElement.querySelector(".menu-item-content").setAttribute("tabindex", "-1");
|
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);
|
__menu_items.push(el_item);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user