Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function fieldHandler( event )
- if ( "began" == event.phase ) then
- -- This is the "keyboard has appeared" event
- -- In some cases you may want to adjust the interface when the keyboard appears.
- elseif ( "ended" == event.phase ) then
- -- This event is called when the user stops editing a field: for example, when they touch a different field
- elseif ( "submitted" == event.phase ) then
- -- This event occurs when the user presses the "return" key (if available) on the onscreen keyboard
- -- Hide keyboard
- if ("iOS" ~= system.getInfo("platformName")) then
- newBtnYes:removeEventListener( "touch", onbtnYes )
- newBtnYes:removeSelf()
- newBtnYes = nil
- end
- playerName = defaultField.text
- fields:removeSelf()
- verifyName()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement