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/UFormImportSources.pas

    r74 r85  
    5151    procedure ListView1Data(Sender: TObject; Item: TListItem);
    5252    procedure ListView1DblClick(Sender: TObject);
     53    procedure ListView1KeyPress(Sender: TObject; var Key: char);
    5354    procedure ListView1Resize(Sender: TObject);
    5455    procedure ListView1SelectItem(Sender: TObject; Item: TListItem;
     
    104105begin
    105106  AModify.Execute;
     107end;
     108
     109procedure TFormImportSources.ListView1KeyPress(Sender: TObject; var Key: char);
     110begin
     111  if Key = #27 then Close;
    106112end;
    107113
Note: See TracChangeset for help on using the changeset viewer.