I am trying to use the menu button on android phones, which just fires off keyboard events. I se the events firing just fine until I add a StageWebView instance. Once it has been created, the keyboard events stop firing. Anyone know if there is something I need to do to capture them? Is the StageWebView stealing focus or something?
I had a standard keyboard event listener set up against the stage. Before the StageWebView is added I see the events firing from the menu button, etc. After its added those events are no longer received. I dont want the StageWebView to get focus at all, is there a way to prevent this? In this particular case the StageWebView is being used strictly to display a Google adsense ad.
I had a similar issue happening where keyboard events tied to the stage weren't heard after a specific senerio, I never figured it out. Instead i added the event Listener to native application and the problem was rectified.
NativeApplication.nativeApplication.addEventListener(KeyboardEvent.KEY _DOWN,keysDown);
North America
Europe, Middle East and Africa
Asia Pacific
Copyright © 2012 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).