mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 14:12:54 +08:00
Merge pull request #19400 from peppy/button-select-allow-more
Always allow selecting the top-most button using the select binding
This commit is contained in:
commit
b47f674ddb
@ -121,7 +121,11 @@ namespace osu.Game.Overlays
|
|||||||
switch (e.Action)
|
switch (e.Action)
|
||||||
{
|
{
|
||||||
case GlobalAction.Select:
|
case GlobalAction.Select:
|
||||||
CurrentDialog?.Buttons.OfType<PopupDialogOkButton>().FirstOrDefault()?.TriggerClick();
|
var clickableButton =
|
||||||
|
CurrentDialog?.Buttons.OfType<PopupDialogOkButton>().FirstOrDefault() ??
|
||||||
|
CurrentDialog?.Buttons.First();
|
||||||
|
|
||||||
|
clickableButton?.TriggerClick();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user