There is a flag in FocusManager called showFocusIndicator. Our UI policy is that there is no focus indicator except around TextInput/TextArea unless you hit tab and then we show it on every control. Don’t ask me why. Several folks have been successful in finding ways to set showFocusIndicator and keep it on in order to see the indicator always. There might be more to it than just setting the flag. Search around for solutions.
There is no wraparound when editing. Tabbing should let you exit out the bottom of the control. Probably better for accessibility. Tabbing should move you from control to control. See if it works on my blog example. The key is knowing when to not call preventDefault in your keyFocusChangeHandler. Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of JérémyR Sent: Saturday, May 16, 2009 6:55 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Focus on itemRenderer sub-components in a non editable list Hi Alex! Thanks a lot for your answer. You point me in the right direction; I persisted trying to accomplish it with editable set to false because I didn’t want anything to be editable… But this can be done even with editable set to true. I do exactly what you explain on you article " http://blogs.adobe.com/aharui/item_renderers/ DataGrid ItemEditor with Two Input Fields ", i.e: adding a listener on KEY_FOCUS_CHANGE and overriding setFocus() to manually handle focus logic. And it works fine! Except for some little things… Maybe you can help me on these points: 1) if I focus the List with the keyboard with TAB key, it works fine, the item is selected, the first button has focus and focus is displayed. But if I click on the List, the first button has focus (I can “see” it by pressing SPACE) but the focus is not displayed (no border around the button). The weird thing is if I continue to tab, the next button gains focus, still without display, then when the third one gains focus, the focus starts to be displayed! So the question is why? And is there any way to force the focus display? 2) I control the focus manually to switch focus from button to the next/previous one but the focus stays on the same list item. I wonder if I can switch to the next/previous item in the list (as it is naturally? done in your DataGrid example)? The only way I found to change selected item with keyboard is ENTER / SHIFT+ENTER but when a bound is reached it doesn’t roll (when last item is selected, next ENTER doesn’t select the first item). So there 3 questions in one: a. How to change selected item with TAB? b. Is ENTER / SHIFT+ENTER a standard keyboard (in "Accessibility" domain) access to change selected item in a list? c. Is there a way to roll over item when a bound is reached? Thanks for your help! Alex Harui wrote: > > A List must be editable in order for renderers to get focus. Is there a > reason you don't want to set editable=true? There's probably a way around > it, but I think it will be lots of work. > > Alex Harui > Flex SDK Developer > Adobe Systems Inc.<http://www.adobe.com/> > Blog: http://blogs.adobe.com/aharui > > From: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> > [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>] On > Behalf Of JérémyR > Sent: Thursday, May 14, 2009 12:04 PM > To: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Focus on itemRenderer sub-components in a non > editable list > > > > > > Hi, > > This problem seems very simple but despite of my searches, I didn't find > any > solution... > I have a non editable List with custom Canvas item renderer. This Canvas > contains 4 buttons. And I want the user to be able to focus each button > with > TAB key. > > A lot of posts talks about similar problems but it seems there is no > solution (for non editable list - Alex Harui wrote an excellent article on > his blog but for a DataGrid component but with editable set to true)... > > Is there really no solution? (if it is the case, I think it deserves a bug > in Adobe Bug system cause it completely breaks application > accessibility...) > > Thanks for your reply. > -- > View this message in context: > http://www.nabble.com/Focus-on-itemRenderer-sub-components-in-a-non-editable-list-tp23546945p23546945.html > Sent from the FlexCoders mailing list archive at Nabble.com. > > > -- View this message in context: http://www.nabble.com/Focus-on-itemRenderer-sub-components-in-a-non-editable-list-tp23546945p23573993.html Sent from the FlexCoders mailing list archive at Nabble.com.