From: John Benediktsson Date: Sun, 25 Sep 2022 21:01:07 +0000 (-0700) Subject: help.html: only input.focus(). X-Git-Tag: 0.99~1065 X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=8b7f7e5bd78a0b997659ae0470088564fbbe3df8 help.html: only input.focus(). --- diff --git a/basis/help/html/html.factor b/basis/help/html/html.factor index 77d75e9aa7..c9cd833b69 100644 --- a/basis/help/html/html.factor +++ b/basis/help/html/html.factor @@ -101,7 +101,7 @@ M: pathname url-of if (input !== document.activeElement) { event.preventDefault(); setTimeout(function() { - input.focus().select() + input.focus(); }, 0); } } diff --git a/extra/webapps/help/search.js b/extra/webapps/help/search.js index 7ad98c8160..8a39d8e824 100644 --- a/extra/webapps/help/search.js +++ b/extra/webapps/help/search.js @@ -12,7 +12,7 @@ document.addEventListener('keydown', function (event) { if (input !== document.activeElement) { event.preventDefault(); setTimeout(function() { - input.focus().select() + input.focus(); }, 0); } }