Mark all content in search field

To resolve issue #2310
This commit is contained in:
Morlinest 2016-11-28 15:06:02 +01:00 committed by GitHub
parent 183bee9b67
commit 27cbaad96a
1 changed files with 1 additions and 0 deletions

View File

@ -352,6 +352,7 @@
!$searchBox.is(':focus') // if searchbox is already focused do nothing (fallback to browser default)
) {
$searchBox.focus();
$searchBox.select();
event.preventDefault();
}
});