Dear Corona community,
I am working with a textbox and I’d like to make the “enter” key close the keyboard instead of writing a newline. Unfortunately event.phase == “submitted” only works for textfields and event.keyName always returns nil.
Is there any way to detect the “enter” key in a textbox, or any other chance to prevent the creation of a newline when “enter” key is pressed?
I know I can create an additional button above the textbox to native.setKeyboardFocus(nil), but I am looking for a solution without any additional buttons.
Thank you