PDA

View Full Version : How to trigger TAB ?


fx.barrett
02-15-2009, 11:12 AM
What I'm trying to do is trigger the "TAB key down event" from a different key than Tab. ie: when I want to tab trough 2 TextInput fields then instead of hitting the Tab key I would want to hit the Enter key.

I want to know if there's any "easy way" to do this or I have to implement the behavior manually... Any ideas appreciated.

Peter Cowling
02-16-2009, 11:55 AM
Hi,

I do not think there is one answer to this question.

If you are using a datagrid, small enough to fit on a single screen, this could be reasonably straightforward - listen to the enter key being pressed, and manage the focus through something like setFocusedCell; disable tab inputs if you need/want to.

However, if you have a composite view, and you want to tab down through a scrollbar (i.e. viewport approach), things would become considerably more complicated...