newTextBox doesn't show the keyboard

I have tested in iOs Simlator, I can edit it, but the native keyboard is not launched…what am i missing

 myMsg = native.newTextBox( 190, 260, 520, 230 ) myMsg.anchorX = 0.5 myMsg.anchorY = 0 myMsg.isEditable = true myMsg.x=display.contentCenterX myMsg:addEventListener( "userInput", textListener ) myMsg:setTextColor( 0 ) myMsg.hasBackground = false

I answer myself: in Ios simulator hardware/keyboard/connect hardware keyboard

But, i can’t see any button in the keyboard to submit…only return…so I can’t hide the keyboard…
I have added a tap event to my textbox to show or hide the keyboard, but doesn’t work to hide the key board.
So How can I show a keyboard with a button to finish the editting?

Answer to both questions in the docs: https://docs.coronalabs.com/daily/api/library/native/setKeyboardFocus.html

  1. Your original question:

    native.setKeyboardFocus( textFieldReferenceHere )

  2. Hiding the keyboard: 

    native.setKeyboardFocus( nil )

When you say in the iOS simulator, are you referring to the Corona SDK simulator running on iOS or the Xcode simulator?

If you’re talking about the Corona SDK simulator, you will never get a keyboard. It’s in effect an OS X app and OS X apps do not display a keyboard. If you need to see the keyboard, test your app either on the Xcode simulator (and Option for when you “Build” your app, or build and install on a device.

Rob

I answer myself: in Ios simulator hardware/keyboard/connect hardware keyboard

But, i can’t see any button in the keyboard to submit…only return…so I can’t hide the keyboard…
I have added a tap event to my textbox to show or hide the keyboard, but doesn’t work to hide the key board.
So How can I show a keyboard with a button to finish the editting?

Answer to both questions in the docs: https://docs.coronalabs.com/daily/api/library/native/setKeyboardFocus.html

  1. Your original question:

    native.setKeyboardFocus( textFieldReferenceHere )

  2. Hiding the keyboard: 

    native.setKeyboardFocus( nil )

When you say in the iOS simulator, are you referring to the Corona SDK simulator running on iOS or the Xcode simulator?

If you’re talking about the Corona SDK simulator, you will never get a keyboard. It’s in effect an OS X app and OS X apps do not display a keyboard. If you need to see the keyboard, test your app either on the Xcode simulator (and Option for when you “Build” your app, or build and install on a device.

Rob