public override bool LoseFocus() { if (HoldFocus) { return(false); } HasFocus = false; DisableInput(); UserActions.LoseFocus(); OnLoseFocus.SafeInvoke(); return(true); }
public override bool LoseFocus() { if (mDestroyed) { return(true); } if (base.LoseFocus()) { UserActions.LoseFocus(); DisableInput(); OnLoseFocus.SafeInvoke(); if (DeactivateOnLoseFocus) { GUIManager.Get.Deactivate(this); } return(true); } return(false); }