Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1094
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


[Updated on: Sun, 31 January 2021 12:15]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with specific HW configuration
Next Topic: Ctrl Transparency, backpaint, ...
Goto Forum:
  


Current Time: Mon Jun 10 02:42:35 CEST 2024

Total time taken to generate the page: 0.02153 seconds