Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select All on focus change #64

Open
justdan0227 opened this issue Sep 30, 2021 · 3 comments
Open

Select All on focus change #64

justdan0227 opened this issue Sep 30, 2021 · 3 comments

Comments

@justdan0227
Copy link

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

@neoneye
Copy link
Owner

neoneye commented Sep 30, 2021

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

@justdan0227
Copy link
Author

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.

@neoneye
Copy link
Owner

neoneye commented Sep 30, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants