Escape key triggers a disabled cancel button
Original Reporter info from Mantis: dezlov
-
Reporter name: Denis Kozlov
Original Reporter info from Mantis: dezlov
- Reporter name: Denis Kozlov
Description:
Escape key triggers the Click event of a disabled cancel button, which is wrong.
This is also unlike the Return key handling, which first checks if the default button is actually enabled and visible before triggering the Click event.
Also checked with Delphi 2010, both Escape and Return keys do not trigger actions if buttons are disabled or not visible.
Attached patch fixes this issue. Example project attached.