0

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?

0

2 Answers 2

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

Sign up to request clarification or add additional context in comments.

Comments

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;

1 Comment

Yeah, it's seems to me, that I have to add own capslock button. Thanks!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.