summaryrefslogtreecommitdiffstats
path: root/templates/html/search.js
diff options
context:
space:
mode:
authorJoseph Mirabel <jmirabel@laas.fr>2020-03-22 12:15:24 (GMT)
committerJoseph Mirabel <jmirabel@laas.fr>2020-03-22 12:15:24 (GMT)
commit2f66c80e7d59f2dd22036b17e77a48e547705d96 (patch)
tree22181a9ebfc58e66de9ddcae9921fefdab7728ca /templates/html/search.js
parent386bc490c931392778334772eee6a56778cd5ae1 (diff)
downloadDoxygen-2f66c80e7d59f2dd22036b17e77a48e547705d96.zip
Doxygen-2f66c80e7d59f2dd22036b17e77a48e547705d96.tar.gz
Doxygen-2f66c80e7d59f2dd22036b17e77a48e547705d96.tar.bz2
Fix CROS javascript issue when giving focus to search result frame.
Diffstat (limited to 'templates/html/search.js')
-rw-r--r--templates/html/search.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/templates/html/search.js b/templates/html/search.js
index a554ab9..86fbb9c 100644
--- a/templates/html/search.js
+++ b/templates/html/search.js
@@ -200,10 +200,9 @@ function SearchBox(name, resultsPath, inFrame, label)
}
return;
}
- else if (window.frames.MSearchResults.searchResults)
+ else
{
- var elem = window.frames.MSearchResults.searchResults.NavNext(0);
- if (elem) elem.focus();
+ window.frames.MSearchResults.postMessage("take_focus", "*");
}
}
else if (e.keyCode==27) // Escape out of the search field