I need to intercept the TAB keyboard stroke on TEdits and suppress them programmatically. In certain cases I don't want the focus to change to the next control.
I tried to handle KeyPress, KeyDown both on TEdit level and on TForm with KeyPreview=true. I've peeked advices from:
- Intercept TAB key in RichEdit
- How do I make the TAB key close a TComboBox without losing the current position?
But it didn't work. The events are fired for, let's say, the Enter key BUT not for the TAB key.
I'm using Delphi 7. Thanks for your help.
TAB
key is intended to be the key which moves focus to the next control, thus it has a special handling. – Alternator