Dmitry Shaporenko created CB-7837:
-------------------------------------

             Summary: 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
    Affects Versions: 3.5.0, 3.0.0, 3.6.3
            Reporter: Dmitry Shaporenko


    <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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to