Details
Description
Currently, listbox supports tabindex only in select mold.
It could support tabbing order by placing tabindex on the hidden anchor.
For example,
workaround.zul
<zk xmlns:w="client"> <style> :focus { outline: 5px solid red !important; } </style> <vlayout> <button label="button" tabindex="1"/> <checkbox label="checkbox" tabindex="3"/> <listbox w:tabindex="2"> <attribute w:name="onBind"><![CDATA[ var anchor = this.$n('a'); anchor.tabIndex = this.tabindex; ]]></attribute> <listitem label="1"/> <listitem label="2"/> <listitem label="3"/> </listbox> </vlayout> </zk>
updated: should also add tab ordering support in Tree as well