Focus the prompt textbox on start

This commit is contained in:
cmdr2 2023-02-22 20:11:19 +05:30
parent a342de0207
commit 30dbadb2ab

View File

@ -1527,3 +1527,7 @@ window.addEventListener("beforeunload", function(e) {
createCollapsibles()
prettifyInputs(document);
// set the textbox as focused on start
promptField.focus()
promptField.selectionStart = promptField.value.length