I’m not sure if this topic has been addressed before but I had a very urgent question. How can I make it so that a Webpopup will not close if the user clicks the hardware soft key on Android. Here is my code, and I’ve tried returning true and false and neither work. I really need your guys help. Thanks
[lua]local function exitWeb(e)
if(e.phase == “ended”) then
native.cancelWebPopup(popup)
xpic:removeSelf()
web:removeSelf()
transition.to(menubutton, {time=1, x = _W/1.1})
mode = 3
return true
end
return true
end
xpic:addEventListener(“touch”, exitWeb)
transition.to(menubutton, {time=1, x = -50})
popup = native.showWebPopup( 20, 50, 275, 400, s.t.itemURL, {} )[/lua]
Regards,
Jordan Schuetz
Ninja Pig Studios [import]uid: 29181 topic_id: 19788 reply_id: 319788[/import]