Changeset 257 for trunk/LocalPlayer


Ignore:
Timestamp:
Jun 10, 2020, 9:47:11 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Allow to close windows by Escape key.
Location:
trunk/LocalPlayer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Enhance.pas

    r188 r257  
    366366  Shift: TShiftState);
    367367begin
    368   if Key = VK_ESCAPE then
    369     Close
    370   else if Key = VK_F1 then
     368  if Key = VK_F1 then
    371369    HelpDlg.ShowNewContent(FWindowMode or wmPersistent, hkText,
    372370      HelpDlg.TextIndex('MACRO'))
  • trunk/LocalPlayer/TechTree.pas

    r220 r257  
    2323      Shift: TShiftState; X, Y: Integer);
    2424    procedure FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
    25     procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
    2625    procedure CloseBtnClick(Sender: TObject);
    2726  private
     
    228227end;
    229228
    230 procedure TTechTreeDlg.FormKeyDown(Sender: TObject; var Key: Word;
    231   Shift: TShiftState);
    232 begin
    233   if Key = VK_ESCAPE then
    234     Close;
    235 end;
    236 
    237229procedure TTechTreeDlg.CloseBtnClick(Sender: TObject);
    238230begin
Note: See TracChangeset for help on using the changeset viewer.