cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon MacDonald (JIRA)" <>
Subject [jira] [Commented] (CB-1574) On Android 4.x events are only sent on every second menu button press
Date Wed, 03 Oct 2012 15:48:07 GMT


Simon MacDonald commented on CB-1574:

No, this doesn't touch the back button code at all. I've tested the change on 2.3.5, 4.0.4
and 4.1.1 and it seems to work just fine. Plus anyone can over-ride it if they extend DroidGap.
I will check in the change after lunch.

> On Android 4.x events are only sent on every second menu button press
> ---------------------------------------------------------------------
>                 Key: CB-1574
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>             Fix For: 2.2.0
> I want to implement a custom menu in my phonegap app. I have added an eventlistener for
the menubutton event.
> When I press the menubutton the first time, it opens the menu. When I press it again,
I close the menu.
> Every time after that that I want to open the menu, I have to press the menubutton twice
(and to close, I have to press it also twice).
> When I check logcat:
> first press:  
> W/InputMethodManagerService(  315): Window already focused, ignoring focus gain of:$Stub$Proxy@421c95b8
> second press: 
> D/DroidGap(19858): onMessage(onPrepareOptionsMenu,
> D/CordovaWebView(19858): >>> loadUrlNow()
> D/CordovaLog(19858): MENUBUTTON PRESSED
> D/CordovaLog(19858): file:///android_asset/www/app.js: Line 2393 : MENUBUTTON PRESSED
> I/Web Console(19858): MENUBUTTON PRESSED at file:///android_asset/www/app.js:2393

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message