Add option to disable selecting text in text box

5dadaf70f9
This commit is contained in:
2022-08-08 13:51:55 +02:00
parent 183e87d147
commit 07b02e6cf3
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -234,7 +234,10 @@ namespace FlaxEngine.GUI
/// <inheritdoc />
public override bool OnMouseDoubleClick(Float2 location, MouseButton button)
{
SelectAll();
if (IsSelectable)
{
SelectAll();
}
return base.OnMouseDoubleClick(location, button);
}