I tried these workarounds:Hooking an additional OnKeyDown event to cancel the key.Setting TForm.KeyPreview to true.None of them worked.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).Bart
Try using OnKeyUp, because only then you can evaluate correctly. (This is a very common error)