Royi Hagigi
Royi Hagigi

Reputation: 240

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.

Upvotes: 8

Views: 2044

Answers (3)

jdusbabek
jdusbabek

Reputation: 171

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

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

Upvotes: 1

Sunil D.
Sunil D.

Reputation: 18193

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.

Upvotes: 3

Akash Kava
Akash Kava

Reputation: 39946

Can you try using TitleWindow instead of group with a skinnable container? We use TitleWindow all the time and it does tab correctly.

Upvotes: 0

Related Questions