Some keys do not trigger OnKeyPress on TEdit
Original Reporter info from Mantis: Jesus @jramx
-
Reporter name: Jesus Reyes
Original Reporter info from Mantis: Jesus @jramx
- Reporter name: Jesus Reyes
Description:
Some keys, for example #8 (closed) (backspace) do not trigger OnKeyPress event for TEdit (probably others too) under GTk2, win and gtk1 works fine. This problem affects grids editing particularly dbgrid where field is not flagged as modified and once backspace is used old text is restored from field data.
The problem seems to be at gtkproc.inc:2319
Character := UTF8Copy(im_context_string,1,1);
im_context_string:='';// clear, to avoid sending again
// Character := UnicodeToUTF8(gdk_keyval_to_unicode(AEvent^.KeyVal));
for keys like backspace, im_context_string is empty and further keypress processing is avoided.
see attached sample project.
Mantis conversion info:
- Mantis ID: 13283
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.27 (SVN)
- Fixed in revision: 20256 (#8f6e69d1)
- Target version: 0.9.28