Update focus handling in line with framework changes

This commit is contained in:
Dean Herbert
2017-05-28 20:08:46 +09:00
parent bdeaf2dbb4
commit d749fc516d
8 changed files with 42 additions and 18 deletions

View File

@ -134,12 +134,13 @@ namespace osu.Game.Overlays
FadeTo(0, TRANSITION_LENGTH / 2);
searchTextBox.HoldFocus = false;
searchTextBox.TriggerFocusLost();
if (searchTextBox.HasFocus)
InputManager.ChangeFocus(null);
}
protected override bool OnFocus(InputState state)
{
searchTextBox.TriggerFocus(state);
InputManager.ChangeFocus(searchTextBox);
return false;
}