Closed vanderneut closed 9 years ago
Hi Kulpreet,
See my commit notes on this pull request. Let me know if you have any questions. I have verified this fix in my application.
Thanks, Erik
Kulpreet,
To explain my motivation for this code change: when using a UITextField with a standard keyboard in iOS, then hitting the Return key will result in a call to the textFieldShouldReturn: delegate method. Your custom keyboard was not doing that. It was inserting a newline character in the text field string instead. That is correct behavior for a multiline UITextView, but not for the UITextField. This is a fix for that.
For more information, see https://developer.apple.com/library/ios/documentation/uikit/reference/UITextFieldDelegate_Protocol/UITextFieldDelegate/UITextFieldDelegate.html
Thanks, Erik
Thanks Erik! I merged in all of your changes.
.... In that case, the return key should trigger the textFieldShouldReturn: delegate method. -- Erik