Native Web Pop and Cut and Paste

Hi All,

I am currently building my first Corona-based game, coming from native Android development. I wanted to use a web pop with a local HTML file to show the formatted “terms and conditions”. It looks great and works well with one small problem. If I hold down my thumb on a word the OS cut and paste editor kicks in and this blows all my formatting and in general messes up my “beautiful” screen. Is there a way to prevent this behavior? I tried just “swallowing” the events associated with the webview to no avail. The code I used to do this was:
timer.performWithDelay(1500, function() native.showWebPopup( screenW*.1, screenH*.3, screenW*.8, screenH*.5, “tos.html”, {hasBackground=false, baseUrl=system.ResourceDirectory, urlRequest=function() return true end }) end)
Maybe I am doing it wrong? Or maybe being a native object this not something I can control. Which would be too bad since otherwise its working brilliantly in the assigned capacity.

Regards! [import]uid: 134485 topic_id: 31036 reply_id: 331036[/import]

I’ve found sort of a solution. Using this little javascript function I can disable cut and paste. The only issue is if the user has javascript disabled in his/her browser then obviously this solution doesn’t work. Still unless someone reports a better way I’m going ahead with this for now.

[javascript]

[/javascript] [import]uid: 134485 topic_id: 31036 reply_id: 124112[/import]

I’ve found sort of a solution. Using this little javascript function I can disable cut and paste. The only issue is if the user has javascript disabled in his/her browser then obviously this solution doesn’t work. Still unless someone reports a better way I’m going ahead with this for now.

[javascript]

[/javascript] [import]uid: 134485 topic_id: 31036 reply_id: 124112[/import]