no selections with numpad [Laz issue, cannot solve]

Did you find any problems using this software? Please post here...
Post Reply
basiliscos
Posts: 4
Joined: 03.11.2020 07:23

no selections with numpad [Laz issue, cannot solve]

Post 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.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post 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?
basiliscos
Posts: 4
Joined: 03.11.2020 07:23

Post 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.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post 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
Post Reply