That interface is, in fact, only for the initial assignment of focus to the
component that wraps multiple targets.  That wrapping component must then
manage tab focus on its own by handling the keyFocusChange event and calling
preventDefault on it when it wants to keep focus on one of the wrapped
controls.

HTH,
-Alex


On 5/7/13 8:33 AM, "Cosma Colanicchia" <cosma...@gmail.com> wrote:

> Anyone know something about this interface ([1] on github)?
> 
> Its asdoc states "the IFocusManagerComplexComponent interface defines the
> interface that components that can have more than one internal focus target
> should implement in order to receive focus from the FocusManager" - so I
> tried to implement it this scenario, but it does not seem to work.
> 
> In particular, the FocusManager implementation look for it when it must
> give focus to a component (see [2]), however tab focus management seems
> broken using it (I think that FocusManager should check if the current
> focus is on a component that is an "internal focus target" of a complex one
> when looking it up in the tab loop, to correctly determine the next focus
> manager component).
> 
> 
> [1]
> https://github.com/apache/flex-sdk/blob/trunk/frameworks/projects/framework/sr
> c/mx/managers/IFocusManagerComplexComponent.as
> 
> [2]
> https://github.com/apache/flex-sdk/blob/trunk/frameworks/projects/framework/sr
> c/mx/managers/FocusManager.as#L1450

-- 
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

Reply via email to