1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 07:32:58 +08:00

Merge pull request #10769 from peppy/fix-mod-select-keys-handle-control

Stop mod select overlay hotkeys handling input when control is pressed
This commit is contained in:
Dan Balasescu 2020-11-10 18:37:14 +09:00 committed by GitHub
commit d873229120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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