Ignore:
Timestamp:
Jun 12, 2018, 11:04:18 AM (6 years ago)
Author:
chronos
Message:
  • Fixed: OnKeyUp event is not fired if FormClient is docked onto FormMain. Pass this event from FormMain.
  • Modified: Hide Game mode in New game dialog if DEBUG mode is not active. The feature is not finished yet.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r220 r221  
    6969    procedure AToolBarBigIconsExecute(Sender: TObject);
    7070    procedure AToolBarVisibleExecute(Sender: TObject);
     71    procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
    7172    procedure FormShow(Sender: TObject);
    7273    procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
     
    172173end;
    173174
     175procedure TFormMain.FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState
     176  );
     177begin
     178  // Pass KeyUp event to docked form
     179  FormClient.FormKeyUp(Sender, Key, Shift);
     180end;
     181
    174182procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction);
    175183begin
Note: See TracChangeset for help on using the changeset viewer.