You're headed in the right direction.  I think you have to implement
IFocusManagerComponent on the renderer, and handle KEY_FOCUS_CHANGE.
FWIW, I wouldn't use a Form since it is pretty heavy.

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mydarkspoon
Sent: Thursday, July 31, 2008 7:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Keyboard navigating through List's item renderers

 

Hi,
I have a list that renders meta data about images (title & tags).
This list uses a Form with 2 TextInput controls as an item renderer.

The user should be able to navigate through the input fields using
either the mouse or the tab key.

The List default behavior when editable=true is to set the focus to
the renderers themselves, but not to their sub components, so the Form
itself will have a focus rectangle but not the TextInput controls.

What I tried to do is to override the setFocus() on the Form
subcomponent and move the focus to the first TextInput and on that
TextInput focusOut set its focus to the 2nd TextInput.
That didn't work as expected, and even if it did, I'm sure the is a
better way to achieve this behavior.

Thank you,
Almog Kurtser
http://www.mostlyflex.com <http://www.mostlyflex.com> 

 

Reply via email to