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

Add textinput focus method #598

Merged
merged 2 commits into from
Nov 9, 2020
Merged

Conversation

oknozor
Copy link
Contributor

@oknozor oknozor commented Nov 6, 2020

This is just a small addition :

  • Add afocus methodto controlTextInput` focus state.

A simple use case would be to force the focus on every call to the Application::update, but this could be used
to move the focus around whenever a specific event occurs.

@oknozor oknozor force-pushed the input-text-focus branch 2 times, most recently from 2af31e3 to 3249723 Compare November 6, 2020 08:53
@hecrj hecrj added the feature New feature or request label Nov 9, 2020
@hecrj hecrj added this to the 0.2.0 milestone Nov 9, 2020
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

I have split the focus method into focus and unfocus, instead of asking for a boolean.

I also removed the .gitignore changes. You should instead update the .git/info/exclude file in your local copy of the repository to ignore any files related to your particular environment.

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

Successfully merging this pull request may close these issues.

2 participants