perhaps you can reset focus. Listen to the button clicked of the PopUpManager.centerPopUp(dialogo); and then after it gets clicked then you can reset focus to the component you want.
This sounds logical to me.
let me know.
The problem stills there. I've tried using Timers, setting the focus before closing the popup (as you suggested above),... no matter what I done, the only thing that makes the Forms works correctly is clicking in the browser before pressing the tab key.
¿Could it be a bug in the FLEX 4.5 framework?, when the component and the application was MX all worked perfectly!!!.
That shouldn't have been necessary. The FM should activate and deactivate
Did you force-link PopUpManager into the main app?
I will detail my explanation:
1.- I'm loading a section of the application using an SPARK Module and a ModuleLoader.
2.- Inside the Module I'm using a custom component that inherits from a SPARK TextInput. It has a custom skin.
3.- When that custom component receives the focus I call the PopUpManager to display a centered modal dialog.
4.- When the dialog is closed the focus is not returning to the TextInput so I must use the focusManager instance to get the TextInput getting the focus (the FOCUS_IN event is fired).
5.- I can see the focus drawed over the custom TextInput, but when I press the Tab key the focus go from tabIndex=1 to tabIndex=106 (assigned to a component in the parent module).
It's like the focusManager is not detecting correctly the nextTabIndex in the chain.
What do you mean about forcing PopUpManager into the main application?.