3 Replies Latest reply on Mar 28, 2011 2:26 PM by Flex harUI

    Keydown not registering with TitleWindow

    mattcom Level 1

      Hi, I have what may be a glitch.


      A treelist that pops up a titlewindow on itemClick.  But the TitleWindow has keyboard listeners for key_up and Key_down and it never registers the event.  On occassion the treelist seems to 'steal' the keyboard event from the TitleWindow even though the TitleWindow is in 'focus' if I press a key the treelist does things.  I seem to be able to get children of the Titlewindow to successfully listen to keyboard events, but I would like the TitleWindow itself be the listener.


      I don't seem to have any problem with  click events in the titlewindow.  I've tried adding the keyboard listener both inside the titlewindow itself, and the page that pops it up.


      1.) this.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);


      2.) var b:HeatMapAmmap = HeatMapAmmap(PopUpManager.createPopUp(this, HeatMapAmmap, false));
      b.addEventListener(KeyboardEvent.KEY_DOWN, b.onKeyDown);


      Neither method is registering the event.


      Is this possible?


      Thanks in advance.