Key handling in the grids
Original Reporter info from Mantis: JoshyFun @joshyfun
-
Reporter name: José Mejuto
Original Reporter info from Mantis: JoshyFun @joshyfun
- Reporter name: José Mejuto
Description:
Keys handled by Grid and DBGrid at least do not produce a KeyPress event, so a key like Enter can not be handled by a simple keypress.
Steps to reproduce:
Put a stringgrid in a form, handle KeyPress to detect Enter key in order to load some information and enter in edit mode manually. The key never raises the "KeyPress" event.
Additional information:
In attached patch key information is not destroyed but marked to be not handled further via the "CanGridAcceptKey" function.
In DBGrid also fixed a SIGSEGV pressing page down when no recordset is associated.
Mantis conversion info:
- Mantis ID: 15917
- OS: Windows
- OS Build: XP SP2
- Build: 23660
- Platform: i386
- Version: 0.9.29 (SVN)
- Fixed in version: 1.2.0
- Fixed in revision: 42992 (#60927657)
- Target version: 1.2.0
- LazTarget: 1.2