I have a page that contains several controls, (buttons, text box, combo box). I would like the focus to be toggled between the combo box and text box only. I created an invisible button and added the following code to it:
on (keypress "<Tab>"
{
if (Selection.getFocus() == "root.options"
{
Selection.setFocus("root.search"
;
} else if (Selection.getFocus() == "root.search"
{
Selection.setFocus("root.options"
;
}
}
When I try to toggle now, nothing happens. I think the above code works for text boxes, but how can I get the combo box to work as well. Any suggestions would be appreciated. Thanks!
on (keypress "<Tab>"
if (Selection.getFocus() == "root.options"
Selection.setFocus("root.search"
} else if (Selection.getFocus() == "root.search"
Selection.setFocus("root.options"
}
}
When I try to toggle now, nothing happens. I think the above code works for text boxes, but how can I get the combo box to work as well. Any suggestions would be appreciated. Thanks!