mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +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;
|
||||
begin
|
||||
Result := not FStopping;
|
||||
if Result then
|
||||
if Result then begin
|
||||
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;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user