Thanks @airstrike for your example. Unfortunately, this is not exactly what I need. I don’t want change the focus state of a widget but check whether the user has focused one item of the UI.
@lufte: This was a good hint. I started to look a bit at the code behind the scences and it seems like that not only find_focused() cannot be used by the user but that no other internal code of the crate is using it.
Maybe when I have some time, I will try to come up with a wrapping function that enables find_focused() for text_input.
The idea would be that find_focus()would work similarly to focus()shown in @airstrike `s example.