Page 1 of 1

no selections with numpad [Laz issue, cannot solve]

Posted: 05.11.2020 14:12
by basiliscos
There are common hotkeys, like shift + left_arrow, or ctrl + shift + left_arrow etc. They are used everywhere. It is possible to enable that behavior by default for the numpad too. Afaik, it works out of the box in Windows, but for Linux it is done via command:

Code: Select all

setxkbmap -option 'numpad:microsoft' 
It works nicely in all programs too, but not in the cuda text. I hope this can be enabled or fixed.

Posted: 05.11.2020 14:39
by Alexey
CudaText depends on Lazarus code, it must be lazarus issue then. Can you pls install Lazarus IDE (you can use FpcUpDeluxe to install portable dir w/o installing it to OS dirs). And repro it in IDE in the source editor?

Posted: 05.11.2020 16:33
by basiliscos
It works in lazarus (ctrl+shift+arrows, ctrl+arrows, shift+arrows). In cuda text, only ctrl+arrows works, while with shift it does not.

Posted: 06.11.2020 16:46
by Alexey
I didn't test with "setxkbmap" but tested simple test - and see problem in Lazarus too.
Normal arrows give code in OnKeyDown: 37 38 39 40.
Arrows with shift, shift+ctrl also give 37 38 39 40.

In NUMLOCK state, Ubuntu:
Num-arrows give OK codes 37 38 39 40
But Num-arrows with shift, shift+ctrl give another codes! 100 102 104 98.

I don't want to test "setxkbmap", so just tell this my report to Lazarus forum or bugtracker
https://forum.lazarus.freepascal.org/
https://bugs.freepascal.org/

Give them my demo
https://github.com/Alexey-T/FreePascal- ... ey%20codes

And let's wait a fix