mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 18:12:05 +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;
|
Mainform.UpdateEditorTab;
|
||||||
Screen.Cursor := crHourglass;
|
Screen.Cursor := crHourglass;
|
||||||
MainForm.SetupSynEditors;
|
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;
|
editName := FindComponent('editName') as TWinControl;
|
||||||
if Assigned(editName) and editName.CanFocus then
|
if Assigned(editName) and editName.CanFocus then
|
||||||
editName.SetFocus;
|
editName.SetFocus;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
function TDBObjectEditor.DeInit: TModalResult;
|
function TDBObjectEditor.DeInit: TModalResult;
|
||||||
var
|
var
|
||||||
|
Reference in New Issue
Block a user