I have a custom TitleWindow
component that is registered to listen for keyboard events from the user (so that esc closes the window, enter saves, etc.). However, in my testing I've found a couple cases where my keyboard event handlers don't fire.
My best guess as to why this is happening is that there is some child component somewhere that has stolen focus and is stopping the keyboard events from propagating. Unfortunately, due to the large number of components in my TitleWindow
, I have no good way of knowing who has stolen the focus.
My question then is, are there any good tips / techniques / tools for debugging focus issues and event propagation in Flex? Basically, I need something that will tell me who has the focus at any given time and who's handling an event at any given time... is that possible?