Skip navigation
SMakinson
Currently Being Moderated

StageWebView and keyboard events

Nov 23, 2010 2:29 PM

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?

 

  • Currently Being Moderated
    Adobe Employee
    Nov 24, 2010 10:27 AM

    If the StageWebView has focus, you should be able to capture only the hardware key events (like BACK, ..). All the others are handled internally by StageWebView.

     

    Do you see otherwise? If yes, can you post your application ?

     

     

    Thanks,

    Raul

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Nov 28, 2010 3:33 PM

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

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Nov 29, 2010 8:31 AM

    I checked your scenario and I can see the keyboard events firing on Android even after the StageWebView is added to the stage.

    Can you please provide a small sample for your case?

     

    Thank you,

    Mirela

    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points