mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Only grab focus if nothing else has it
This commit is contained in:
@ -68,7 +68,13 @@ namespace osu.Game.Screens.Select
|
||||
protected override void Update()
|
||||
{
|
||||
if (GrabFocus && !HasFocus && IsVisible)
|
||||
{
|
||||
var inputManager = Parent;
|
||||
while (inputManager != null && !(inputManager is InputManager))
|
||||
inputManager = inputManager.Parent;
|
||||
if (inputManager != null && (inputManager as InputManager)?.FocusedDrawable == null)
|
||||
TriggerFocus();
|
||||
}
|
||||
base.Update();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user