techee left a comment (geany/geany-plugins#1458)

@b4n Good questions, you are just asking the wrong guy ;-). I pretty much don't 
know anything when it comes to keyboard events - I just had a look at the 
existing implementation which kind of worked, it just made some incorrect 
assumptions which I tried to address.

> can't we simply use hardware keycodes from the keymap?

Do you mean using `ev->hardware_keycode` and compare it to some hard-coded 
values? Is the value OS-independent and can we be sure we get identical values 
for all types of keyboards?

> isn't there a signal on keymap change that could be used instead of figuring 
> this again and again for all key presses?

No clue. At least I tried to limit the re-calculation to only those key presses 
containing Ctrl.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/1458#issuecomment-3019262529
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany-plugins/pull/1458/c3019262...@github.com>

Reply via email to