From 09680196c937a6ff27edb55d9585edd08bc52313 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 30 Jan 2017 10:16:55 -0500 Subject: [PATCH] SearchTextBox: Don't handle Key.{Enter,Left,Right} --- osu.Game/Screens/Select/SearchTextBox.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/osu.Game/Screens/Select/SearchTextBox.cs b/osu.Game/Screens/Select/SearchTextBox.cs index ae8d9e3fde..2852565bf2 100644 --- a/osu.Game/Screens/Select/SearchTextBox.cs +++ b/osu.Game/Screens/Select/SearchTextBox.cs @@ -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 @@ protected override void LoadComplete() 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); + } } } \ No newline at end of file