How do I set the return key of a text Field as a button on screen instead of a value on the keyboard

I am trying to create a text field where after you type what needs to be typed inside, you need to hit a button on-screen separate from the keyboard for the text to be submitted.

The goal is to enter the “submitted” event phase, not after a keyboard input, but rather after a separate event, in this case, the press of a button.

The documentation for object:setReturnKey() implies, at least to my limited understanding, that the values you can set the return key as are limited and will always appear on the keyboard, but I cannot find another way to set what triggers the “submitted” event phase. Am I missing something obvious? Is the way to do this just completely different?

When the user presses the button, just close the keyboard

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

-- Pass nil to remove focus and hide the keyboard. -- Hiding the keyboard dispatches an "ended" phase to the native object's listener function. native.setKeyboardFocus( nil )

When the user presses the button, just close the keyboard

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

-- Pass nil to remove focus and hide the keyboard. -- Hiding the keyboard dispatches an "ended" phase to the native object's listener function. native.setKeyboardFocus( nil )