[Lazarus] Text selection with numeric keypad on Linux

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Dec 20 16:30:28 CET 2012


Bernd Mueller <mueller.b at gmx.net> hat am 20. Dezember 2012 um 16:01 geschrieben:
> Mattias Gaertner wrote:
> > Hans-Peter Diettrich <DrDiettrich1 at aol.com> hat am 20. Dezember 2012 um
> > 15:02
> > geschrieben:
> >> Bernd Mueller schrieb:
> >>> Hello,
> >>>
> >>> on Windows the text selection is possible via the numeric keypad in
> >>> conjunction with the Shift key. For example Shift-End selects the text
> >>> from the current cursor position to the end of the line.
> >>>
> >>> But this does not work on Linux (Ubuntu 8x, 10x in my case). The Lazarus
> >>> editor seems to ignore the key combination.
> >> This may be a Linux problem. Traditionally the Shift key inverts NumLock
> >> for the numeric keypad. Not every Linux offers an option "Windows
> >> compatible Shift key behaviour".
> >>
> >> What happens in any other editor, when you press Shift-End etc.?
> >
> > The standard Text Editor 'gedit' inserts a '1', same as Lazarus.
>
> I have have "Shift with numeric keypad keys works as in MS Windows"
> enabled and gedit selects the whole line, in contrary to Lazarus, on my
> system.

In that case the GTK sends for Shift+Numpad 1 a "Numpad 1" key (without the
Shift).
You can grab that key ("Numpad 1" without Shift) to the "Select Line End" key
mapping of Lazarus. The Shift+Numpad 1 selects til the end.

Mattias




More information about the Lazarus mailing list