From 8a9bd7dc03b3f0fe836f58db92320b63c02305e9 Mon Sep 17 00:00:00 2001 From: Joe Nelson Date: Wed, 12 May 2021 12:59:18 -0500 Subject: [PATCH] Preserve keyboard focus on menu item during navigation --- _templates/page.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_templates/page.html b/_templates/page.html index 56c7dfa8e..a064d96f3 100644 --- a/_templates/page.html +++ b/_templates/page.html @@ -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(); }); {% endblock %}