Make lobby chat field have keyboard focus by default.
This commit is contained in:
@@ -483,6 +483,8 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
var chatLabel = lobby.Get<LabelWidget>("LABEL_CHATTYPE");
|
var chatLabel = lobby.Get<LabelWidget>("LABEL_CHATTYPE");
|
||||||
var chatTextField = lobby.Get<TextFieldWidget>("CHAT_TEXTFIELD");
|
var chatTextField = lobby.Get<TextFieldWidget>("CHAT_TEXTFIELD");
|
||||||
|
|
||||||
|
chatTextField.TakeKeyboardFocus();
|
||||||
|
|
||||||
chatTextField.OnEnterKey = () =>
|
chatTextField.OnEnterKey = () =>
|
||||||
{
|
{
|
||||||
if (chatTextField.Text.Length == 0)
|
if (chatTextField.Text.Length == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user