anchor.diff:        OpenMode);
       MsgStatusFileOpened(AFileName, AFileName2);
   
  +    DoFocusResult;
       if bEnableEventOpened then
       begin
         SetLength(Params, 0);
         DoPyEvent(Result.Ed1, cEventOnOpen, Params);
       end;
   
  -    Result.SetFocus;
       exit;
     end;
   
  
positive.code:   end;
    F:= D.TabObject as TEditorFrame;
  
    //tick:= GetTickCount64;
    F.DoFileOpen(AFileName, AFileName2,
      bEnableHistory,
      bAllowLexerDetect,
  
negative.code:     bEnableLoadUndo,
      OpenMode);
    Result:= F;
  
    UpdateStatusbar;
    MsgStatusFileOpened(AFileName, AFileName2);
  
    //set TabIndex before on_open firing, to fix CudaText #3314
    if Assigned(APages) then
      APages.Tabs.TabIndex:= APages.Tabs.FindTabByObject(F);
  
    SetLength(Params, 0);
  
  