Indeed, that shouldn't happen.
I only tried it with clicking on the widget and by using the tab key, I didn't try with calling the focus function manually before.
I'll fix this later today or tomorrow so that the edit box (and other widgets) don't get focused.