Type String Event userInput Revision 2017.3060 Keywords userInput, newCharacters
New characters that were typed in for the event.
local defaultField local function textListener( event ) if ( event.phase == "editing" ) then print( event.newCharacters ) end end defaultField = native.newTextField( 150, 150, 180, 30 ) defaultField:addEventListener( "userInput", textListener )