Refactored input system

This commit is contained in:
ShadowCommander
2019-08-04 16:03:51 -07:00
parent b996466b3d
commit 7422d9148a
8 changed files with 70 additions and 43 deletions

View File

@@ -121,9 +121,14 @@ namespace Content.Client.Chat
AddChild(outerVBox);
}
protected override void MouseDown(GUIMouseButtonEventArgs e)
protected override void KeyBindDown(GUIBoundKeyEventArgs args)
{
base.MouseDown(e);
base.KeyBindDown(args);
if (!args.CanFocus)
{
return;
}
Input.GrabKeyboardFocus();
}