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;