private void UpdateToHasFocus() { UpdateCaretVisibility(); UpdateState(); if (hasFocus) { GuiManager.AddNextClickAction(HandleClickOff); #if ANDROID FlatRedBall.Input.InputManager.Keyboard.ShowKeyboard(); #endif } else if (!hasFocus && FlatRedBall.Input.InputManager.InputReceiver == this) { FlatRedBall.Input.InputManager.InputReceiver = null; #if ANDROID FlatRedBall.Input.InputManager.Keyboard.HideKeyboard(); #endif } }