Merge pull request #2375 from Morlinest/patch-1
Mark all content in search field
This commit is contained in:
commit
d2fab66d49
|
@ -352,6 +352,7 @@
|
||||||
!$searchBox.is(':focus') // if searchbox is already focused do nothing (fallback to browser default)
|
!$searchBox.is(':focus') // if searchbox is already focused do nothing (fallback to browser default)
|
||||||
) {
|
) {
|
||||||
$searchBox.focus();
|
$searchBox.focus();
|
||||||
|
$searchBox.select();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue