We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bf3fd17 + 3153d23 commit 08501bdCopy full SHA for 08501bd
src/librustdoc/html/static/main.js
@@ -258,6 +258,7 @@
258
addClass(search, "hidden");
259
removeClass(document.getElementById("main"), "hidden");
260
}
261
+ defocusSearchBar();
262
break;
263
264
case "s":
@@ -1884,3 +1885,8 @@
1884
1885
function focusSearchBar() {
1886
document.getElementsByClassName('search-input')[0].focus();
1887
1888
+
1889
+// Removes the focus from the search bar
1890
+function defocusSearchBar() {
1891
+ document.getElementsByClassName('search-input')[0].blur();
1892
+}
0 commit comments