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));
Neither method is registering the event.
Is this possible?
Thanks in advance.
Did you set focus to a component in the TitleWindow?
I moved the titleWindow around by its control bar. That should give it focus, right?
No, a TItleWindow cannot have focus, only its focusable children.