I'm trying to figure out if there is any way in which we can detect if shift key is pressed or if any notification is sent when shift key is pressed in UIKeyboard
- (BOOL) textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)string
does not get called for shift key press since it is a modifier key.
Don't know whether you need to know it in combination with other text or only detect the single shift tap, but here is my solution for detecting the former:
in my case this is only a single character within:
this converts uppercase text to lowercase and sets the shiftPressed Value (ignored if the text is non letter text)