incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "AGreenhill (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-1691) Android menu button event doesn't fire when textbox has focus.
Date Fri, 19 Oct 2012 17:30:14 GMT

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

AGreenhill updated CB-1691:
---------------------------

    Description: 
Amir over in the PhoneGap Build support forums told me to report this here. I have set up
a simple app on my HTC Evo 3D (Android 4.0.3), here is the code:

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<script type="text/javascript">
function onDeviceReady()
{
document.addEventListener("menubutton", clickMenu, false);
}
function clickMenu()
{
alert('menu was clicked!');
}
</script>
</head>
<body onLoad='document.addEventListener("deviceready", onDeviceReady, false);'>
<input type=button value="Click me to switch focus away from textbox." /><br />
<input type=text />
</body>
</html>

The menu button will fire without issue... until the text box receives focus, then it fails
to fire. I believe the back button has problems too. I have not tested the search button for
this behavior.

I compiled the app under various versions to see which allowed menu button functionality.
Below are the results.

1.4.1 ok
1.5.0 ok
1.6.1 ok
1.7.0 ok
1.8.1 fails
1.9.0 fails
2.0.0 fails
2.1.0 fails

  was:
Amir over in the PhoneGap Build support forums told me to report this here. I have set up
a simple Android app, here is the code:

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<script type="text/javascript">
function onDeviceReady()
{
document.addEventListener("menubutton", clickMenu, false);
}
function clickMenu()
{
alert('menu was clicked!');
}
</script>
</head>
<body onLoad='document.addEventListener("deviceready", onDeviceReady, false);'>
<input type=button value="Click me to switch focus away from textbox." /><br />
<input type=text />
</body>
</html>

The menu button will fire without issue... until the text box receives focus, then it fails
to fire. I believe the back button has problems too. I have not tested the search button for
this behavior.

I compiled the app under various versions to see which allowed menu button functionality.
Below are the results.

1.4.1 ok
1.5.0 ok
1.6.1 ok
1.7.0 ok
1.8.1 fails
1.9.0 fails
2.0.0 fails
2.1.0 fails

    
> Android menu button event doesn't fire when textbox has focus.
> --------------------------------------------------------------
>
>                 Key: CB-1691
>                 URL: https://issues.apache.org/jira/browse/CB-1691
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.8.1, 1.9.0, 2.0.0, 2.1.0
>         Environment: Android 4.0.3
> Using PhoneGap Build
>            Reporter: AGreenhill
>            Assignee: Joe Bowser
>             Fix For: 1.4.0, 1.5.0, 1.6.1, 1.7.0
>
>
> Amir over in the PhoneGap Build support forums told me to report this here. I have set
up a simple app on my HTC Evo 3D (Android 4.0.3), here is the code:
> <!DOCTYPE HTML>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
> <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
> <script type="text/javascript">
> function onDeviceReady()
> {
> document.addEventListener("menubutton", clickMenu, false);
> }
> function clickMenu()
> {
> alert('menu was clicked!');
> }
> </script>
> </head>
> <body onLoad='document.addEventListener("deviceready", onDeviceReady, false);'>
> <input type=button value="Click me to switch focus away from textbox." /><br
/>
> <input type=text />
> </body>
> </html>
> The menu button will fire without issue... until the text box receives focus, then it
fails to fire. I believe the back button has problems too. I have not tested the search button
for this behavior.
> I compiled the app under various versions to see which allowed menu button functionality.
Below are the results.
> 1.4.1 ok
> 1.5.0 ok
> 1.6.1 ok
> 1.7.0 ok
> 1.8.1 fails
> 1.9.0 fails
> 2.0.0 fails
> 2.1.0 fails

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

Mime
View raw message