document.addEventListener("backbutton", backKeyDown, true);
Once you get the deviceready event override the back button behaviour:
navigator.app.overrideBackbutton(true);
Then provide and empty function for backKeyDown:
function backKeyDown() {}
I'm sure you'll be able to simplify that but you see what I mean.
Simon Mac Donald
http://hi.im/simonmacdonald
On Tue, Apr 12, 2011 at 2:15 PM, Adam Biggs <adam.v...@gmail.com> wrote:
> Is there a way to completely disable this button?
>
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>
navigator.app.exitApp();
which was introduced in 0.9.4 and it'll be the api going forward.
Simon Mac Donald
http://hi.im/simonmacdonald
Sorry bberish I think Simon's way is easier.
I tried what you suggested but I can't seem to get it to work. My code stalls at the "navigator.app.overrideBackbutton(true);" line and doesn't proceed (no errors in the console though). I'm using 0.9.4.
--