How can I detect key presses from Keyboard.

How to detect key presses from Keyboard for an IOS App. For the virtual keyboard, none of the press handling methods are being called.

(This link is not helpful for IOS app -- https://www.hackingwithswift.com/example-code/uikit/how-to-detect-keyboard-input-using-pressesbegan-and-pressesended)

Please,Kindly suggest for the above.

Replies

Do you have a UITextFieldDelegate setup? It defines the appropriate methods, e.g., textFieldDidBeginEditing(), textFieldDidEndEditing(), etc.

  • Those methods are getting called .

    If you click the capslock on from keyboard , i need to get event for that. This call back I am not getting .

Add a Comment

Any answer? Im searching for the same issue.