[ 
https://issues.apache.org/jira/browse/CB-2596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13593479#comment-13593479
 ] 

Jan Velecký commented on CB-2596:
---------------------------------

Thanks. Now it works perfectly on all of versions :-) 4.2, 4.1 , 4.0, 2.3, 2.2 
and 2.1. :-)
                
> Menubutton don't fire, when is focus in input – Android 2.1 – 4.0
> -----------------------------------------------------------------
>
>                 Key: CB-2596
>                 URL: https://issues.apache.org/jira/browse/CB-2596
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.4.0, 2.5.0
>            Reporter: Jan Velecký
>            Assignee: Joe Bowser
>             Fix For: 2.6.0
>
>
> This bug is there for many of major versions of cordova and must be finally 
> fixed, please. It's reproducable with ease:
> <!DOCTYPE HTML>
> <html>
>   <head>
>     <meta name="viewport" content="width=320; user-scalable=no" />
>     <meta http-equiv="Content-type" content="text/html; charset=utf-8">
>     <title>PhoneGap</title>
>       <script type="text/javascript" charset="utf-8" 
> src="cordova-2.5.0rc1.js"></script>
>       <script>
>               document.addEventListener("deviceready", function() {
>                       document.addEventListener("backbutton", function() 
> {alert(2)})
>                       document.addEventListener("menubutton", function() 
> {alert(1)})
>               })
>       </script>
>   </head>
>   <body>
>   <input type="text">
>   <button onclick="1">
>   </body>
> </html>
> On Android 4.2 is everything okay. When is focus in input then after push 
> menubutton keyboard disappear and menubutton event fire.
> But on Android 2.1 and 4.0 it's different. Menubutton event don't fire until 
> input has focus. After blur it, menubutton fires normally.
> The most annoying it's on Android 2.2 and 2.3. Same as previous, but in 
> addition, when blur input menubutton still doesn't fire until another 
> (javascript) event start. It's mean, you can tap on button or push back 
> button on device and after that menubutton fires, when you push menu button.
> Please, fix this. It's elementary for Android apps.

--
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: http://www.atlassian.com/software/jira

Reply via email to