I’ve got my key presses getting trapped, but I’m not sure how to properly determine which Command+key presses happened. When I hit Command and the ‘A’ key, the getKeyCode() returns 97 (lower case ‘a’), and getTextCharacter() returns L’a’, so I can use either and check for ‘a’ (after determining that isCommandDown() returned true). However, if I press Command and the ‘Z’ key, then getKeyCode() returns 90 (the capital ‘Z’!), while getTextCharacter() returns L’\0’, which isn’t anything useful that I can tell.
So, what is the proper way to detect Command+key presses, that works for all the usual combinations? I suppose I could check for ‘z’ OR ‘Z’, using the keyCode, but is that the way it’s intended to be checked?
