* * *

Author Topic: [SOLVED] "Backspace" and "Delete" keys are not working properly under Linux  (Read 729 times)

neklar

  • Newbie
  • Posts: 4
In a TEdit, when I press backspace or delete key, the cursor jumps a character to the right.
This is happening only under Linux, no problems under Windows.
Any ideeas?
« Last Edit: February 16, 2017, 10:46:33 pm by neklar »

GAN

  • Jr. Member
  • **
  • Posts: 53
Re: "Backspace" and "Delete" keys are not working properly under Linux
« Reply #1 on: February 15, 2017, 10:57:57 pm »
Please, report the bug. Yes, the code editor on Linux sometimes do crazy things like that.
Lazarus 1.6 FPC 3.0.0 Linux Mint Mate 17.2 x86_64 GTK-2
Zeos 7.1.3 - Sqlite 3.8.2

Foro Lazarus en español http://forum.lazarus.freepascal.org/index.php/board,73.0.html

Bart

  • Hero Member
  • *****
  • Posts: 2598
    • Bart en Mariska's Webstek
Re: "Backspace" and "Delete" keys are not working properly under Linux
« Reply #2 on: February 15, 2017, 11:16:06 pm »
IIRC this was already reported.
Please search the bugtracker before posting it.

Bart

Bart

  • Hero Member
  • *****
  • Posts: 2598
    • Bart en Mariska's Webstek

GAN

  • Jr. Member
  • **
  • Posts: 53
Re: "Backspace" and "Delete" keys are not working properly under Linux
« Reply #4 on: February 16, 2017, 03:17:06 am »
IIRC this was already reported.
Please search the bugtracker before posting it.

Bart

Hi Bart, I'm sorry, I don't know how to search in the bugtracker, I don't find the option to search a bug.

Regards.
Lazarus 1.6 FPC 3.0.0 Linux Mint Mate 17.2 x86_64 GTK-2
Zeos 7.1.3 - Sqlite 3.8.2

Foro Lazarus en español http://forum.lazarus.freepascal.org/index.php/board,73.0.html

Bart

  • Hero Member
  • *****
  • Posts: 2598
    • Bart en Mariska's Webstek
Re: "Backspace" and "Delete" keys are not working properly under Linux
« Reply #5 on: February 16, 2017, 09:30:35 am »
Hi Bart, I'm sorry, I don't know how to search in the bugtracker, I don't find the option to search a bug.

Go to the bugtracker.
Select the appropriate project (Lazarus in this case)
Click on "View Issues"
In "Search" field type a keyword, I typed "backspace".
Click on "Apply filter"

There are lots of fields you can adjust to narrow or broaded your search, most noticeably the "Hide status"  field. This defaults to "Closed", so your search won't show issues that have already been clsed.
Just play with it.

As always, coming up with the right keyword for your search is the difficult part.

Bart

neklar

  • Newbie
  • Posts: 4
Re: "Backspace" and "Delete" keys are not working properly under Linux
« Reply #6 on: February 16, 2017, 07:40:38 pm »
Found it: http://bugs.freepascal.org/view.php?id=30596

Bart

Thank you for your answer.
How do I apply the patch? I never did this before

Thank you again

Bart

  • Hero Member
  • *****
  • Posts: 2598
    • Bart en Mariska's Webstek
Re: "Backspace" and "Delete" keys are not working properly under Linux
« Reply #7 on: February 16, 2017, 10:12:18 pm »
Not sure what the syntax is in Linux.

On Windows it would be:
Code: [Select]
cd \path\to\Lazarus
patch -p0 < test.patch

The patch though is easy, just look at it, open the sourcefiles, make the changes (+ markes a line that is added, - marks a line that is deleted. In essence it just comments 2 lines).
After that rebuild Lazarus.

Bart

neklar

  • Newbie
  • Posts: 4
Re: "Backspace" and "Delete" keys are not working properly under Linux
« Reply #8 on: February 16, 2017, 10:44:41 pm »
Not sure what the syntax is in Linux.

On Windows it would be:
Code: [Select]
cd \path\to\Lazarus
patch -p0 < test.patch

The patch though is easy, just look at it, open the sourcefiles, make the changes (+ markes a line that is added, - marks a line that is deleted. In essence it just comments 2 lines).
After that rebuild Lazarus.

Bart

Got it!
Thank you for your help!

On Linux the files are located at
/usr/lib/lazarus/lcl/interfaces/gtk2/

Now it works fine

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus