1 Reply Latest reply: Aug 1, 2013 4:42 PM by one_mr_bean RSS

    air app exit fullscreen mode when ctrl+s is pressed

    Ibarim Community Member

      I got a problem with my Air app. App is fullscreen and I want it to stay this way. I managed to disable Esc button by this code:

       

      addEventListener(KeyboardEvent.KEY_DOWN, whichKey);

      private function whichKey(e:KeyboardEvent):void {

        if (e.keyCode == 27) e.preventDefault();

      }

       

      But I still got a problem when buttons control+s are pressed - app exits fullscreen mode. Similar code doesn't seem to work:

       

       

      addEventListener(KeyboardEvent.KEY_DOWN, whichKey);

      private function whichKey(e:KeyboardEvent):void {

        if (e.ctrlKey && e.keycode == 83) e.preventDefault();

      }

       

      Anyone knows something about this mysterious combination of ctrl+s buttons?