1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

Handle the numpad's Enter in cases where only the normal Enter was handled

This commit is contained in:
MrTheMake 2017-06-15 23:06:28 +02:00
parent 2124ffab5a
commit 06089a74e3
3 changed files with 3 additions and 1 deletions

View File

@ -45,6 +45,7 @@ namespace osu.Game.Graphics.UserInterface
case Key.Up:
case Key.Down:
return false;
case Key.KeypadEnter:
case Key.Enter:
if (!AllowCommit) return false;
break;

View File

@ -78,7 +78,7 @@ namespace osu.Game.Overlays.Dialog
{
if (args.Repeat) return false;
if (args.Key == Key.Enter)
if (args.Key == Key.Enter || args.Key == Key.KeypadEnter)
{
Buttons.OfType<PopupDialogOkButton>().FirstOrDefault()?.TriggerOnClick();
return true;

View File

@ -371,6 +371,7 @@ namespace osu.Game.Screens.Select
switch (args.Key)
{
case Key.KeypadEnter:
case Key.Enter:
raiseSelect();
return true;