IdeIntf: Cleanup.

This commit is contained in:
Juha 2024-03-08 23:06:32 +02:00
parent a7b6815a8c
commit 0aa083ac3f

View File

@ -2295,11 +2295,9 @@ begin
if FCurrentEdit<>nil then if FCurrentEdit<>nil then
begin begin
SetActiveControl(FCurrentEdit); SetActiveControl(FCurrentEdit);
if (FCurrentEdit is TCustomEdit) then begin if (FCurrentEdit is TCustomEdit) then
DebugLn(['SetItemIndexAndFocus: Selecting All.']);
TCustomEdit(FCurrentEdit).SelectAll TCustomEdit(FCurrentEdit).SelectAll
{$IFnDEF UseOINormalCheckBox} {$IFnDEF UseOINormalCheckBox}
end
else if (FCurrentEdit is TCheckBoxThemed) and WasValueClick then else if (FCurrentEdit is TCheckBoxThemed) and WasValueClick then
TCheckBoxThemed(FCurrentEdit).Checked:=not TCheckBoxThemed(FCurrentEdit).Checked; TCheckBoxThemed(FCurrentEdit).Checked:=not TCheckBoxThemed(FCurrentEdit).Checked;
{$ELSE} {$ELSE}