diff --git a/StackMonkey.ps1 b/StackMonkey.ps1 index 604218c..aa85a37 100644 --- a/StackMonkey.ps1 +++ b/StackMonkey.ps1 @@ -678,6 +678,16 @@ function toggleColumn(col) { document.addEventListener('DOMContentLoaded', () => { const master = document.getElementById('installDattoRMM'); if (master) master.addEventListener('change', toggleDattoRMMOptions); + + // Fetch sites when the "Enter" key is pressed in the password input field + const passwordField = document.getElementById('Password'); + const goButton = document.querySelector("button[onclick='fetchSites()']"); + + passwordField.addEventListener('keydown', (e) => { + if (e.key === 'Enter') { // Check if the key pressed is 'Enter' + goButton.click(); // Trigger the 'Go' button click + } + }); }); @@ -957,6 +967,8 @@ $script + +