Clear selection when a text field's contents is changed programatically.

This commit is contained in:
Paul Chote
2018-08-04 15:11:13 +01:00
committed by reaperrr
parent d6737ccfab
commit a0dcd9e106

View File

@@ -32,6 +32,7 @@ namespace OpenRA.Mods.Common.Widgets
{
text = RemoveInvalidCharacters(value ?? "");
CursorPosition = CursorPosition.Clamp(0, text.Length);
ClearSelection();
}
}