From 91e7f7efedd20a8367983a1cff4951c287fc69d9 Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Tue, 15 Oct 2024 13:53:34 -0400 Subject: [PATCH] Added a thing to listen for enter key-presses in client key input. --- api/app/index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/app/index.html b/api/app/index.html index 170411a..00eada0 100644 --- a/api/app/index.html +++ b/api/app/index.html @@ -176,6 +176,13 @@ refreshServers(); 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(); + } + })