summaryrefslogtreecommitdiffstats
path: root/core/search/js
diff options
context:
space:
mode:
Diffstat (limited to 'core/search/js')
-rw-r--r--core/search/js/search.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/search/js/search.js b/core/search/js/search.js
index 93b1961eea5..4dd29ef917f 100644
--- a/core/search/js/search.js
+++ b/core/search/js/search.js
@@ -352,6 +352,7 @@
!$searchBox.is(':focus') // if searchbox is already focused do nothing (fallback to browser default)
) {
$searchBox.focus();
+ $searchBox.select();
event.preventDefault();
}
});