From 4a166c1949ae81d9edd26a2484ccfe281d3cb48e Mon Sep 17 00:00:00 2001 From: DrabWeb Date: Sat, 20 May 2017 20:48:36 -0300 Subject: [PATCH] Make ChannelSelectionOverlay a FocusedOverlayContainer --- osu.Game/Overlays/Chat/ChannelSelectionOverlay.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/osu.Game/Overlays/Chat/ChannelSelectionOverlay.cs b/osu.Game/Overlays/Chat/ChannelSelectionOverlay.cs index 4d8cc59ad0..9746ae2ae8 100644 --- a/osu.Game/Overlays/Chat/ChannelSelectionOverlay.cs +++ b/osu.Game/Overlays/Chat/ChannelSelectionOverlay.cs @@ -19,7 +19,7 @@ using osu.Game.Graphics.UserInterface; namespace osu.Game.Overlays.Chat { - public class ChannelSelectionOverlay : OverlayContainer + public class ChannelSelectionOverlay : FocusedOverlayContainer { public static readonly float WIDTH_PADDING = 170; @@ -134,6 +134,8 @@ namespace osu.Game.Overlays.Chat protected override void PopIn() { + base.PopIn(); + search.HoldFocus = true; Schedule(() => search.TriggerFocus()); @@ -143,6 +145,8 @@ namespace osu.Game.Overlays.Chat protected override void PopOut() { + base.PopOut(); + search.HoldFocus = false; FadeOut(500, EasingTypes.InQuint);