I am trying to input a number text field and then submit the number with setReturnKey (I am assuming that this is what this function does?) When I build and test on my device, I am getting a keyboard showing but no return key, just the number pad and the backspace button in the bottom right. Here is the code I have creating the text field:
inputField = native.newTextField( W/2, 150, 300, 50 ) inputField.inputType = "number" inputField.placeholder = "Enter Winnings" inputField.align = "right" inputField.size = 14 inputField:setReturnKey("done") inputField:addEventListener( "userInput", textListener )
and I am calling this in the “did” phase in scene:show in composer. Anyone have a similar issue? It seems like a pretty simple function so there doesn’t seem like there are many places to go wrong.
Also, I have found it difficult to find any useful documentation on this or the native UI in general so if you know of where I could find more help on this that would be great.