From be32b743c6a7a19b74989b8ebb5817e851d53ea8 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 3 Sep 2021 20:48:41 +0200 Subject: [PATCH] repl: select default text on load --- copyparty/web/util.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/copyparty/web/util.js b/copyparty/web/util.js index aa88ea6f..ffd4e7b0 100644 --- a/copyparty/web/util.js +++ b/copyparty/web/util.js @@ -1074,7 +1074,9 @@ function repl_load() { }; getpres(); tb.value = last_repl; - + setTimeout(function () { + tb.setSelectionRange(0, tb.value.length, "forward"); + }, 10); } function repl(e) { ev(e);