X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=blobdiff_plain;f=basis%2Fhelp%2Fhtml%2Fhtml.factor;h=ce4c206eaca45d8872154eb498ebbbfbe04bd7d3;hp=4cd0f8c889da55ad40ea890a9f3b1dd952f45038;hb=1ac3b1b74cf922ee5c3e51af266677141d37d892;hpb=cecb978bae17cfda6701194d6e7739d5d041f039 diff --git a/basis/help/html/html.factor b/basis/help/html/html.factor index 4cd0f8c889..ce4c206eac 100644 --- a/basis/help/html/html.factor +++ b/basis/help/html/html.factor @@ -98,6 +98,7 @@ M: pathname url-of if (event.code == 'Slash') { let input = document.getElementById('search'); if (input !== document.activeElement) { + event.preventDefault(); setTimeout(function() { input.focus().select() }, 0);