From: Vladimír Vondruš Date: Sun, 11 Feb 2018 21:42:41 +0000 (+0100) Subject: doxygen: eat T / Tab only if no modifier keys are pressed. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=1a3695afcec049c586db14066fd9d3b97167fe91;p=blog.git doxygen: eat T / Tab only if no modifier keys are pressed. Otherwise Ctrl-T and Shift-Tab for opening a new / going to another tab don't work as they should. --- diff --git a/doxygen/search.js b/doxygen/search.js index e33c7a39..7575c271 100644 --- a/doxygen/search.js +++ b/doxygen/search.js @@ -558,7 +558,7 @@ if(typeof document !== 'undefined') { /* Search hidden */ } else { /* Open the search on the T or Tab key */ - if(event.key.toLowerCase() == 't' || event.key == 'Tab') { + if((event.key.toLowerCase() == 't' || event.key == 'Tab') && !event.shiftKey && !event.ctrlKey && !event.altKey && !event.metaKey) { showSearch(); return false; /* so T doesn't get entered into the box */ }