From e34013b5f8515224d1235ddd8d4a8a6958a3598b Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Fri, 29 Mar 2024 22:44:01 +0800 Subject: [PATCH] add tab index --- gui/pages/settings.htm | 8 ++++---- gui/scripts/windowman.JS | 8 ++++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/gui/pages/settings.htm b/gui/pages/settings.htm index 23bd4f8..7c7796d 100644 --- a/gui/pages/settings.htm +++ b/gui/pages/settings.htm @@ -10,10 +10,10 @@
- - - - + + + +
diff --git a/gui/scripts/windowman.JS b/gui/scripts/windowman.JS index d8943c3..549e674 100644 --- a/gui/scripts/windowman.JS +++ b/gui/scripts/windowman.JS @@ -61,7 +61,11 @@ class windowman { ); } - text_element.innerText = text_inserted; + if (text_element.tagName.toLowerCase().includes(`input`)) { + text_element.setAttribute(`placholder`, text_inserted); + } else { + text_element.innerText = text_inserted; + } }); } @@ -216,7 +220,7 @@ class windowman { // Write the data. secretariat.write( [`view`, window.location.href], - this.getAttribute(`for`), + parseInt(this.getAttribute(`tab`)), 1, ); })();