Home » U++ Library support » U++ Widgets - General questions or Mixed problems » K_CTRL_SEMICOLON and K_CTRL_PERIOD keys share the same constant value on Win32
Re: K_CTRL_SEMICOLON and K_CTRL_PERIOD keys share the same constant value on Win32 [message #56136 is a reply to message #55849] |
Sun, 31 January 2021 12:07   |
Oblivion
Messages: 1206 Registered: August 2007
|
Senior Contributor |
|
|
Hello Mirek,
I have further investigated the key handling on X!!, and found that numpad virtual keycodes are not propagated properly:
Here is the current situation:
- When Numlock is ON, the characters corresponing to the numpad keys (0-9, +-/*,) are dispatched. This is fine, nothing wrong here.
- However, when the same keys are pressed with CTRL or ALT modifier, they SHOULD send numpad keycodes, e.g, K_NUMPAD0-K_NUMPAD_9, and operators (K_ADD, K_SUBTRACT, etc.). This is the default behaviour of Upp on Windows and GTK (I don't have a Mac)
- But this is not happening on X11. Character codes are dispatched regardless of modifiers
So, I made a patch to remedy this problem. The patch, I believe, is at least a fix for some regression, if not an overall improvement in X11 key handling code.
Pleease review.
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Sun, 31 January 2021 12:15] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Wed May 14 11:59:31 CEST 2025
Total time taken to generate the page: 0.00407 seconds
|