There is no capture phase at the target so if no component has focus, the stage 
dispatches the event and a capture phase listener will not see it.  There are 
places in the framework where we listen to stage in both target phase and 
capture phase in order to get "everything"

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of mole5000.geo
Sent: Friday, October 09, 2009 1:50 AM
To: [email protected]
Subject: [flexcoders] Situations when Keyboard events are not detected



I have a Flex 3 app where I have added a keyboard listener to the stage using 
capture (this was done in a component defined in a swc library) with the intent 
of getting all keyboard events that happen in the application. However, under 
certain circumstances (specifically when i click on a custom chart component), 
the event listeners will no longer fire until I click on other components _or_ 
I press the tab key.

I have tried setting the event listeners with a high priority number as well 
but they still don't fire.

What kind of things could be causing this behaviour?

--
Alistair Hutton

Reply via email to