From 093e950312c75bc4732be63a3f2d4369b24b85d7 Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Wed, 18 Jun 2014 10:54:00 -0700 Subject: [PATCH] (feat) Add autofocus to docs' search bar. This is a fix for convenience for heavy keyboard users. It allows the docs to be traversed without using the mouse, by giving focus to the search bar on document load. This is done by giving the `input.search-container` an `autofocus="autofocus"` attribute. --- src/librustdoc/html/layout.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs index e2fa57148c2c7..eb39a7a138bf2 100644 --- a/src/librustdoc/html/layout.rs +++ b/src/librustdoc/html/layout.rs @@ -66,6 +66,7 @@ r##"