7 Replies Latest reply on Feb 18, 2010 2:10 AM by nikos101

    keydown method to enter on key presses issue

    nikos101 Level 2

      I can't ever get the keydown method to enter on key presses

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                     xmlns:s="library://ns.adobe.com/flex/spark"
                     xmlns:mx="library://ns.adobe.com/flex/halo"  width="100%" height="100%" >
          <s:keyDown>
              <![CDATA[
              if (event.charCode == Keyboard.ESCAPE)
              {
              //show the button if leaving full screen
              if(fullScreenState == StageDisplayState.FULL_SCREEN){
              toggleFullScreen();
              }
              }
              ]]>
          </s:keyDown>