Skip to content

Commit

Permalink
Preserve keyboard focus on menu item during navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
jonels-msft committed May 12, 2021
1 parent 99c6bc5 commit 43e63d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@
// "slideDown" means "show," it's not a direction of movement
$("#consentBox").slideDown("linear");
}

// move keyboard focus to selected menu item
$('li.toctree-l1 a.current').focus();
});
</script>
{% endblock %}

0 comments on commit 43e63d5

Please sign in to comment.