Hi, While trying to fix http://jira.secondlife.com/browse/VWR-2232 I've found that the whole keyboard handling code is totally borked.
It has been designed with a QUERTY keyboard layout in mind, and there's no simple way to separate _symbolic_ shortcuts from _positional_ shortcuts. I've wrote a quick n' dirty hack (hey, my first time with Carbon API), but it doesn't really solves the problem. Handlers expect a symbol, so my hack *at least* corrects the symbols mapping. What happens when the expected symbol is not on the keyboard ? Shortcuts like Cmd-. break on AZERTY, the equivalent would be Cmd-Shift-; . Also, moving with ZSQD (AZERTY's equivalent for WSAD) is broken too, because the code expects symbols while those shortcuts are clearly positional (ie the position of the keys are more important than their symbolic value). The idea would be to get *rid* of the keyboard mapping, as both virtual key code & unicode character value can be read from the event handler. Then, instead of passing a character we could use a structure with both key code & unicode symbol. Handler would then pick what it need. Other positional shortcuts are all the Ctrl-1 ... Ctrl-0 (or Cmd) family. The equivalent symbols on AZERTY keyboards are Ctrl-&, Ctrl-é, ... Clearly, the position of the key is much more important than its value. Lilly pixelgi...@gmail.com _______________________________________________ Policies and (un)subscribe information available here: http://wiki.secondlife.com/wiki/OpenSource-Dev Please read the policies before posting to keep unmoderated posting privileges