diff --git a/src/theme/book.css b/src/theme/book.css index 6d3db97f..1dbd1ecd 100644 --- a/src/theme/book.css +++ b/src/theme/book.css @@ -137,6 +137,7 @@ table thead td { right: 0; left: 0; bottom: 0; + outline: 0; padding-right: 15px; overflow-y: auto; } diff --git a/src/theme/book.js b/src/theme/book.js index 8b1cdc15..c6161d91 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -52,8 +52,9 @@ $( document ).ready(function() { // Interesting DOM Elements var sidebar = $("#sidebar"); - var page_wrapper = $("#page-wrapper"); - var content = $("#content"); + + // Help keyboard navigation by always focusing on page content + $(".page").focus(); // Toggle sidebar $("#sidebar-toggle").click(sidebarToggle); diff --git a/src/theme/index.hbs b/src/theme/index.hbs index bf316f5f..81381b65 100644 --- a/src/theme/index.hbs +++ b/src/theme/index.hbs @@ -76,7 +76,7 @@