[
https://issues.apache.org/jira/browse/CB-9949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14989073#comment-14989073
]
Keith Wong commented on CB-9949:
--------------------------------
In addition to the patch, the following setup is needed in order to trigger the
menu button handler.
{code:title=bar.js|borderStyle=solid}
document.addEventListener("deviceready", function() {
...
navigator.app.overrideButton("menubutton", true); // <-- Add this line
document.addEventListener("menubutton", yourCallbackFunction, false);
...
}, false);
{code}
> Menu button event not fired in Android
> --------------------------------------
>
> Key: CB-9949
> URL: https://issues.apache.org/jira/browse/CB-9949
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 5.3.2
> Reporter: Keith Wong
> Attachments: cordova-android.patch
>
>
> The menu button event handler is not called when the menu button is pressed
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]