1 Reply Latest reply on Dec 9, 2009 7:35 PM by mindtricksone

    How can I close an Air app with a key ?

    mindtricksone

      keyEnter = new Object();
      keyEnter.onKeyDown = function() {
        if (Key.getCode() == 69) // E,e = 69
             {

             //other coding
            NativeWindow.close()
             };
      Key.addListener(keyEnter);

       

      Does not work..