fix edit text box
This commit is contained in:
@@ -769,13 +769,13 @@ namespace FlaxEngine.GUI
|
|||||||
{
|
{
|
||||||
SetSelection(SelectionLeft);
|
SetSelection(SelectionLeft);
|
||||||
}
|
}
|
||||||
else if (SelectionLeft > 0)
|
else if (SelectionLeft >= 0)
|
||||||
{
|
{
|
||||||
int position;
|
int position;
|
||||||
if (ctrl)
|
if (ctrl)
|
||||||
position = FindPrevWordBegin();
|
position = FindPrevWordBegin();
|
||||||
else
|
else
|
||||||
position = _selectionEnd - 1;
|
position = Mathf.Max(_selectionEnd - 1, 0);
|
||||||
|
|
||||||
if (shift)
|
if (shift)
|
||||||
{
|
{
|
||||||
@@ -1302,7 +1302,7 @@ namespace FlaxEngine.GUI
|
|||||||
MoveRight(shiftDown, ctrDown);
|
MoveRight(shiftDown, ctrDown);
|
||||||
return true;
|
return true;
|
||||||
case KeyboardKeys.ArrowLeft:
|
case KeyboardKeys.ArrowLeft:
|
||||||
MoveLeft(shiftDown, ctrDown);
|
MoveLeft(shiftDown, ctrDown);
|
||||||
return true;
|
return true;
|
||||||
case KeyboardKeys.ArrowUp:
|
case KeyboardKeys.ArrowUp:
|
||||||
MoveUp(shiftDown, ctrDown);
|
MoveUp(shiftDown, ctrDown);
|
||||||
|
|||||||
Reference in New Issue
Block a user