1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 14:02:55 +08:00

Fix OptionsOverlay stealing focus itself.

This commit is contained in:
Dean Herbert 2017-05-11 13:56:21 +09:00
parent 7d8af5f1da
commit df48204403

View File

@ -14,6 +14,7 @@ using osu.Game.Graphics;
using osu.Game.Graphics.Sprites; using osu.Game.Graphics.Sprites;
using osu.Game.Overlays.Options.Sections; using osu.Game.Overlays.Options.Sections;
using osu.Game.Screens.Select; using osu.Game.Screens.Select;
using osu.Framework.Input;
namespace osu.Game.Overlays namespace osu.Game.Overlays
{ {
@ -185,5 +186,11 @@ namespace osu.Game.Overlays
searchTextBox.HoldFocus = false; searchTextBox.HoldFocus = false;
searchTextBox.TriggerFocusLost(); searchTextBox.TriggerFocusLost();
} }
protected override bool OnFocus(InputState state)
{
searchTextBox.TriggerFocus(state);
return false;
}
} }
} }