Skip to content

Add textinput focus method#598

Merged
hecrj merged 2 commits into
iced-rs:masterfrom
oknozor:input-text-focus
Nov 9, 2020
Merged

Add textinput focus method#598
hecrj merged 2 commits into
iced-rs:masterfrom
oknozor:input-text-focus

Conversation

@oknozor
Copy link
Copy Markdown
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
Copy Markdown
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