Changeset 8 for os/trunk/System
- Timestamp:
- Jun 2, 2013, 10:46:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
os/trunk/System/LDOS.Kernel.pas
r7 r8 73 73 function ReadKey: Char; 74 74 function KeyPressed: Boolean; 75 procedure HandleKeyPress(Key: Word); 75 76 end; 76 77 … … 303 304 { TKeyboard } 304 305 306 procedure TKeyboard.HandleKeyPress(Key: Word); 307 var 308 Form: TForm; 309 NewMessage: TMessageKeyPress; 310 begin 311 NewMessage := TMessageKeyPress.Create; 312 NewMessage.KeyCode := Key; 313 try 314 for Form in Kernel.Screen.Forms do 315 if Form.HandleMessage(NewMessage) then begin 316 Break; 317 end; 318 finally 319 NewMessage.Destroy; 320 end; 321 end; 322 305 323 function TKeyboard.KeyPressed: Boolean; 306 324 begin
Note:
See TracChangeset
for help on using the changeset viewer.