|
Key press processing
Set form's KeyPreview property to True and do something in OnKeyPress event:
procedure TForm1.FormKeyPress(Sender: TObject; var Key: Char);
begin
if Key='a' then Label1.Caption:='OK';
end;
- Related topics
-
Simulate KeyDown event
- For more
-
Delphi Help
- Download source
|