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 » Developing U++ » Mac OS » [BUG] keyboard shortcuts problem on an AZERTY keyboard
Re: [BUG] keyboard shortcuts problem on an AZERTY keyboard [message #52405 is a reply to message #52350] Fri, 20 September 2019 19:19 Go to previous messageGo to previous message
omari is currently offline  omari
Messages: 265
Registered: March 2010
Experienced Member
Hi,
after investigation, i found that :

  • we use NSEvent.keyCode as source of keyevent
  • NSEvent.keyCode is layout independent.
    for example, the key that labeled 'Q' in a QWERTY keyboard send alwayse the keyCode '0x0C' , even in an AZERTY keyboard when this key is labeled 'A'.
  • keyevent management is in the file CocoProc.mm, function
    static bool KeyEvent(Upp::Ctrl *ctrl, NSEvent *e, int up) ;

it seam that the solution is to use NSEvent.charactersIgnoringModifiers instead of NSEvent.keyCode.


regards
omari.

[Updated on: Fri, 20 September 2019 19:20]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Fixed] Context Menu does not work properly
Next Topic: Cannot compile MYSQL project
Goto Forum:
  


Current Time: Sun May 05 07:40:32 CEST 2024

Total time taken to generate the page: 0.01356 seconds