Added a thing to listen for enter key-presses in client key input.
This commit is contained in:
parent
6c7688e80a
commit
91e7f7efed
|
@ -176,6 +176,13 @@
|
||||||
|
|
||||||
refreshServers();
|
refreshServers();
|
||||||
window.setInterval(refreshServers, 3000);
|
window.setInterval(refreshServers, 3000);
|
||||||
|
// Add a key listener to the dialog's password field, so pressing ENTER submits the form.
|
||||||
|
const keyInput = document.getElementById("client-key-input");
|
||||||
|
keyInput.addEventListener("keydown", (ev) => {
|
||||||
|
if (ev.code === "Enter") {
|
||||||
|
submitServerRequest();
|
||||||
|
}
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue