Skip to main content
Participant
August 14, 2008
Question

tabbing across containers

  • August 14, 2008
  • 2 replies
  • 359 views
I have a number of input textfields, each contained within a different sprite. Those sprites are further nested within other sprites and then a ScrollPane. Tabbing only works for the buttons that are on the page, not the textfields. I tried setting tabIndex to a unique ascending int for each, but that doesn't work.

I have tested in the IDE with Control/Disable Keyboard Shortcuts

I have tested in IE and FF, nothing works.

The API doc for InteractiveObject says "The custom tab ordering includes only objects that have tabIndex properties". Yet the buttons without tabIndex set are in the tab loop, while the (visible) textfields with tabIndex set are not in the tab loop.

If I click within any textfield, to give it focus, then hit the tab key, the focus goes back to the buttons and not to any textfield. The doc also says that "The custom tab ordering that the tabIndex property defines is flat" so I'd thinkthagt nesting doesn't matter. How do I get tabbing to work? I've looked at FocusManager but don't see a solution there.

(My code has many as files and so I can't post it.)
This topic has been closed for replies.

2 replies

Participant
March 7, 2009
I have the same problem. I have a site navigation, and a sprite with a bunch of form fields. I can set focus on the first form field, but when I press the tab key, the focus switches to the navigation buttons. If I keep pressing the tab key, it cycles through the navigation buttons, but doesn't ever focus on the form fields (which are textinput components). I've been experimenting with the focus manager, but so far nothing has worked! Any help would be appreciated.
February 2, 2009
I am currently having the same problem. I have a Sprite which in turn has other things in it (like buttons and TextFields), and I set my ScrollPane's source to the sprite. Everything displays properly, but tabbing does not work.

I've tried all sorts of combinations of .tabEnabled, .tabChildren, and .tabIndex on the scroller, and various pieces of content. It works if I pull it out of the scroller... I'm tempted at this point to just write my own scrollpane component since the provided one does not seem to work.