https://winscp.net/tracker/1718 Source commit: f868ef72da376eef04e86d25a7bd047f94e19792
@@ -1807,6 +1807,7 @@ void __fastcall TLoginDialog::RenameSessionActionExecute(TObject * /*Sender*/)
{
// would be more appropriate in SessionTreeEditing, but it does not work there
ResetSitesIncrementalSearch();
+ SessionTree->SetFocus();
SessionTree->Selected->EditText();
}