Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flex: Cannot tab between controls on a modal popup

Steps to reproduce:

  1. Create a modal popup to popup with popupmanager (mine is a group with a skinnable container inside of it)
  2. Put field components (textinputs) on the modal popup
  3. Attempt to tab between controls

Tab switches to controls behind the modal-popup and ignores the fact that the modal is there. The tab loop only contains controls behind the modal.

I've tried everything from setting tabChildren, to hasFocusableChildren. I can't implement IFocusManager as it's Halo and my modal is a Spark group, but would that work in some capacity? It really seems like Flex just ignores the modal in its focusmanager.

like image 214
Royi Hagigi Avatar asked Sep 25 '09 18:09

Royi Hagigi


2 Answers

This is not a bug, I'm assuming it's by design.

Group is supposed to be a lightweight container -- just for grouping things together. Group does not implement the IFocusManagerContainer interface.

SkinnableContainer (or more correctly SkinnableContainerBase) implements that interface, and that's why tabbing works when you use it w/PopupManager.

like image 134
Sunil D. Avatar answered Nov 11 '22 06:11

Sunil D.


Solution can be found here (if you want to use a Group):

http://googolflex.com/?p=650

like image 33
jdusbabek Avatar answered Nov 11 '22 04:11

jdusbabek