mirror of
https://github.com/osukey/osukey.git
synced 2025-05-31 02:17:34 +09:00
Change ChatTextBox
to not handle up/down arrows
This commit is contained in:
parent
0018408bdb
commit
2f12c7d9e1
@ -14,6 +14,7 @@ using osu.Game.Graphics.UserInterface;
|
|||||||
using osu.Game.Overlays.Chat;
|
using osu.Game.Overlays.Chat;
|
||||||
using osu.Game.Resources.Localisation.Web;
|
using osu.Game.Resources.Localisation.Web;
|
||||||
using osuTK.Graphics;
|
using osuTK.Graphics;
|
||||||
|
using osuTK.Input;
|
||||||
|
|
||||||
namespace osu.Game.Online.Chat
|
namespace osu.Game.Online.Chat
|
||||||
{
|
{
|
||||||
@ -119,6 +120,20 @@ namespace osu.Game.Online.Chat
|
|||||||
|
|
||||||
public class ChatTextBox : FocusedTextBox
|
public class ChatTextBox : FocusedTextBox
|
||||||
{
|
{
|
||||||
|
protected override bool OnKeyDown(KeyDownEvent e)
|
||||||
|
{
|
||||||
|
// Chat text boxes are generally used in places where they retain focus, but shouldn't block interaction with other
|
||||||
|
// elements on the same screen.
|
||||||
|
switch (e.Key)
|
||||||
|
{
|
||||||
|
case Key.Up:
|
||||||
|
case Key.Down:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return base.OnKeyDown(e);
|
||||||
|
}
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user