X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=_static%2Fdoctools.js;h=daccd209dab05a75f5627390e37a6b764e93f547;hb=c6fde8b6a27b6af31f0cf26a9cdccd54cd25734a;hp=b33f87fcb249ea9b0e0a07fa9c5f2595ea925709;hpb=e39eedb1ea4fdc8af01989629a4cba2b4f8c84b6;p=awesomized%2Flibmemcached diff --git a/_static/doctools.js b/_static/doctools.js index b33f87fc..daccd209 100644 --- a/_static/doctools.js +++ b/_static/doctools.js @@ -4,7 +4,7 @@ * * Sphinx JavaScript utilities for all documentation. * - * :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ @@ -283,10 +283,11 @@ var Documentation = { }, initOnKeyListeners: function() { - $(document).keyup(function(event) { + $(document).keydown(function(event) { var activeElementType = document.activeElement.tagName; // don't navigate when in search box or textarea - if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT') { + if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT' + && !event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) { switch (event.keyCode) { case 37: // left var prevHref = $('link[rel="prev"]').prop('href');