Ticket #6240 (new enhancement)
TextField should have an option to select all text on click
|Reported by:||Hannu Salonen||Owned by:||ticketmaster|
|Hours estimate:||Hours done:|
|Pro Account:||Vote for Feature|
There are plenty of use cases, eg. search forms, where a user needs to quickly enter and re-enter text into a textfield. Selecting the text every time with a double or triple click can be tedious and tabbing is not always an option (due to design or user behavior).
In these cases it would be an improvement in usability, if a TextField component could select its contents on mouse focus, just like happens when tabbing.
Although this can already be achieved with a server side method, it would be better to eliminate the round-trip altogether and let the developer toggle component's client side behavior in advance with a suitable method – for example tf.setSelectAllOnClick(true).