Changeset 85 for trunk/Forms/UFormAcronym.pas
- Timestamp:
- Aug 8, 2016, 12:37:58 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormAcronym.pas
r33 r85 34 34 procedure ACategoryAddExecute(Sender: TObject); 35 35 procedure ACategoryRemoveExecute(Sender: TObject); 36 procedure EditMeaningKeyPress(Sender: TObject; var Key: char); 36 37 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 37 procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);38 38 procedure FormShow(Sender: TObject); 39 39 procedure ListBox1SelectionChange(Sender: TObject; User: boolean); … … 56 56 57 57 { TFormAcronym } 58 59 procedure TFormAcronym.FormKeyUp(Sender: TObject; var Key: Word;60 Shift: TShiftState);61 begin62 if Key = 13 then ButtonOk.Click;63 if Key = 27 then ButtonCancel.Click;64 end;65 58 66 59 procedure TFormAcronym.FormClose(Sender: TObject; var CloseAction: TCloseAction … … 94 87 UpdateInterface; 95 88 end; 89 end; 90 91 procedure TFormAcronym.EditMeaningKeyPress(Sender: TObject; var Key: char); 92 begin 93 if Ord(Key) = 13 then ButtonOk.Click; 94 if Ord(Key) = 27 then ButtonCancel.Click; 96 95 end; 97 96
Note:
See TracChangeset
for help on using the changeset viewer.