mirror of
https://github.com/ppy/osu
synced 2024-12-16 11:56:31 +00:00
Only grab focus if nothing else has it
This commit is contained in:
parent
144a87a247
commit
8d294a4eca
@ -68,7 +68,13 @@ namespace osu.Game.Screens.Select
|
|||||||
protected override void Update()
|
protected override void Update()
|
||||||
{
|
{
|
||||||
if (GrabFocus && !HasFocus && IsVisible)
|
if (GrabFocus && !HasFocus && IsVisible)
|
||||||
TriggerFocus();
|
{
|
||||||
|
var inputManager = Parent;
|
||||||
|
while (inputManager != null && !(inputManager is InputManager))
|
||||||
|
inputManager = inputManager.Parent;
|
||||||
|
if (inputManager != null && (inputManager as InputManager)?.FocusedDrawable == null)
|
||||||
|
TriggerFocus();
|
||||||
|
}
|
||||||
base.Update();
|
base.Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user