diff --git a/roomunlock.html b/roomunlock.html index 61dbef38cc2505b9da9939733538bb6acc823ed2..fecee899a17670d88236addd77c34bf4b92cb452 100644 --- a/roomunlock.html +++ b/roomunlock.html @@ -98,6 +98,10 @@ const urlTime = document.getElementById('urlTime'); const roomUrl = document.getElementById('roomUrl'); + roomField.addEventListener("keydown", ({ key }) => { + if (key === "Enter") { process_form() } + }) + let room = window.location.href.substring(window.location.href.lastIndexOf('/') + 1) if (room !== "raumfreischaltung" && room !== "") { roomField.value = room; @@ -122,7 +126,7 @@ } else { _body = "{}" } - + fetch(baseUrl + "/unlockroom", { method: "POST", body: _body,