On input focus, I ask the developer to automatically select any previously entered text. Doing so, it will allows users to enter a new search by typing, or to modify the previous search. Is this usable? Is this a best practice?

|
On input focus, I ask the developer to automatically select any previously entered text. Doing so, it will allows users to enter a new search by typing, or to modify the previous search. Is this usable? Is this a best practice?
|
|||||
|
|
There are two possible scenarios here.
If you have a good idea of who your users are and what they are likely to do, this should help you decide. Also, I'd say that unsophisticated users are less likely to realize what the selection means (i.e. that anything they type will replace the entire text), and they're also less likely to know the shift+home/end combo. |
|||
|
|
|
I used to try to achieve the same thing in Java Swing. Just select everything when the textfield receives the focus. However, doing so may actually introduce more issues than leaving the selection away if not carried out properly. If you opt of the selection upon focus gain, at least the following points should be checked:
A good working example IMHO is the omnibar in Google Chrome on Windows. Note that the behavior is different on Linux... |
|||
|
|