diff --git a/src/theme/book.js b/src/theme/book.js index 776b4f16..58d8eed9 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -23,23 +23,6 @@ $( document ).ready(function() { hljs.highlightBlock(block); }); - var KEY_CODES = { - PREVIOUS_KEY: 37, - NEXT_KEY: 39 - }; - - $(document).on('keydown', function (e) { - if (e.altKey === true) { - switch (e.keyCode) { - case KEY_CODES.NEXT_KEY: - window.location.href = $('.nav-chapters.next').attr('href'); - break; - case KEY_CODES.PREV_KEY: - window.location.href = $('.nav-chapters.previous').attr('href'); - break; - } - } - }); // Interesting DOM Elements var html = $("html"); diff --git a/src/theme/index.hbs b/src/theme/index.hbs index f84bdb87..a8fdae1e 100644 --- a/src/theme/index.hbs +++ b/src/theme/index.hbs @@ -84,13 +84,13 @@ {{#previous}} - {{/previous}} {{#next}} - {{/next}}