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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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, {} ) |