1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 20:58:34 +01:00

fixed multiline text inputs not working on FNA

This commit is contained in:
Ell 2022-06-24 14:10:24 +02:00
parent 5d7d238630
commit 5fcdda80dc

View file

@ -111,6 +111,12 @@ namespace MLEM.Ui.Elements {
set => this.textInput.Multiline = value;
}
#if FNA
/// <inheritdoc />
// 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
/// <summary>
/// The text that displays in this text field if <see cref="Text"/> is empty
/// </summary>