garrynewman/GWEN — pull request #31 by jamiehales (2013-02-09 15:18:30+00:00)
Title: Fix keyboard focus not being reset when no control with keyboard input is selected

When a text control is selected, and then you click on an empty canvas (or any item that doesn't take keyboard input), the KeyboardFocus isn't reset. So when you then type, that control still receives input.

This patch checks and resets the KeyboardFocus to null if there is no valid focus.