2 Replies Latest reply on Jul 6, 2008 1:59 PM by LuckyTommy

    Fullscreen and Escape Key (Esc)

      I have my application in fullscreen interactive mode and would like to prevent the escape key from setting the display mode to normal. The problem is, when the escape key is pressed, the event handler used to override the escape key occurs after the display mode is set to normal:

      stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;

      private function DetectAndIgnoreEscapeKey (e:KeyboardEvent):void
      if (e.keyCode == Keyboard.ESCAPE.valueOf()) { e.preventDefault(); }

      The code inside DetectAndIgnoreEscapeKey always occurs after the application window is in normal mode. Has anyone encountered any issues like this before or any ideas on how to work around? Thanks.