Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling dead keys #4

Open
tiennou opened this issue Nov 30, 2013 · 0 comments
Open

Handling dead keys #4

tiennou opened this issue Nov 30, 2013 · 0 comments

Comments

@tiennou
Copy link
Contributor

tiennou commented Nov 30, 2013

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant