[...]
procedure TForm_Main.edit_nrKeyPress(Sender: TObject; var Key: char);
begin
if(key=#13)or(key=#32)then
begin
Action_.Execute;
edit_nr.Clear;
end;
end;
[...]
This is part of my code, the #13 charachter (enter) is working, but the #32 charachter (space) is not working, even if i change it like this:
if(key=#32)then
Any suggestions? Is this a bug, or what.
I need to have a respons when ENTER or SPACE are pressed.
Bye