- Timestamp:
- Jun 10, 2020, 9:47:11 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Enhance.pas
r188 r257 366 366 Shift: TShiftState); 367 367 begin 368 if Key = VK_ESCAPE then 369 Close 370 else if Key = VK_F1 then 368 if Key = VK_F1 then 371 369 HelpDlg.ShowNewContent(FWindowMode or wmPersistent, hkText, 372 370 HelpDlg.TextIndex('MACRO')) -
trunk/LocalPlayer/TechTree.pas
r220 r257 23 23 Shift: TShiftState; X, Y: Integer); 24 24 procedure FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); 25 procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);26 25 procedure CloseBtnClick(Sender: TObject); 27 26 private … … 228 227 end; 229 228 230 procedure TTechTreeDlg.FormKeyDown(Sender: TObject; var Key: Word;231 Shift: TShiftState);232 begin233 if Key = VK_ESCAPE then234 Close;235 end;236 237 229 procedure TTechTreeDlg.CloseBtnClick(Sender: TObject); 238 230 begin -
trunk/Packages/CevoComponents/DrawDlg.pas
r229 r257 29 29 procedure MouseUp(Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override; 30 30 procedure MouseLeave; override; 31 procedure KeyDown(var Key: Word; Shift: TShiftState); override; 31 32 public 32 33 constructor Create(AOwner: TComponent); override; … … 171 172 end; 172 173 174 procedure TDrawDlg.KeyDown(var Key: Word; Shift: TShiftState); 175 begin 176 if Key = VK_ESCAPE then Close; 177 inherited KeyDown(Key, Shift); 178 end; 179 173 180 procedure TDrawDlg.VisibleChangedHandler(Sender: TObject); 174 181 begin
Note:
See TracChangeset
for help on using the changeset viewer.