mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Support auto-focusing in openPopup
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user