cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Wong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-9949) Menu button event not fired in Android
Date Wed, 04 Nov 2015 07:46:27 GMT

    [ 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message