4.12 Widget Focus

Hello,
I have a problem.
I made some widgets in 4.10 version and everything worked perfectly. But in 4.11 and 4.12 I can’t set the keyboard focus initially. I need to click a button, not a background, button so the widget has the keyboard focus… Any tips?