Recent

Author Topic: [SOLVED] "Backspace" and "Delete" keys are not working properly under Linux  (Read 8672 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

  • Sr. Member
  • ****
  • Posts: 370
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 2.0.8 FPC 3.0.4 Linux Mint Mate 19.3
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite 3.32.3 - LazReport

Bart

  • Hero Member
  • *****
  • Posts: 5265
    • 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: 5265
    • Bart en Mariska's Webstek

GAN

  • Sr. Member
  • ****
  • Posts: 370
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 2.0.8 FPC 3.0.4 Linux Mint Mate 19.3
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite 3.32.3 - LazReport

Bart

  • Hero Member
  • *****
  • Posts: 5265
    • 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: 5265
    • 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

 

TinyPortal © 2005-2018