public virtual void ResetFocus() { if (FocusElement == null) { return; } FocusElement.FocusLost(); if (FocusElement is IKeyboardComponent && Game1.keyboardDispatcher.Subscriber != null) { Game1.keyboardDispatcher.Subscriber.Selected = false; Game1.keyboardDispatcher.Subscriber = null; } FocusElement = null; if (FloatingComponent != null) { FloatingComponent.Detach(this); FloatingComponent = null; } }