Problems to capture Enter key on Android

Asked

Viewed 626 times

2

I’m having trouble capturing the key Enter in the Android

begin 
if(Key = 13)then 

ShowMessage('Você teclou '+ KeyChar);//Para testar se estava capturando algo

end;

I only get feedback by pressing the delete text key. I also tried to

Uses AndroidApi.KeyCode
if(Key = AKEYCODE_ENTER)

But it didn’t work. I’ve tried so much on KeyDown how much in the KeyUp

  • 1

    At the event KeyDown trial if (Key = VK_RETURN)

  • Being quite honest, I don’t know which of the two measures worked, but I did so and changed in Edit the Returnkey property of Default p/other and was.

1 answer

1


What solves and exactly this, change the property returnekey. After this it gets the values of the physical keyboard.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.