Type Number Event userInput Revision 2017.3060 Keywords userInput, startPosition
The position where the cursor was when the event took place.
local function textListener( event )
if ( event.phase == "editing" ) then
print( event.startPosition )
end
end
defaultField = native.newTextField( 150, 150, 180, 30 )
defaultField:addEventListener( "userInput", textListener )