Merge branch 'fix_edit_text_box' of https://github.com/RuanLucasGD/FlaxEngine into RuanLucasGD-fix_edit_text_box

This commit is contained in:
Wojtek Figat
2023-10-08 13:34:08 +02:00

View File

@@ -769,13 +769,13 @@ namespace FlaxEngine.GUI
{
SetSelection(SelectionLeft);
}
else if (SelectionLeft > 0)
else if (SelectionLeft >= 0)
{
int position;
if (ctrl)
position = FindPrevWordBegin();
else
position = _selectionEnd - 1;
position = Mathf.Max(_selectionEnd - 1, 0);
if (shift)
{