mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 20:07:29 +08:00
SearchTextBox: Don't handle Key.{Enter,Left,Right}
This commit is contained in:
parent
9d07238a7d
commit
09680196c9
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user