Ignore:
Timestamp:
Aug 8, 2016, 12:37:58 PM (8 years ago)
Author:
chronos
Message:
  • Fixed: ESC and ENTER keys handling in some dialogs.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormCategories.pas

    r51 r85  
    3333    procedure FormShow(Sender: TObject);
    3434    procedure ListViewCategoriesData(Sender: TObject; Item: TListItem);
     35    procedure ListViewCategoriesDblClick(Sender: TObject);
     36    procedure ListViewCategoriesKeyPress(Sender: TObject; var Key: char);
    3537    procedure ListViewCategoriesSelectItem(Sender: TObject; Item: TListItem;
    3638      Selected: Boolean);
     
    130132end;
    131133
     134procedure TFormCategories.ListViewCategoriesDblClick(Sender: TObject);
     135begin
     136  AModify.Execute;
     137end;
     138
     139procedure TFormCategories.ListViewCategoriesKeyPress(Sender: TObject;
     140  var Key: char);
     141begin
     142  if Key = #27 then Close;
     143end;
     144
    132145procedure TFormCategories.ListViewCategoriesSelectItem(Sender: TObject; Item: TListItem;
    133146  Selected: Boolean);
Note: See TracChangeset for help on using the changeset viewer.