Fix toggle mute (and volume meter traversal) handling repeat key presses

Closes #20953.
This commit is contained in:
Dean Herbert 2022-10-27 11:40:59 +09:00
parent 1b2ee44131
commit 14c7cbde38

View File

@ -23,10 +23,14 @@ namespace osu.Game.Overlays.Volume
{
case GlobalAction.DecreaseVolume:
case GlobalAction.IncreaseVolume:
ActionRequested?.Invoke(e.Action);
return true;
case GlobalAction.ToggleMute:
case GlobalAction.NextVolumeMeter:
case GlobalAction.PreviousVolumeMeter:
ActionRequested?.Invoke(e.Action);
if (!e.Repeat)
ActionRequested?.Invoke(e.Action);
return true;
}