How do I keep the keyboard up after the submit button is tapped? [REPOST]

-I’m reposting this here because I posted it in General Discussion just to realize it’s currently getting spammed lol-

I have an app where a text field is constantly being typed into so I want the keyboard to always be up, but when the user hits the submit button on the keyboard the keyboard goes away. I tried setting the focus to be the text field after the “submitted” event in the listener but it makes the keyboard go down and come back up really quickly and it looks stupid. I also tried adding a runtime listener to set the keyboard focus (nil when i want it awe and to the field when i want it up) but it does the same thing. Is there any way of doing this?

I’ve removed your other post.  While we may get hit with spam, we do clear it up so it won’t stay that way for long.

Normally the keyboard only dismisses if you’ve told it to by calling:  native.setKeyboardFocus( nil )

If you don’t call that, even the enter key shouldn’t dismiss the keyboard.

Rob

Sorry about the double post, I had never seen it get spammed before and didn’t know you guys clear it so actively, thank you! And I removed all setKeyboardFocus() calls and it still goes down on the enter button, but it still says it is “focused” or typing in the text box. Is it an android thing? Or is there maybe a keyboard I can use that doesn’t have the enter button? I’ve been messing around with coding android apps with Java and it’s possible to do this using that. Does Corona support that keyboard?

Maybe you can set the return key to “None” or one of the other values and see if that helps…

Rob

I’ve removed your other post.  While we may get hit with spam, we do clear it up so it won’t stay that way for long.

Normally the keyboard only dismisses if you’ve told it to by calling:  native.setKeyboardFocus( nil )

If you don’t call that, even the enter key shouldn’t dismiss the keyboard.

Rob

Sorry about the double post, I had never seen it get spammed before and didn’t know you guys clear it so actively, thank you! And I removed all setKeyboardFocus() calls and it still goes down on the enter button, but it still says it is “focused” or typing in the text box. Is it an android thing? Or is there maybe a keyboard I can use that doesn’t have the enter button? I’ve been messing around with coding android apps with Java and it’s possible to do this using that. Does Corona support that keyboard?

Maybe you can set the return key to “None” or one of the other values and see if that helps…

Rob