[Patch] GTK2: TCustomSpinEdit ignores Enter and Escape keys
Original Reporter info from Mantis: biloky @biloky
-
Reporter name: Joeny Ang
Original Reporter info from Mantis: biloky @biloky
- Reporter name: Joeny Ang
Description:
When a form contains OK and Cancel buttons with Default and Cancel properties set, pressing Enter or Escape will not close the form if a TCustomSpinEdit is focused.
This also fixes onEditingDone() firing twice when the Enter key is pressed and the form closes.
Steps to reproduce:
- Run the test project
- On the main form, select a control and press Enter, onEditingDone() will be triggered once (correct behavior)
- Show one of the forms, press Enter while focus is on Edit1, onEditingDone() will be triggered twice, form will close
- Show the form again and switch focus to SpinEdit1, pressing Enter will trigger onEditingDone() once but form will not close, pressing Escape does nothing
Mantis conversion info:
- Mantis ID: 38015
- Build: r64032
- Version: 2.1 (SVN)
- Fixed in revision: r64095 (#c69bc5fd)
- Monitored by: » AntonK (Anton Kavalenka)