diff --git a/static/koboldai.js b/static/koboldai.js index 9e413c2a..f6dbbdf0 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -4922,6 +4922,12 @@ function openPopup(id) { const popup = $el(`#${id}`); popup.classList.remove("hidden"); + + // Sometimes we want to instantly focus on certain elements when a menu opens. + for (const noticeMee of popup.getElementsByClassName("focus-on-me")) { + noticeMee.focus(); + break; + } } function closePopups() {