I'm writing my own buttons for special chars, which are not included in the native iOS keyboard. These buttons appear above the native keyboard. And some of my buttons need to determine if capslock is pressed. Is it possible to detect the capslock keypress event?
Asked
Active
Viewed 1,474 times
2 Answers
0
There isn't any official API that gives you access to the directly keyboard press event or notification. You must found for another way. of to do this, is to put a transparent button over top the each key, and detect that, and then pass on the touch to the underlying button.
Another way is to handle using UITextView delegate.
refer a this link: detect/get notification if shift key (modifier-key) pressed in uitextview

Community
- 1
- 1

bitmapdata.com
- 9,572
- 5
- 35
- 43
0
Unable to detect caps-lock key-press event in iOS.
The only way you can do something like that is to create your own keyboard class or find a custom implementation online.
Note:Making the Capslock button of the Keyboard to OFF Mode
testTxtField.autocapitalizationType = NO;

Shamsudheen TK
- 30,739
- 9
- 69
- 102
-
Yeah, it's seems to me, that I have to add own capslock button. Thanks! – bsnbk Aug 15 '12 at 05:12