diff --git a/Import/GacUI.cpp b/Import/GacUI.cpp index 79839695..830b5e8a 100644 --- a/Import/GacUI.cpp +++ b/Import/GacUI.cpp @@ -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)