I have a Edit TEdit, used for a bar code scanner. In the code, after I scan a bar code, I do a TEdit.SetFocus, to keep the cursor on this field so I can scan another bar code label. This works fine with one exception. I can't tell it I'm done. I would like to be able to hit the 'F4' key to say I'm done with scanning, let me move to the next field. The only problem is that I'm using the 'OnKeyPress' event. It doesn't recognize function keys.
How do I get the OnKeyPress to accept function keys?