8 Replies Latest reply on Nov 3, 2011 2:20 AM by nikos101

    listeners keyDown are not being called when keyDown in an popup l

    nikos101 Level 2

      For some reason the listeners titleWindow_keyDown are not being called when keyDown in an popup like so:

       

      <?xml version="1.0" encoding="utf-8"?>

      <s:SkinnablePopUpContainer xmlns:fx="http://ns.adobe.com/mxml/2009"

                                 xmlns:s="library://ns.adobe.com/flex/spark"

                                 xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300"  keyDown="titleWindow_keyDown(event);" >

         

       

          <s:TitleWindow title="Edit Complaint" close="close()">

       

       

      private function titleWindow_keyDown(evt:KeyboardEvent):void {

                          if (evt.charCode == Keyboard.ESCAPE) {

                              close();

                          }

                      }

       

       

      Any ideas friends??