mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Do not steal focus from tree when clicking a table, only when creating a new table or whatever. Fixes issue #2289.
This commit is contained in:
@ -2289,11 +2289,13 @@ begin
|
||||
Mainform.UpdateEditorTab;
|
||||
Screen.Cursor := crHourglass;
|
||||
MainForm.SetupSynEditors;
|
||||
// Enable user to start typing immediately
|
||||
// Enable user to start typing immediately when creating a new object
|
||||
if DBObject.Name = '' then begin
|
||||
editName := FindComponent('editName') as TWinControl;
|
||||
if Assigned(editName) and editName.CanFocus then
|
||||
editName.SetFocus;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TDBObjectEditor.DeInit: TModalResult;
|
||||
var
|
||||
|
Reference in New Issue
Block a user