add tab index

This commit is contained in:
buzz-lightsnack-2007 2024-03-29 22:44:01 +08:00
parent f5c5a3c2b6
commit e34013b5f8
2 changed files with 10 additions and 6 deletions

View file

@ -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,
);
})();