LCL-GTK: Shift + Numpad keystrokes sometime send VK_Num instead of VK_End (don't work in Code Editor)
Original Reporter info from Mantis: lifepower
-
Reporter name: lifepower
Original Reporter info from Mantis: lifepower
- Reporter name: lifepower
Description:
On Linux, when choosing option to use numpad keys similarly as Windows (for instance, in Gnome with gnome-tweak-tool), Lazarus seems to completely ignore any numpad keystrokes when Shift is also pressed. Note that in every other Linux application, this combination works just fine - tested in gedit, web browser, nautilus, thunar, thunderbird, libreoffice, etc.
For example, put cursor to the beginning of some line of code and try to press Shift + End (on Numpad) - this should select the text from current position to the end of the line, however, it does nothing in Lazarus. Similarly, Shift + Up, Down, Left, Right (on Numpad) does nothing.
If you navigate to IDE Options - Editor - Key Mappings - Text Selection Commands, you see that "Shift + End" is properly assigned. In fact, if you try to reassign it by "grabbing" the key and pressing "End" on Numpad - it gets detected as "Shift + End", but still doesn't work in editor itself.
I've made a quick test, placed TSynEdit on the form and it seems that the same issue is present in TSynEdit itself: Shift + Numpad is simply ignored. Probably the issue is somewhere in its code.
Steps to reproduce:
-
On Linux, enable compatibility option for numpad keys to work as in Windows (so you can navigate with them as with arrows, home, end, etc.) On Gnome, this can be done with Gnome Tweak Tool: Typing - Miscellaneous compatibility options - Shift with numeric keypad keys...
-
Open Lazarus IDE, latest version from the trunk.
-
Select some line of code at the beginning.
-
Press Shift + End.
-
Expected: the whole line is selected. Actual: nothing happens.
Mantis conversion info:
- Mantis ID: 29175
- OS: Ubuntu
- OS Build: 15.10
- Build: trunk rev 50749
- Platform: Linux x64
- Version: 1.5 (SVN)