jcesarmobile created CB-10805:
---------------------------------

             Summary: menubutton event is not correctly documented
                 Key: CB-10805
                 URL: https://issues.apache.org/jira/browse/CB-10805
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android, Docs
            Reporter: jcesarmobile
            Priority: Minor


This is the doc for menubutton
{quote}
menubutton

The event fires when the user presses the menu button. Applying an event 
handler overrides the default menu button behavior.
Quick Example

document.addEventListener("menubutton", onMenuKeyDown, false);

function onMenuKeyDown() {
    // Handle the back button
}
{quote}

But menubutton event was broken on android. (See CB-9949)

When fixed, a change was introduced, to make the menubutton work, now it's 
required to add this line:
{code}
navigator.app.overrideButton("menubutton", true);  
{code}

But that is not documented anywhere.

I think it should be added as an android quirk as it is supported by blackberry 
too and I don't think this is needed on blackberry devices.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to