chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc5fc28
)
doxygen: eat T / Tab only if no modifier keys are pressed.
author
Vladimír Vondruš
<mosra@centrum.cz>
Sun, 11 Feb 2018 21:42:41 +0000
(22:42 +0100)
committer
Vladimí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
patch
|
blob
|
history
diff --git
a/doxygen/search.js
b/doxygen/search.js
index e33c7a39ef10990d4e4ee3e272c45a0d72d0a444..7575c271da0b4f6a16112f375ffcb81561799e50 100644
(file)
--- 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 */
}