Update GacUI.cpp

This commit is contained in:
Zihan Chen
2020-12-01 14:25:56 -08:00
parent de4b0bde44
commit a029b3922f
+1 -1
View File
@@ -15524,7 +15524,6 @@ GuiDocumentCommonInterface
{
if(documentControl->GetVisuallyEnabled())
{
documentControl->SetFocus();
switch(editMode)
{
case ViewOnly:
@@ -15533,6 +15532,7 @@ GuiDocumentCommonInterface
case Selectable:
case Editable:
{
documentControl->SetFocus();
TextPos caret=documentElement->CalculateCaretFromPoint(Point(arguments.x, arguments.y));
TextPos oldCaret=documentElement->GetCaretEnd();
if(caret!=oldCaret)