Fix escape not working when searchbar selected
This commit is contained in:
parent
6235ef0422
commit
9e0ccc5a47
1 changed files with 6 additions and 3 deletions
|
@ -240,12 +240,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleShortcut(ev) {
|
function handleShortcut(ev) {
|
||||||
if (document.activeElement.tagName === "INPUT")
|
if (document.activeElement.tagName === "INPUT" &&
|
||||||
|
hasClass(document.getElementById('main'), "hidden")) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Don't interfere with browser shortcuts
|
// Don't interfere with browser shortcuts
|
||||||
if (ev.ctrlKey || ev.altKey || ev.metaKey)
|
if (ev.ctrlKey || ev.altKey || ev.metaKey) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var help = document.getElementById("help");
|
var help = document.getElementById("help");
|
||||||
switch (getVirtualKey(ev)) {
|
switch (getVirtualKey(ev)) {
|
||||||
|
@ -1800,7 +1803,7 @@
|
||||||
if (!next) {
|
if (!next) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (checkIfThereAreMethods(next.childNodes) &&
|
if ((checkIfThereAreMethods(next.childNodes) || hasClass(e, 'method')) &&
|
||||||
(hasClass(next, 'docblock') ||
|
(hasClass(next, 'docblock') ||
|
||||||
hasClass(e, 'impl') ||
|
hasClass(e, 'impl') ||
|
||||||
(hasClass(next, 'stability') &&
|
(hasClass(next, 'stability') &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue