1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 11:10:07 +08:00

Remove code to check for other focused controls

This commit is contained in:
Drew DeVault
2017-01-30 23:08:24 -05:00
Unverified
parent 5852657205
commit acdf64e1f7
+1 -7
View File
@@ -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();
}