You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2016/03/08 08:56:40 UTC
[jira] [Created] (CB-10805) menubutton event is not correctly
documented
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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org