Fixed overlay keyboard focus problems in GadgetWidget.

Clicking in the main part of the GadgetWidget wasn't taking focus back from the overlay, and typing in the GadgetWidget wasn't delivering events properly to overlays with the focus.