diff --git a/StackMonkey.ps1 b/StackMonkey.ps1 index aa85a37..9c112d7 100644 --- a/StackMonkey.ps1 +++ b/StackMonkey.ps1 @@ -688,6 +688,16 @@ function toggleColumn(col) { goButton.click(); // Trigger the 'Go' button click } }); + + // Trigger 'Run Selected' button click when 'Enter' is pressed after selecting a site + const siteDropdown = document.getElementById('dattoDropdown'); + const runButton = document.querySelector('.run-button'); + + siteDropdown.addEventListener('keydown', (e) => { + if (e.key === 'Enter' && siteDropdown.value) { // Check if the key pressed is 'Enter' and a site is selected + runButton.click(); // Trigger the 'Run Selected' button click + } + }); });