1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-09 07:33:39 +08:00

Kill focus from components when clicking on an empty space in the panel

This commit is contained in:
Salman Ahmed
2024-06-25 07:13:34 +03:00
Unverified
parent 7ddb6cb7e7
commit a277d9df13
@@ -49,7 +49,7 @@ namespace osu.Game.Overlays.Mods
Height = header_height,
Expanded = { BindTarget = Expanded },
},
content = new InputBlockingContainer
content = new FocusGrabbingContainer
{
RelativeSizeAxes = Axes.X,
BorderColour = colourProvider.Dark3,
@@ -159,5 +159,11 @@ namespace osu.Game.Overlays.Mods
base.Update();
scrollContainer.Height = Math.Min(scrollContainer.AvailableContent, DrawHeight - header_height);
}
private partial class FocusGrabbingContainer : InputBlockingContainer
{
public override bool RequestsFocus => true;
public override bool AcceptsFocus => true;
}
}
}