9900kf
9900kf

Reputation: 87

Delphi onkeydown event response

I want to get response from Form while pressed and holding a key,how do I do that ? I wrote code for 'OnKeyDown' but that works only once per press/

Upvotes: 1

Views: 1817

Answers (1)

JamesT
JamesT

Reputation: 3028

You want OnKeyPress, not OnKeyDown.

KeyPress will continue to trigger as long as you hold the key down.

Upvotes: 2

Related Questions