From 83355a894919668fc9a3361a29fd0cae0ab8a8b9 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Sun, 5 Jan 2025 18:48:28 -0500 Subject: [PATCH] Update SVSTaskGate.ps1 --- SVSTaskGate.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SVSTaskGate.ps1 b/SVSTaskGate.ps1 index afa71cd..4f1cd3e 100644 --- a/SVSTaskGate.ps1 +++ b/SVSTaskGate.ps1 @@ -651,6 +651,12 @@ function GetHtmlContent { n8nPasswordInput.addEventListener('input', () => { fetchSitesButton.disabled = n8nPasswordInput.value.length < 4; }); + // Trigger fetchSites() on Enter key press + n8nPasswordInput.addEventListener('keydown', (event) => { + if (event.key === 'Enter' && n8nPasswordInput.value.length >= 4) { + fetchSites(); // Call the fetchSites function + } + }); async function fetchSites() { const password = document.getElementById('n8nPassword').value;