DBEdit prevents Esc from activating a Cancel button
Original Reporter info from Mantis: teejaydub
-
Reporter name:
Original Reporter info from Mantis: teejaydub
- Reporter name:
Description:
After I manually apply the patch from issue 0021933 to the 1.0 installed source, I still have the same problem outlined there (can't close modal form with Esc) when the focus is in a DBEdit control.
It's caused by this line in TDBEdit.KeyDown (dbedit.inc):
Key := VK_UNKNOWN;
This means "I've handled it", and the author may have intended it to allow Esc to cancel editing in the DBEdit, but NOT cancel the form.
I think Esc should cancel any editing and ALSO cancel, the form, so that line should be removed.
Mantis conversion info:
- Mantis ID: 22916
- Version: 1.0.1 (SVN)
- Fixed in revision: 38836 (#f9149714)