From cdd5fb31120b31ef67e00bbb633af32e63e40846 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Tue, 20 May 2025 12:27:06 +0200 Subject: [PATCH] added the ability to press enter in the text field to request status --- public/js/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/js/index.js b/public/js/index.js index 222df9e..003274c 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -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();