iced-rs / iced

A cross-platform GUI library for Rust, inspired by Elm
https://iced.rs
MIT License
26.34k stars 1.28k forks source link

add unfocus operation #2804

Closed edwloef closed 2 months ago

edwloef commented 2 months ago

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.