Skip navigation
Currently Being Moderated

Tabindex in forms on mobile?

Apr 12, 2012 4:07 AM

Tags: #forms #tabbing #tabindex

Is it possible to enable/use the tab function of the softkeyboard?

Just setting the tabindex on inputfields won't do the job unfortunately.

  • Currently Being Moderated
    Jul 3, 2012 6:30 AM   in reply to TimRuiters

    Don't suppose you ever found the answer to this question?


    I'm wondering the same thing. Simply defining tabIndex doesn't seem to work. The "Next" button on a mobile device's onscreen keyboard doesn't do anything.

    Mark as:
  • Currently Being Moderated
    Aug 3, 2012 6:27 AM   in reply to TimRuiters

    I'll second Brian's question. THought it would have been as simple as that too.. but alas it isn't.


    Come to think of it, it actually makes sense that it doesn't work. I'd imagine you'd have to somehow let AIR know to tell iOs how many textifleds there are.. iOs in return will dispatch events to AIR who will then let Flash know that the Next or Previous button has been clicked...


    I'll dig around some more to see if I can find an aswer and will post back here if I'm in luck.

    Mark as:
  • Currently Being Moderated
    Aug 3, 2012 6:33 AM   in reply to RiaanP

    Hey RiaanP,


    I've had a little luck in this area, but it's nothing to get too excited over. Here's what I've done:

    1. Set tabEnabled & tabChildren to FALSE for my parent display object
    2. Add a KeyboardEvent.KEY_UP event listener to that same component
    3. In my event handler, check to see if event.keyCode == Keyboard.TAB || event.keyCode == 16777230 (16777230 is the Nook's "next" key's code)
    4. Ask FocusManager which component is currently focused (via getFocus())
    5. Manually call .setFocus() on the next item that should be focused


    This is obviously a little dirty but it's worked...okay...for me, for now. I hope you're able to find a better solution. If you do, please share it back here!



    Mark as:
  • Currently Being Moderated
    Aug 3, 2012 6:47 AM   in reply to RiaanP

    This seems like a good post that covers a lot of what is possible with the keyboard for both Android and iOs. w-soft-keyboard-features-sample-w-source/


    It doesn't look like the native Next and Previous buttons work though. You may be able to coax the Return key into being the Tab key though!

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points