Changeset 624 for trunk/LocalPlayer
- Timestamp:
- Sep 16, 2024, 8:28:44 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Term.pas
r622 r624 334 334 LastResizeHeight: Integer; 335 335 LastWindowState: TWindowState; 336 KeyboardDisabled: Boolean; 336 337 // Forms 337 338 FWondersDlg: TWondersDlg; … … 2099 2100 IconKind := mikAge; 2100 2101 IconIndex := Age; 2101 { if age =0 then } Kind := mkOk2102 { 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; }; 2103 2104 CenterTo := NewAgeCenterTo; 2104 2105 OpenSound := 'AGE_' + Char(48 + Age); … … 6604 6605 // TODO: Force animation under UNIX. Causes also to process keyboard events 6605 6606 // which can lead to unexpected errors. 6606 Application.ProcessMessages; 6607 KeyboardDisabled := True; 6608 try 6609 Application.ProcessMessages; 6610 finally 6611 KeyboardDisabled := False; 6612 end; 6607 6613 {$ENDIF} 6608 6614 … … 7095 7101 ShortCut: TShortCut; 7096 7102 begin 7103 if KeyboardDisabled then Exit; 7104 7097 7105 ShortCut := KeyToShortCut(Key, Shift); 7098 7106 … … 8171 8179 Shift: TShiftState); 8172 8180 begin 8181 if KeyboardDisabled then Exit; 8182 8173 8183 if Idle and (Key = VK_APPS) then 8174 8184 begin
Note:
See TracChangeset
for help on using the changeset viewer.