mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Merge pull request #20962 from peppy/fix-toggle-mute-repeat
Fix toggle mute (and volume meter traversal) handling repeat key presses
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user