From 81c6b81cbb6eeb9199f3afcd4d4b33a1a9f330ed Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Thu, 8 Nov 2018 11:35:26 +0800 Subject: [PATCH] fix bug of search --- source/js/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/js/app.js b/source/js/app.js index 7106e7e..bfa0416 100755 --- a/source/js/app.js +++ b/source/js/app.js @@ -9,6 +9,11 @@ var customSearch; const $elem = elem.href ? $(elem.getAttribute('href')) : $(elem); $('html, body').animate({ 'scrollTop': $elem.offset().top - correction }, 400); }; + document.onkeydown = function() { + if (event.keyCode == 9) { + return false; + } + } function setHeader() { if (!window.subData) return;