mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 07:27:43 +01:00
ide: CodeCreationDialog: check for enabled when changing radio group index by key
git-svn-id: trunk@51860 -
This commit is contained in:
parent
3594fefc04
commit
7df15887d1
@ -146,12 +146,12 @@ procedure TCodeCreationDialog.FormKeyPress(Sender: TObject;
|
|||||||
begin
|
begin
|
||||||
case Key of
|
case Key of
|
||||||
#27: ModalResult := mrCancel;
|
#27: ModalResult := mrCancel;
|
||||||
'p': SectionRadioGroup.ItemIndex := Ord(icsPrivate);
|
'p': if SectionRadioGroup.Enabled then SectionRadioGroup.ItemIndex := Ord(icsPrivate);
|
||||||
'r': SectionRadioGroup.ItemIndex := Ord(icsProtected);
|
'r': if SectionRadioGroup.Enabled then SectionRadioGroup.ItemIndex := Ord(icsProtected);
|
||||||
'u': SectionRadioGroup.ItemIndex := Ord(icsPublic);
|
'u': if SectionRadioGroup.Enabled then SectionRadioGroup.ItemIndex := Ord(icsPublic);
|
||||||
's': SectionRadioGroup.ItemIndex := Ord(icsPublished);
|
's': if SectionRadioGroup.Enabled then SectionRadioGroup.ItemIndex := Ord(icsPublished);
|
||||||
'l': LocationRadioGroup.ItemIndex := Ord(cclLocal);
|
'l': if LocationRadioGroup.Enabled then LocationRadioGroup.ItemIndex := Ord(cclLocal);
|
||||||
'c': LocationRadioGroup.ItemIndex := Ord(cclClass);
|
'c': if LocationRadioGroup.Enabled then LocationRadioGroup.ItemIndex := Ord(cclClass);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user