Skip to content

Handling dead keys #4

@tiennou

Description

@tiennou

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions