Hiding keyboard in native.newtextarea

When using native.newTextField, when the person clicks on the field, it pops up the native keyboard.  This works for me in both Android and iPhone.  BUT…

On Android, there is a DONE button and removes the keyboard.  On iPhone, there doesn’t appear to be any such way to remove the keyboard.

Is there a manual way to remove that keyboard?  

Is there a way to know the keyboard is showing?

I’m thinking about a DONE button on the app itself that removes the keyboard, but I would need to know when the keyboard is active - so I can display the DONE button and activate the listener and then know when it’s gone, so I can remove the DONE and the listener.

Can that be done?

Hi John,

The keyboard can be manually controlled (displayed or hidden) by using “native.setKeyboardFocus()”:

http://docs.coronalabs.com/api/library/native/setKeyboardFocus.html

Using this, you could just set a variable true/false when you display it or hide it, thus knowing when the use the button.

Brent

That’s EXACTLY what I needed!  Thanks! 

Hi John,

The keyboard can be manually controlled (displayed or hidden) by using “native.setKeyboardFocus()”:

http://docs.coronalabs.com/api/library/native/setKeyboardFocus.html

Using this, you could just set a variable true/false when you display it or hide it, thus knowing when the use the button.

Brent

That’s EXACTLY what I needed!  Thanks!