chiark / gitweb /
doxygen: eat T / Tab only if no modifier keys are pressed.
authorVladimír Vondruš <mosra@centrum.cz>
Sun, 11 Feb 2018 21:42:41 +0000 (22:42 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Sun, 11 Feb 2018 21:42:41 +0000 (22:42 +0100)
Otherwise Ctrl-T and Shift-Tab for opening a new / going to another tab
don't work as they should.

doxygen/search.js

index e33c7a39ef10990d4e4ee3e272c45a0d72d0a444..7575c271da0b4f6a16112f375ffcb81561799e50 100644 (file)
@@ -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 */
             }