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 unfocus operation #2804

Merged
merged 2 commits into from
Feb 11, 2025
Merged

add unfocus operation #2804

merged 2 commits into from
Feb 11, 2025

Conversation

edwloef
Copy link
Contributor

@edwloef edwloef commented Feb 11, 2025

Adds an operation that unfocuses all focusable widgets. Previously this could be done by focusing a guaranteed-to-be-missing widget Id, however having it be its own thing is more intuitive. A use case for this would be to unfocus a text_input on submit.

@hecrj hecrj added this to the 0.14 milestone Feb 11, 2025
@hecrj hecrj added feature New feature or request widget addition labels Feb 11, 2025
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.

@hecrj hecrj enabled auto-merge February 11, 2025 19:48
@hecrj hecrj merged commit c98f60a into iced-rs:master Feb 11, 2025
15 checks passed
@edwloef edwloef deleted the unfocus_operation branch February 11, 2025 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition feature New feature or request widget
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants