We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 747395c commit 135b57fCopy full SHA for 135b57f
assets/js/offline-search.js
@@ -172,7 +172,8 @@
172
173
//Bring focus to search bar
174
$(document).on('keydown', function (event) {
175
- if (event.key === '/' ) {
+ if (event.key === '/' && !(document.activeElement instanceof HTMLInputElement)) {
176
+ event.preventDefault();
177
$searchInput.focus();
178
}
179
});
@@ -193,6 +194,10 @@
193
194
195
196
197
+ $searchInput.on('blur', function () {
198
+ $searchInput.val('');
199
+ $searchInput.trigger('change');
200
+ });
201
+
202
203
})(jQuery);
-
0 commit comments