mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 10:02:10 +08:00
Default value editor: Set focus on checked radiobox to ensure the OnExit event can be fired and close the editor
This commit is contained in:
@ -1033,8 +1033,13 @@ end;
|
|||||||
function TColumnDefaultEditorLink.BeginEdit: Boolean; stdcall;
|
function TColumnDefaultEditorLink.BeginEdit: Boolean; stdcall;
|
||||||
begin
|
begin
|
||||||
Result := not FStopping;
|
Result := not FStopping;
|
||||||
if Result then
|
if Result then begin
|
||||||
FPanel.Show;
|
FPanel.Show;
|
||||||
|
if FRadioText.Checked then FRadioText.SetFocus
|
||||||
|
else if FRadioNull.Checked then FRadioNull.SetFocus
|
||||||
|
else if FRadioCurTS.Checked then FRadioCurTS.SetFocus
|
||||||
|
else if FRadioAutoInc.Checked then FRadioAutoInc.SetFocus;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user