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

    r51 r85  
    3434    procedure ListView1Data(Sender: TObject; Item: TListItem);
    3535    procedure ListView1DblClick(Sender: TObject);
     36    procedure ListView1KeyPress(Sender: TObject; var Key: char);
    3637    procedure ListView1SelectItem(Sender: TObject; Item: TListItem;
    3738      Selected: Boolean);
     
    7475begin
    7576  AModify.Execute;
     77end;
     78
     79procedure TFormImportFormats.ListView1KeyPress(Sender: TObject; var Key: char);
     80begin
     81  if Key = #27 then Close;
    7682end;
    7783
Note: See TracChangeset for help on using the changeset viewer.