title: AS3 - preventDefault() doesn't work in fullscreen (AIR)
body: <p>I am trying to make a fullscreen program in air that does not become windowed when you press escape. Why is my program not working as it should, and how should make it work correct?</p>
  
  <p>Code:</p>
  
  <pre><code>package 
  {
  import flash.display.*;
  import flash.events.*;
  import flash.desktop.*;
  import flash.text.*;
  
  public class Main extends Sprite 
  {
  
      public function Main():void 
      {
          stage.scaleMode = StageScaleMode.NO_SCALE;
          stage.align = StageAlign.TOP_LEFT;
          stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
          stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandeler);
  
      }
  
      private function keyDownHandeler(e:KeyboardEvent):void
      {
          if (e.keyCode == 27) 
          {
              trace("Hello");
              e.preventDefault();
          }
      }
  }
  </code></pre>
  
  <p>}</p>