Hello everybody, I'm currently struggling with the focus order when using the tab key within complex forms.
The form contains not only simple form widgets (text, button) but also more complex controls which have more then one tab able (focusable) widget. This are e.g. containers having a radio button and a text field or radio button groups with multiple radio buttons. In such a complex widget the ideal behaviour would be that on pressing the tab key the first sub widget should gain focus and then the second sub widget. On next tab key press the focus should go to the next widget outside the complex one (the container). My forms are based on qx.ui.form.Form and qx.ui.form.AbstractRenderer and similar to the qx.ui.form.renderer.Double which renders the widgets in two (or more) columns. Now I want to change the widget position tab order and have the focus jump in the first column top down and then in the second column top down. I've created a playground example (modified widget browser example) where I'm trying to set the tab index of the widgets (at the bottom of the code): http://tinyurl.com/cq8uln9 Setting the focus into the name field the tab order should be top down in the left column and after the gender radio button group the focus should continue to the password field. But after the Age field, the focus jumps to the password field. I think this does not work because I have to set the tabindex not to the radio group, but to each single radio button within the group. In the example this would be simple, but what about more complex widgets with multiple focusable subwidgets? Do I have to (manually) iterate through all subwidgets or child controls and assign a tabindex to them? Or is there something like setting the current tab/focus scope to a container where the focus order is calculated based only on the focusable widgets within this container? Any hints/informations would be great. Thank you. Regards. Dietrich ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
