From df4820440376e89f619752581d555814b3888767 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 11 May 2017 13:56:21 +0900 Subject: [PATCH] Fix OptionsOverlay stealing focus itself. --- osu.Game/Overlays/OptionsOverlay.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/osu.Game/Overlays/OptionsOverlay.cs b/osu.Game/Overlays/OptionsOverlay.cs index 677c3f7c40..1176e91a36 100644 --- a/osu.Game/Overlays/OptionsOverlay.cs +++ b/osu.Game/Overlays/OptionsOverlay.cs @@ -14,6 +14,7 @@ using osu.Game.Graphics; using osu.Game.Graphics.Sprites; using osu.Game.Overlays.Options.Sections; using osu.Game.Screens.Select; +using osu.Framework.Input; namespace osu.Game.Overlays { @@ -185,5 +186,11 @@ namespace osu.Game.Overlays searchTextBox.HoldFocus = false; searchTextBox.TriggerFocusLost(); } + + protected override bool OnFocus(InputState state) + { + searchTextBox.TriggerFocus(state); + return false; + } } }