1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 14:12:54 +08:00

Improve arrow key redirection at song select.

This commit is contained in:
Dean Herbert 2017-02-08 15:30:20 +09:00
parent 937c065af7
commit 417b0817a9
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -74,8 +74,19 @@ namespace osu.Game.Screens.Select
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args) protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
{ {
if (args.Key == Key.Left || args.Key == Key.Right || args.Key == Key.Enter) if (!state.Keyboard.ControlPressed && !state.Keyboard.ShiftPressed)
return false; {
switch (args.Key)
{
case Key.Left:
case Key.Right:
case Key.Up:
case Key.Down:
case Key.Enter:
return false;
}
}
return base.OnKeyDown(state, args); return base.OnKeyDown(state, args);
} }
} }