What's the right way to implement key equivalent matching that handles non-Roman/Latin layouts?
E.g. pressing Cmd+Option+C in a Greek layout produces an NSEvent with chars="ç" unmodchars="ψ"
, neither of which is going to match a key equivalent of Cmd+Option+C by simile comparison, yet performKeyEquivalent
on a button with that exact key equivalent returns YES and activates the button.
How would someone replicate that?
[NSEvent charactersByApplyingModifiers:]
also reports "ç", and so does UCKeyTranslate
. Yet the Keyboard Viewer shows a modifier layer with "c", not the "ç" that the event reports: