Unfocus the widget if the user clicks on something that is not actually a part of the widget.

More fixes to ensure the focusing of the editor looks a little better when you click around the pages.