Merge pull request #17617 from ajiiisai/proper-toggable-shortcuts-for-overlays

Make overlay shortcuts able to be toggled instead of repeatable
This commit is contained in:
Dean Herbert
2022-04-04 13:46:42 +09:00
committed by GitHub

View File

@ -190,7 +190,7 @@ namespace osu.Game.Overlays.Toolbar
public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
{
if (e.Action == Hotkey)
if (e.Action == Hotkey && !e.Repeat)
{
TriggerClick();
return true;