As per this, this, and this, Carbon modifiers should be >> 8 in order for UCKeyTranslate to work "correctly" (e.g. translating a ⌥n into ~ on my French keyboard).
Here are my modifications : https://gist.github.com/tiennou/7726014
I'm not sure how to integrate that in NDKeyboardLayout (right now it's just modded, but I don't think it should replace stringForKeyCode:modifierFlags. I can see two use cases :
- we want to convert a keycode + modifier back to it's shortcut representation (in that case the dead key behavior is unwanted)
- we want to convert a keycode + modifier back to it's "textual" representation (e.g. the characters that will end up being displayed in a text file).
What do you think ?
As per this, this, and this, Carbon modifiers should be
>> 8in order forUCKeyTranslateto work "correctly" (e.g. translating a ⌥n into ~ on my French keyboard).Here are my modifications : https://gist.github.com/tiennou/7726014
I'm not sure how to integrate that in NDKeyboardLayout (right now it's just modded, but I don't think it should replace
stringForKeyCode:modifierFlags. I can see two use cases :What do you think ?