From cb6a4cc3254125f7f6603c871fa82b247ab70dc0 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Thu, 3 Apr 2025 13:58:16 -0500 Subject: [PATCH] Fix text box shift not working when selection start is at the text length. --- Source/Engine/UI/GUI/Common/TextBoxBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/UI/GUI/Common/TextBoxBase.cs b/Source/Engine/UI/GUI/Common/TextBoxBase.cs index 55f810211..211ec68b7 100644 --- a/Source/Engine/UI/GUI/Common/TextBoxBase.cs +++ b/Source/Engine/UI/GUI/Common/TextBoxBase.cs @@ -742,7 +742,7 @@ namespace FlaxEngine.GUI { SetSelection(SelectionRight); } - else if (SelectionRight < TextLength) + else if (SelectionRight < TextLength || (_selectionEnd < _selectionStart && _selectionStart == TextLength)) { int position; if (ctrl)