Thanks that was that, now the for loop is not needed anymore, but the setFocus has to be set on the window containing the widget manually.
I just asked if that's normal to have to do that manually, apparently you answered yes.
After thinking about the problem, that's better to have to do it manually.
Bookmarks