added the ability to press enter in the text field

to request status
This commit is contained in:
Karma Riuk
2025-05-20 12:27:06 +02:00
parent 05d69ce7e8
commit cdd5fb3112

View File

@ -218,6 +218,12 @@ document.getElementById("request-status").onclick = async () => {
}
};
uuid.addEventListener("keyup", (e) => {
if (e.key === "Enter") {
document.getElementById("request-status").click();
}
});
if (window.location.hash) {
uuid.value = window.location.hash.substring(1); // remove # from hash
document.getElementById("request-status").click();