5 Replies Latest reply on Oct 9, 2008 8:39 AM by Gregory Lafrance

    Close Popup (not application) when Press Esc

    Gregory Lafrance Level 6
      I have an AIR app and I display a component based on a menu selection. If user presses Esc key, the component is closed (removed from display list). This works fine.

      If user clicks a button in the component, a modal TitleWindow is displayed as a PopUp. While the Popup is displayed and has focus, is user presses Esc the component closes, not the Popup.

      I have added a listener to the Popup for Esc key presses, but it doesn't seem to get the event. How can I have the Popup close on Esc when it is displayed and has focus?

      Thanks in advance!