I'm wondering if there is a rule of thumb for the scenario where a user selects a textbox that has content in it. Would it follow that all the text in it should always be selected to allow a user to type a new value with no additional interaction than typing what's new?
|
Always think about the scenario involving the textbox field:
Another important thing to remember is that users might not expect the selection of the whole text and hence starting to type erases all the previous text. If the text field is long or "difficult" (think address with zip code) the "damage" of erasing it might overcome the benefit of auto-selection. |
|||
|
|
|
In my opinion selecting the text would in most cases be unexpected and unnecessary, if not even harmful. However, there are exceptions. Browser's address bar is the best example I can think of. It is probably safe to assume the user usually wants to write a new address instead of modifying the current address, so preselecting the text is helpful. So my answer would be that text should not be preselected, unless there a specific reason for doing so. In other words, if you don't know which way is the right way to go, then do not preselect. That seems like the safer choice in most cases. |
|||
|
|
|
I believe the "rule of thumb" is that no pre-selection occurs. At least. this is how it works in all of our companies software, and also how it works in every app and website I just quickly checked :) If the text was NOT entered by the user (eg, it is default text, like the search box on this site), then that text should be cleared out before the user begins to type... |
||||
|
|
|
|||
|
|