You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2015/10/14 18:58:05 UTC

[jira] [Resolved] (CB-7837) Menu button requires double click to invoke an event

     [ https://issues.apache.org/jira/browse/CB-7837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser resolved CB-7837.
----------------------------
    Resolution: Won't Fix

We currently don't support the menu button.  If someone wants to add the menu button, we may accept the patch.

> Menu button requires double click to invoke an event
> ----------------------------------------------------
>
>                 Key: CB-7837
>                 URL: https://issues.apache.org/jira/browse/CB-7837
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.0.0, 3.5.0, 3.6.3
>            Reporter: Dmitry Shaporenko
>            Priority: Minor
>              Labels: android
>
>     <script type="text/javascript">
>         document.addEventListener("deviceready", function () {
>             document.addEventListener("menubutton", menuKeyDown, true);
>         }, false);
>         function menuKeyDown() {
>             if ($( "#offcanvas-1" ).hasClass( "uk-active" )){
>                 $.UIkit.offcanvas.hide();
>             } else {
>                 $.UIkit.offcanvas.show('#offcanvas-1');
>             }
>         }
>     </script>
> The problem with this code is the following:
> When menu button is tapped on Android (tested in 4.4), the event is invoked. All further invocations require double tap.
> I build my app using build.phonegap.com. As far as I see, 3.0.0, 3.5.0, 3.6.3 are affected, no luck with any of them. Joe Bowser asked me to create a new issue, instead of commenting https://issues.apache.org/jira/browse/CB-1574 . This issues are pretty much the same, except, for me it does not seem minor at all. Please fix.



--
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