neoneye/SwiftyFORM

Select All on focus change

justdan0227 opened this issue · 3 comments

Is there a way to set a field as SELECT ALL when focus change to it?

What do you mean with "SELECT ALL", like a text where all text is selected?

Yes sorry so I would like to have each field to be SELECT ALL when focus goes to it so you can just click and enter vs having to press the X to clear the current value.

In TextFieldFormItem and TextViewFormItem, maybe add an enum ala tapBehavior = .selectText.

In TextFieldCell.handleTap() deal with the tapBehavior and select all the text.

PR is welcome.