1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 19:27:26 +08:00

SearchTextBox: Don't handle Key.{Enter,Left,Right}

This commit is contained in:
Drew DeVault 2017-01-30 10:16:55 -05:00
parent 9d07238a7d
commit 09680196c9

View File

@ -1,10 +1,12 @@
using System;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Input;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Primitives;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.UserInterface;
using osu.Framework.Input;
using osu.Game.Graphics;
namespace osu.Game.Screens.Select
@ -63,5 +65,12 @@ namespace osu.Game.Screens.Select
base.LoadComplete();
OnFocus(null);
}
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
{
if (args.Key == Key.Left || args.Key == Key.Right || args.Key == Key.Enter)
return false;
return base.OnKeyDown(state, args);
}
}
}