1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-16 01:03:21 +08:00

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
commit d6625413fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;