Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle the return button #63

Closed
mdarveau opened this issue Aug 28, 2014 · 8 comments
Closed

How to handle the return button #63

mdarveau opened this issue Aug 28, 2014 · 8 comments
Assignees

Comments

@mdarveau
Copy link

Hi,

The previous/next/done buttons in the toolbar works perfectly. However, there is still the return button on the bottom right corner that does not do anything useful. I would like it to behave just like the next button for most fields. I can implement textFieldShouldReturn to handle the return button but I will have to rewrite the logic to move to the next text field. Could you expose something like moveNext in the IQKeyboardManager (basically exposing IQKeyboardManager.nextAction).

Thanks!

@hackiftekhar
Copy link
Owner

Hi MacKeeper,
Just released v3.1.0 with Return Key support. Now you can use 'IQKeyboardReturnKeyHandler' to use keyboard Return Key as Next without any manual effort. For details please read 'Keyboard Return Key Handling' section on documentation here:-
https://github.com/hackiftekhar/IQKeyboardManager

Thanks
Iftekhar

@mdarveau
Copy link
Author

Wow, thanks a lot!

@nakp
Copy link

nakp commented Sep 5, 2014

Hi,

I'm kinda still wondering how to do something with last field when it's return key is hit, as I use this to send something after hitting Go or Join.

Maybe event listeners would do the work? just like the ones attached to prev/next done keys

@chancipher
Copy link

Hi ,It doesn't work if UITextfield in a TableView.

@hackiftekhar
Copy link
Owner

Added delegate method callbacks for doing something when hitting Go or Join

@mythodeia
Copy link

@hackiftekhar
any ideas how to implement any action on the last textfield when the user taps the Done or the Go or Join button?
thanks

@hackiftekhar
Copy link
Owner

You can set the delegate if IQReturnKeyHandler to self, implement delegate methods in self. You'll get all delegate callbacks of UITextField and UITextView on self.

Then you can whatever you want by checking textfield object

@mythodeia
Copy link

@hackiftekhar thanks for the clarification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants