1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-29 03:08:45 +08: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:
Dan Balasescu 2022-10-27 12:51:50 +09:00 committed by GitHub
commit 7916b99153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,9 +23,13 @@ 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:
if (!e.Repeat)
ActionRequested?.Invoke(e.Action);
return true;
}