focus at last, in cmd

pull/440/merge
qkqpttgf 2021-10-13 18:08:52 +08:00 committed by GitHub
parent f924b116db
commit 212a7008dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1399,7 +1399,7 @@ output:
let inputarea = document.getElementById(\'inputarea\'); let inputarea = document.getElementById(\'inputarea\');
//console.log(a + ", " + inputarea.value); //console.log(a + ", " + inputarea.value);
inputarea.focus(); inputarea.focus();
inputarea.setSelectionRange(0, inputarea.value.length); inputarea.setSelectionRange(inputarea.value.length, inputarea.value.length);
}, 500); }, 500);
</script>'; </script>';
return message($html, 'Run cmd', $statusCode); return message($html, 'Run cmd', $statusCode);