diff --git a/MLEM.Ui/Elements/TextField.cs b/MLEM.Ui/Elements/TextField.cs index 8b97a98..6e67716 100644 --- a/MLEM.Ui/Elements/TextField.cs +++ b/MLEM.Ui/Elements/TextField.cs @@ -111,6 +111,12 @@ namespace MLEM.Ui.Elements { set => this.textInput.Multiline = value; } + #if FNA + /// + // we need to make sure that the enter press doesn't get consumed by our press function so that it still works in TextInput + public override bool CanBePressed => base.CanBePressed && !this.IsSelected; + #endif + /// /// The text that displays in this text field if is empty ///