We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b677013 commit 71ff18fCopy full SHA for 71ff18f
src/librustdoc/html/static/main.js
@@ -1722,6 +1722,10 @@ function getSearchElement() {
1722
search();
1723
};
1724
search_input.onchange = function(e) {
1725
+ if (e.target !== document.activeElement) {
1726
+ // To prevent doing anything when it's from a blur event.
1727
+ return;
1728
+ }
1729
// Do NOT e.preventDefault() here. It will prevent pasting.
1730
clearTimeout(searchTimeout);
1731
// zero-timeout necessary here because at the time of event handler execution the
0 commit comments