Widget loses focus when it never should to begin with

You can see in my example I use it.