Makes sure the focus is grabbed when the user clicks on the widget.