mirror of
https://github.com/ppy/osu
synced 2025-02-08 22:27:14 +00:00
Always allow selecting the top-most button using the select binding
This commit is contained in:
parent
6ff44ed2c6
commit
1539fa704b
@ -121,7 +121,11 @@ namespace osu.Game.Overlays
|
||||
switch (e.Action)
|
||||
{
|
||||
case GlobalAction.Select:
|
||||
CurrentDialog?.Buttons.OfType<PopupDialogOkButton>().FirstOrDefault()?.TriggerClick();
|
||||
var clickableButton =
|
||||
CurrentDialog?.Buttons.OfType<PopupDialogOkButton>().FirstOrDefault() ??
|
||||
CurrentDialog?.Buttons.First();
|
||||
|
||||
clickableButton?.TriggerClick();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user