I am trying to get a keyboard to pop up in the simulator when I select a text field, and then disappear when the text is entered . When I click in the text field no keyboard shows up.
[lua]local datefield = native.newTextField((display.contentWidth*.05), (display.contentHeight*.2), (display.contentWidth*.3), 30, DateGetFocus)
datefield.isEditable=true
local function DateGetFocus( event )
local phase = event.phase
if “began” == phase then
datefield.inputType= “number”
end
if “selected” == phase then
datefield.inputType = “nil”
end
end[/lua]
Should I handle the keyboard selection in some other way? Or is it just an error with my implementation?
Using Corona Simulator version (2013.6.3) and Mac OSX 10.8.5
On iphone keyboard appears because there is no physical one.