1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00

Stop mod select overlay hotkeys handling input when control is pressed

Closes https://github.com/ppy/osu/issues/10766 in about the best way we
can for now.
This commit is contained in:
Dean Herbert 2020-11-10 17:57:57 +09:00
parent 86026ad98f
commit 28daff1716

View File

@ -85,6 +85,8 @@ namespace osu.Game.Overlays.Mods
protected override bool OnKeyDown(KeyDownEvent e) protected override bool OnKeyDown(KeyDownEvent e)
{ {
if (e.ControlPressed) return false;
if (ToggleKeys != null) if (ToggleKeys != null)
{ {
var index = Array.IndexOf(ToggleKeys, e.Key); var index = Array.IndexOf(ToggleKeys, e.Key);