From f814e96459bf5ca28aac0b07b087a843f933c9d9 Mon Sep 17 00:00:00 2001 From: CrazyMerlyn Date: Thu, 23 Mar 2017 13:29:04 +0530 Subject: [PATCH] Fix keyboard navigation to trigger only if no modifier key is pressed --- src/theme/book.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/theme/book.js b/src/theme/book.js index 21295140..c3cbcfcc 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -33,6 +33,7 @@ $( document ).ready(function() { }; $(document).on('keydown', function (e) { + if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { return; } switch (e.keyCode) { case KEY_CODES.NEXT_KEY: e.preventDefault();