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:
commit
d6625413fa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user