fix edit text box

This commit is contained in:
Ruan Lucas
2023-10-07 11:06:23 -04:00
parent a9dd9adc22
commit 56c3080b10

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)
{
@@ -1302,7 +1302,7 @@ namespace FlaxEngine.GUI
MoveRight(shiftDown, ctrDown);
return true;
case KeyboardKeys.ArrowLeft:
MoveLeft(shiftDown, ctrDown);
MoveLeft(shiftDown, ctrDown);
return true;
case KeyboardKeys.ArrowUp:
MoveUp(shiftDown, ctrDown);