public void SetFocus(IFocusableUI ui)
{
/** No change **/
if (ui == LastFocus) { return; }
if (LastFocus != null)
{
LastFocus.OnFocusChanged(FocusEvent.FocusOut);
}
LastFocus = ui;
if (ui != null)
{
LastFocus.OnFocusChanged(FocusEvent.FocusIn);
}
}