Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 81c6da9

Browse files
committed
Select first element by default
1 parent da9f0c6 commit 81c6da9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

sphinx_search/static/js/rtd_sphinx_search.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,9 @@ const generateAndReturnInitialHtml = () => {
558558
<span class="bar"></span> \
559559
</div> \
560560
<div class="rtd__search__credits"> \
561-
Search by <a href="https://readthedocs.org/">Read the Docs</a> & <a href="https://readthedocs-sphinx-search.readthedocs.io/en/latest/">readthedocs-sphinx-search</a> \
561+
<small> \
562+
Search by <a href="https://readthedocs.org/">Read the Docs</a> & <a href="https://readthedocs-sphinx-search.readthedocs.io/">readthedocs-sphinx-search</a> \
563+
<small> \
562564
<div> \
563565
</div>';
564566

@@ -645,7 +647,7 @@ window.addEventListener("DOMContentLoaded", evt => {
645647

646648
// this denotes the search suggestion which is currently selected
647649
// via tha ArrowUp/ArrowDown keys.
648-
let current_focus = 0;
650+
let current_focus = 1;
649651

650652
// this stores the current request.
651653
let current_request = null;

sphinx_search/static/js/rtd_sphinx_search.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)