Ticket #6240 (new enhancement)

Opened 2 years ago

Last modified 7 days ago

TextField should have an option to select all text on click

Reported by: Hannu Salonen Owned by: ticketmaster
Priority: normal Milestone: Vaadin Backlog
Component: Core Framework Version: 6.4.8
Keywords: textfield focus Cc:
Hours estimate: Hours done:
Depends on:
Workaround:
Pro Account: Vote for Feature

Description

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).

Change History

comment:1 Changed 2 years ago by Artur Signell

  • Milestone set to Vaadin Backlog

comment:2 Changed 7 days ago by Artur Signell

  • Component changed from Component to Core Framework
Note: See TracTickets for help on using tickets.