Changeset 624 for trunk/LocalPlayer


Ignore:
Timestamp:
Sep 16, 2024, 8:28:44 PM (3 months ago)
Author:
chronos
Message:
  • Fixed: Do not process keyboard input during unit move on Linux.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Term.pas

    r622 r624  
    334334    LastResizeHeight: Integer;
    335335    LastWindowState: TWindowState;
     336    KeyboardDisabled: Boolean;
    336337    // Forms
    337338    FWondersDlg: TWondersDlg;
     
    20992100        IconKind := mikAge;
    21002101        IconIndex := Age;
    2101         { if age=0 then } Kind := mkOk
    2102         { else begin Kind:=mkOkHelp; HelpKind:=hkAdv; HelpNo:=AgePreq[age]; end };
     2102        { if age = 0 then } Kind := mkOk
     2103        { else begin Kind := mkOkHelp; HelpKind := hkAdv; HelpNo := AgePreq[age]; end; };
    21032104        CenterTo := NewAgeCenterTo;
    21042105        OpenSound := 'AGE_' + Char(48 + Age);
     
    66046605      // TODO: Force animation under UNIX. Causes also to process keyboard events
    66056606      // which can lead to unexpected errors.
    6606       Application.ProcessMessages;
     6607      KeyboardDisabled := True;
     6608      try
     6609        Application.ProcessMessages;
     6610      finally
     6611        KeyboardDisabled := False;
     6612      end;
    66076613      {$ENDIF}
    66086614
     
    70957101  ShortCut: TShortCut;
    70967102begin
     7103  if KeyboardDisabled then Exit;
     7104
    70977105  ShortCut := KeyToShortCut(Key, Shift);
    70987106
     
    81718179  Shift: TShiftState);
    81728180begin
     8181  if KeyboardDisabled then Exit;
     8182
    81738183  if Idle and (Key = VK_APPS) then
    81748184  begin
Note: See TracChangeset for help on using the changeset viewer.