I tried these workarounds:None of them worked.
- Hooking an additional OnKeyDown event to cancel the key.
- Setting TForm.KeyPreview to true.
Am I doing something wrong or is there a bug in LCL/Windows OS?
Use OnEditingDone for that (it is fired when user presses Enter or when user leaves the control).No.
Bart
Try using OnKeyUp, because only then you can evaluate correctly. (This is a very common error)