diff options
author | Maxim Devaev <[email protected]> | 2023-04-27 20:23:20 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-04-27 20:23:20 +0300 |
commit | 3170dcdb575124a6867381b09af6a2a18a6b1278 (patch) | |
tree | c1d562ec397de6ee554d5b647687a0e5b94972fb /web/share | |
parent | 70e89f5e0491a96ba51be927dc76c81cfdf28dee (diff) |
web: focus on text area after opening pak menu
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"); |