From 212a7008dd3b82b46fac494b3c0f3a496edf39b1 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Wed, 13 Oct 2021 18:08:52 +0800 Subject: [PATCH] focus at last, in cmd --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 6521b8d..0c33602 100644 --- a/common.php +++ b/common.php @@ -1399,7 +1399,7 @@ output: let inputarea = document.getElementById(\'inputarea\'); //console.log(a + ", " + inputarea.value); inputarea.focus(); - inputarea.setSelectionRange(0, inputarea.value.length); + inputarea.setSelectionRange(inputarea.value.length, inputarea.value.length); }, 500); '; return message($html, 'Run cmd', $statusCode);