![]() |
Order and save right now!
20% off with the 729824315 dicscount code for Ultimate Pack and any another product for Delphi from Greatis Programming! |
⤷ Get ASCII code of pressed key
Set KeyPreview property of Form to True and use onKeyDown event. This event has Key parameter. It is a ASCII code of key.
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
Label1.Caption:=Chr(Key)+' - '+IntToStr(Key);
end;
-
More for developers