Jump to content

KeyPreview


dkeene

Recommended Posts

Hello all.
I am trying to intercept a keystroke before it is processed in the control on a UniForm. I set Uniform.keypreview to true. I then have code to process the keystrokes in UniFormKeyPress and UniForm.KeyDown. However, the key seems to hit the control (such as TUniEdit) before Keydown is called, and before KeyPress is called. Is this expected? I wanted to block keystrokes before hitting the control under certain conditions.
Thank you
Doug
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...