Skip to main content
Known Participant
March 28, 2011
Question

AIR 2.6 Changed Backspace Behavior

  • March 28, 2011
  • 3 replies
  • 2541 views

Scenario:

I have a Flex AIR desktop app.  The app contains the HTML control. The HTML control loads a page that contains a Flash movie. The Flash movie contains a text box. Users enter text into the text box, but make a mistake and hit backspace.

In AIR 2.5.x behavior is as expected.  The last character in the text box is deleted and nothing else happens.

In AIR 2.6.x the HTML control goes back to the previous page as long as the Flash movie has focus.  I've failed in all attempts to stop the page load by catching the keypress (calling window.stop, returning false, cancelLoad in the Flex app, stop propagation, preventdefault, etc).  And no way to set/clear the html.history since it's read only.

1) Any ideas how to stop the page load?

2) What changed in 2.6 to cause this behavior change (and I tested on 2.5 again to be sure it work then upon 2.6 upgrade it failed)?

This is causing major problems.

Thanks!

This topic has been closed for replies.

3 replies

Known Participant
March 29, 2011

Chris,

I have more information for you.  It appears that the problem occurs only when wmode="transparent".  Changing to wmodw="window" solves the problem, but does prevent our ability to position divs over the Flash object.

Hope that helps.

chris.campbell
Legend
March 30, 2011

No updates yet, I'll ping our WebKit team again.

Chris

chris.campbell
Legend
April 1, 2011

This issue has been reproduced and entered in our internal bug database as bug #2840715.  I've associated it with this thread and noted in the bug the impact it has your application.  Please feel free to add any additional comments or ping me for updates as needed.

Thanks,

Chris

Known Participant
March 29, 2011

Just wondering if there are any more updates on this?  It's starting to reach critical status for us.  I hate to have to attempt to force an AIR downgrade.

Your expedited response is greatly appreciated.

Thanks.

chris.campbell
Legend
March 28, 2011

Hi,

Thanks for the heads up.  I'm going to forward this to our Webkit guys for thier review, would it be possible to get some sample code that we could use internally to reproduce the problem?

Thanks,

Chris

Known Participant
March 28, 2011

It's internal and there isn't much code to give but I'll give as much information as I can to replicate:

Using Flash Builder 4 - Flex 4 build an AIR app with an HTML control. Create a web page to load in the HTML control that will let you click through a few pages and verify historyLength >0. Have the last page load a Flash movie (in this case using AS2 textInput control so I can't say if there is a problem with AS3). Start typing in the control and hit backspace.

Again in 2.5 works like it should. I updated to 2.6 and it takes me back in the history.

Any fix would be greatly appreciated.  As you can imagine, it's causing serious issues.

Thank you.