Skip to content

Commit

Permalink
doc: fix issue with keydown/keyup being ignored
Browse files Browse the repository at this point in the history
Ensure initial search menu visibility is properly set so that key
events don't get trapped preventing arrow key navigation on the
document.

Signed-off-by: Benjamin Cabé <[email protected]>
(cherry picked from commit b3776ca)
  • Loading branch information
kartben authored and github-actions[bot] committed Aug 26, 2024
1 parent afedbb4 commit 6be82d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/_templates/searchbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
.getElementById("search-se-settings-icon")
.setAttribute("aria-expanded", visible ? "true" : "false");
};
setSearchEngineSettingsMenuVisibility(false);

window.toggleSearchEngineSettingsMenu = function () {
isVisible = searchMenu.style.display === "block";
Expand Down

0 comments on commit 6be82d2

Please sign in to comment.