Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10805

menubutton event is not correctly documented

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      This is the doc for menubutton

      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
      }

      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:

      navigator.app.overrideButton("menubutton", true);  
      

      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.

      Attachments

        Issue Links

          Activity

            People

              jcesarmobile jcesarmobile
              jcesarmobile jcesarmobile
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: