Changed default to true.

This commit is contained in:
Chandler Cox
2022-12-08 16:21:10 -06:00
parent 95db33e614
commit 1a3bcc5d27
4 changed files with 1 additions and 4 deletions

View File

@@ -30,7 +30,6 @@ namespace FlaxEditor.CustomEditors.Editors
}
_element = layout.TextBox(isMultiLine);
_element.TextBox.EndEditOnClick = true;
_element.TextBox.EditEnd += () => SetValue(_element.Text);
}

View File

@@ -371,7 +371,6 @@ namespace FlaxEditor.GUI.Input
Parent = this,
Location = new Float2(split, 0),
Size = new Float2(Height, TextBoxSize),
EndEditOnClick = true,
};
_textBox.EditEnd += OnTextBoxEditEnd;
}

View File

@@ -125,7 +125,6 @@ namespace FlaxEditor.GUI.Input
_min = min;
_max = max;
_slideSpeed = sliderSpeed;
EndEditOnClick = true;
}
/// <summary>

View File

@@ -143,7 +143,7 @@ namespace FlaxEngine.GUI
/// Gets or sets a value indicating whether the text box can end edit via left click outside of the control
/// </summary>
[HideInEditor]
public bool EndEditOnClick { get; set; } = false;
public bool EndEditOnClick { get; set; } = true;
/// <summary>
/// Gets or sets a value indicating whether this is a multiline text box control.