1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 23:42:55 +08:00

Forgot returns

This commit is contained in:
DrabWeb 2017-02-27 22:32:30 -04:00
parent 0ce8fff666
commit 94f34b985b

View File

@ -121,9 +121,15 @@ namespace osu.Game.Overlays.Dialog
// press button at number if 1-9 on number row or keypad are pressed
int k = (int)args.Key;
if (k >= (int)Key.Number1 && k <= (int)Key.Number9)
{
pressButtonAtIndex(k - (int)Key.Number1);
return true;
}
else if (k >= (int)Key.Keypad1 && k <= (int)Key.Keypad9)
{
pressButtonAtIndex(k - (int)Key.Keypad1);
return true;
}
return base.OnKeyDown(state, args);
}