I noticed recently that when I try to delete a character in a TEdit box, the "Backspace" and "Delete" keys are not acting the right way. More specifically, after deleting the required character, the cursor was jumping to the right. Only on Linux, no problems on Windows
After a lot of search and with support from Lazarus/FPC community, here is the solution:
1) Open Dolphin as root
2) Edit the file /usr/lib/lazarus/lcl/interfaces/gtk2/gtk2callback.inc and modify the line 604 like this:
// if (gtk_major_version = 2) and (gtk_minor_version < 17) then
3) Edit the file /usr/lib/lazarus/lcl/interfaces/gtk2/gtk2widgetset.inc and modify the line 465 like this:
// if (gtk_major_version = 2) and (gtk_minor_version < 17) then
Basically, you have to "comment" those lines so that they are not executed anymore
4) Rebuild Lazarus (open Lazarus, go to "Tools" and select "Build Lazarus")
Done!
Here is the original bug report on Lazarus official page: