From acdf64e1f7f1d0a66bca6a63ba1f997dcd9473d7 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 30 Jan 2017 23:08:24 -0500 Subject: [PATCH] Remove code to check for other focused controls --- osu.Game/Screens/Select/SearchTextBox.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/osu.Game/Screens/Select/SearchTextBox.cs b/osu.Game/Screens/Select/SearchTextBox.cs index a6790e1130..8b95d74fb5 100644 --- a/osu.Game/Screens/Select/SearchTextBox.cs +++ b/osu.Game/Screens/Select/SearchTextBox.cs @@ -68,13 +68,7 @@ namespace osu.Game.Screens.Select protected override void Update() { if (GrabFocus && !HasFocus && IsVisible) - { - var inputManager = Parent; - while (inputManager != null && !(inputManager is InputManager)) - inputManager = inputManager.Parent; - if (inputManager != null && (inputManager as InputManager)?.FocusedDrawable == null) - TriggerFocus(); - } + TriggerFocus(); base.Update(); }