4 Replies Latest reply on Feb 10, 2010 8:32 AM by LacioDrom

    how disable help window pressing F1

    LacioDrom

      Hi everyone,

       

      When I press F1 key I'd like to avoid to show Help PopUp Window and similarly when I press F3 key with Find PopUp Window

       

      I tried to use event.stopImmediatePropagation(); and event.stopPropagation(); in my handler but without any success. 

       

       

              private function initApp():void {

             

                  application.addEventListener(KeyboardEvent.KEY_DOWN, keyHandler);

       

              }

       

              private function keyHandler(event:KeyboardEvent):void {

       

                  //event.stopImmediatePropagation();

                  //event.stopPropagation();

       

                  if(event.keyCode == Keyboard.F1)

                  Alert.show("F1 handled!!!", 'info');

              }

       

      Could someone give me a clue?

       

      Thanks a lot,

      greetings!!!