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

    r215 r221  
    416416procedure TFormClient.FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState
    417417  );
    418 begin
    419   if (Key = 27) or (Key = 17) then
     418const
     419  ControlKey = 17;
     420  EscapeKey = 27;
     421begin
     422  if (Key = EscapeKey) or (Key = ControlKey) then
    420423  if Assigned(Core.Game.CurrentPlayer) then begin
    421424    Client.View.SelectedCell := nil;
Note: See TracChangeset for help on using the changeset viewer.