Module:onScreenKeyboard
Appearance
Documentation for this module may be created at Module:onScreenKeyboard/doc
local textField = display.newText("", 0, 0, display.contentWidth, 100, native.systemFont, 50)
textField:setTextColor(255,255,255)
local listener = function(event)
if(event.phase == "ended") then
textField.text=keyboard:getText() --update the textfield with the current text of the keyboard
textField:setReferencePoint(display.TopLeftReferencePoint)
textField.x = 0
textField.y = 0
if(event.target.inputCompleted == true) then
print("Input of data complete...")
keyboard:destroy()
end
end
end