Clear selection when a text field's contents is changed programatically.
This commit is contained in:
@@ -32,6 +32,7 @@ namespace OpenRA.Mods.Common.Widgets
|
|||||||
{
|
{
|
||||||
text = RemoveInvalidCharacters(value ?? "");
|
text = RemoveInvalidCharacters(value ?? "");
|
||||||
CursorPosition = CursorPosition.Clamp(0, text.Length);
|
CursorPosition = CursorPosition.Clamp(0, text.Length);
|
||||||
|
ClearSelection();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user