UITextField deleteBackward() Not Called When Custom Keyboard is In Use
Originator: | mark.bridges | ||
Number: | rdar://FB7707493 | Date Originated: | |
Status: | Resolved: | ||
Product: | iOS | Product Version: | |
Classification: | Reproducible: |
If you subclass UITextField in order to listen for deleteBackward() on UIKeyInput this only works with the native keyboard. I've tried various custom keyboard extensions and none of them trigger deleteBackwards when deleteBackwards is pressed on the keyboard. To recreate try this: class MyTextFieldSubclass: UITextField { override func deleteBackward() { // This should be called on delete backwards but it's not. super.deleteBackward() } } Note. I've only tested it with keyboardType = .numberPad
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!