Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to press a button with the enter key

Tags:

delphi

I have simple question. How do you press a button with your enter key?

I have a login screen, where I can just login with a button. But I also want to login when pressing the enter button.

How should I do this?

Thanks in advance!

Jasper

like image 545
J Bom Avatar asked Mar 31 '11 13:03

J Bom


Video Answer


1 Answers

Set the button's Default property to True from Object Inspector.

like image 167
Cosmin Prund Avatar answered Oct 18 '22 01:10

Cosmin Prund