diff options
Diffstat (limited to 'web/share')
-rw-r--r-- | web/share/js/wm.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/share/js/wm.js b/web/share/js/wm.js index c8a4c109..9dfbccb1 100644 --- a/web/share/js/wm.js +++ b/web/share/js/wm.js @@ -298,7 +298,8 @@ function __WindowManager() { el_button.classList.add("menu-button-pressed"); el_menu.style.visibility = "visible"; - el_menu.focus(); + let el_focus = el_menu.querySelector("[data-focus]"); + (el_focus !== null ? el_focus : el_menu).focus(); all_hidden &= false; } else { el_button.classList.remove("menu-button-pressed"); |