Lazarus

Free Pascal => Unix => Topic started by: neklar on February 15, 2017, 10:37:39 pm

Title: [SOLVED] "Backspace" and "Delete" keys are not working properly under Linux
Post by: neklar on February 15, 2017, 10:37:39 pm
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?
Title: Re: "Backspace" and "Delete" keys are not working properly under Linux
Post by: GAN on February 15, 2017, 10:57:57 pm
Please, report the bug. Yes, the code editor on Linux sometimes do crazy things like that.
Title: Re: "Backspace" and "Delete" keys are not working properly under Linux
Post by: Bart on February 15, 2017, 11:16:06 pm
IIRC this was already reported.
Please search the bugtracker before posting it.

Bart
Title: Re: "Backspace" and "Delete" keys are not working properly under Linux
Post by: Bart on February 15, 2017, 11:17:48 pm
Found it: http://bugs.freepascal.org/view.php?id=30596 (http://bugs.freepascal.org/view.php?id=30596)

Bart
Title: Re: "Backspace" and "Delete" keys are not working properly under Linux
Post by: GAN 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.
Title: Re: "Backspace" and "Delete" keys are not working properly under Linux
Post by: Bart 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
Title: Re: "Backspace" and "Delete" keys are not working properly under Linux
Post by: neklar on February 16, 2017, 07:40:38 pm
Found it: http://bugs.freepascal.org/view.php?id=30596 (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
Title: Re: "Backspace" and "Delete" keys are not working properly under Linux
Post by: Bart 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
Title: Re: "Backspace" and "Delete" keys are not working properly under Linux
Post by: neklar 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