Reputation:
There's a way to convert a character (@"A"
) to CGKeyCode (cocoa development)? I've already tried a lot of "solutions", but none worked.
I already implemented the keyCodeForKeyString
method, but it is really short and don't include all of the characters in a keyboard.
Upvotes: 3
Views: 2020
Reputation: 385
This question appears to answer the same (or very similar) question: How to convert ASCII character to CGKeyCode?
Upvotes: 1