[Lazarus] Key scan codes

shoKwave shokwave at gmx.net
Mon May 29 14:17:04 CEST 2017


Something like:

procedure TForm1.FormKeyPress(Sender: TObject; var Key: char);
begin
   Label1.Caption := '$' + IntToHex(Ord(Key), 2);
end;


Am 28.05.2017 um 23:11 schrieb Larry Dalton via Lazarus:
> I need a function or procedure that will return the scan code for a keypress on both Linux systems and Windows, ie when the 'L' key is pressed it would return '$4C'.
>
> Sent from my iPhone



More information about the Lazarus mailing list