Example #1
0
 public override bool LoseFocus()
 {
     if (HoldFocus)
     {
         return(false);
     }
     HasFocus = false;
     DisableInput();
     UserActions.LoseFocus();
     OnLoseFocus.SafeInvoke();
     return(true);
 }
Example #2
0
        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);
        }