In a Cocoa app, given this example NSString
:
Héllö
is there a way to tell which character is not represented by a physical key or key combination (Shift/Ctrl) on the keyboard?
For example, on a keyboard with US layout, the keys "é" and "ö" are not represented by a key, but on a French keyboard there is a "é" key and on a German keyboard there is a "ö" key.
Basically, I need to reduce the input string to only those characters, which cannot be typed using the current physical keyboard layout.
I think the Text Input Source Services Framework might be the right way to go, but I got stuck there.
Note: I'm aware that some characters can be produced by pressing Option-e/n/i.