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

    r51 r85  
    4040    procedure ListViewAcronymsData(Sender: TObject; Item: TListItem);
    4141    procedure ListViewAcronymsDblClick(Sender: TObject);
     42    procedure ListViewAcronymsKeyPress(Sender: TObject; var Key: char);
    4243    procedure ListViewAcronymsResize(Sender: TObject);
    4344    procedure ListViewAcronymsSelectItem(Sender: TObject; Item: TListItem;
     
    8788begin
    8889  AModify.Execute;
     90end;
     91
     92procedure TFormAcronyms.ListViewAcronymsKeyPress(Sender: TObject; var Key: char
     93  );
     94begin
     95  if Key = #27 then Close;
    8996end;
    9097
Note: See TracChangeset for help on using the changeset viewer.