Merge pull request #2375 from Morlinest/patch-1

Mark all content in search field
This commit is contained in:
Lukas Reschke 2016-11-28 17:19:25 +01:00 committed by GitHub
commit d2fab66d49
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();
}
});