Type Number Event userInput Revision Release 2025.3714 Keywords userInput, numDeleted
The number of characters which were deleted.
This property is only available during the "editing"
phase of userInput events.
local defaultField local function textListener( event ) if ( event.phase == "editing" ) then print( event.numDeleted ) end end defaultField = native.newTextField( 150, 150, 180, 30 ) defaultField:addEventListener( "userInput", textListener )