Set focus to an input

How can I set focusa to a input in a toolbar?

I have a toolbar with an input a grid.

When I open a window clicking on a row and close it later iI can’t click into the input. It seems as the toolbar has losed the focus.

It seems your toolbar covered by windows’ viewport.
Could you please provide us a source code?

Here is my code.

The toolbar is loaded from an xml file.