Sorry, I mean<br><br>--&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a onclick=&quot;drawertool.current_drawer.selectLibrary(&#39;{@id}&#39;);&quot;<br>--&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; onkeypress=&quot;if (event.keyCode != 9 ) drawertool.current_drawer.selectLibrary(&#39;{@id}&#39;);&quot;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class=&quot;kupu-libsource&quot; title=&quot;{title}&quot; style=&quot;&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:attribute name=&quot;id&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:value-of select=&quot;@id&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xsl:attribute&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:apply-templates select=&quot;icon&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span class=&quot;drawer-item-title&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:value-of select=&quot;title&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/span&gt;<br>--&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/a&gt;<br><br><div><span class="gmail_quote">2007/2/28, Diego Municio &lt;<a href="mailto:dmunicio@gmail.com">dmunicio@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
First, thanks for the reply.<br><br>My problem is that I would like to insert an image in kupu by only using the keyboard (for blind users) but I can&#39;t.<br><br>I don&#39;t know if this is a desired feature for Kupu or not but I believe that this default behaviour is not
<font size="2"> very &quot;Accessibility Compliant&quot;...<br></font><br>In kupu 1.4, buttons tabindex are rendered as &quot;-1&quot; so buttons are not getting focused with &#39;tab&#39; key, so if I have understood it would be nice not to have any &quot;tabindex&quot;. That&#39;s no problem, I could remove them by modifying kupu_wysiwyg_support .
<br><br>Also in librarydrawer, I couldn&#39;t access the &quot;Home&quot;, &quot;Recent items&quot; icons so I made this change in drawer.xsl<br>(changed the &#39;div&#39; to &#39;a&#39; and added onkeypress event)<br><br>

&nbsp;&nbsp;&nbsp; &lt;xsl:template match=&quot;library&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div onclick=&quot;drawertool.current_drawer.selectLibrary(&#39;{@id}&#39;);&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class=&quot;kupu-libsource&quot; title=&quot;{title}&quot; style=&quot;&quot;&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:attribute name=&quot;id&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:value-of select=&quot;@id&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xsl:attribute&gt;<br>----&gt;&nbsp; &nbsp;&nbsp;&nbsp; &lt;a onkeypress=&quot;if (event.keyCode != 9 ) 
drawertool.current_drawer.selectLibrary(&#39;{@id}&#39;);&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:apply-templates select=&quot;icon&quot;/&gt;<br>----&gt;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/a&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span class=&quot;drawer-item-title&quot;&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:value-of select=&quot;title&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/span&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/xsl:template&gt;<br><br><br>I could say the same with the &quot;collection|resources&quot; xsl:template in 
drawer.xsl. I couldn&#39;t select the folders which appear in the center of the drawer... so I added this xsl:attribute:<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:attribute name=&quot;onkeypress&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:choose&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:when<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; test=&quot;local-name()=&#39;collection&#39;&quot;&gt;if (event.keyCode != 9) drawertool.current_drawer.selectCollection(&#39;&lt;xsl:value-of select=&quot;@id&quot;/&gt;&#39;);&lt;/xsl:when&gt;
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:otherwise&gt;if (event.keyCode != 9) drawertool.current_drawer.selectItem(&#39;&lt;xsl:value-of select=&quot;@id&quot;/&gt;&#39;)&lt;/xsl:otherwise&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xsl:choose&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xsl:attribute&gt;<br><br>What do you think about that?<br>Any comments are welcome<br><br><div><span class="gmail_quote">2007/2/28, Duncan Booth &lt;<a href="mailto:duncan.booth@suttoncourtenay.org.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

duncan.booth@suttoncourtenay.org.uk</a>&gt;:</span><div><span class="e" id="q_111086e615d97fd7_1"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&quot;Diego Municio&quot; &lt;<a href="mailto:dmunicio@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
dmunicio@gmail.com</a>&gt; wrote:<br><br>&gt; I have seen that kupu 1.4 doesn&#39;t have tabindex...<br><br>Can you explain why an explicit tabindex would help you? A control which<br>has no explicit tabindex comes next in the order it appears in the html.
<br>A control which uses tabindex/next also comes next in the tabbing order.<br>The only time you should see a change is when the tab index is set to<br>something which isn&#39;t tabindex/next, e.g. when it gets set to 30000 for
<br>the search controls in the page header.<br><br>The problem is that unless you know a lot about the tabindex values used<br>for the other controls around you it is almost impossible to come up<br>with suitable values for tabindex.
<br><br>&gt;<br>&gt; Well I now that in earlier versions it had a tal:attributes=&quot;tabindex<br>&gt; tabindex&quot; statement for each button.<br>&gt; I wonder how can we access tabindex *object* defined in main_template,
<br>&gt; in order to set tal:attributes=&quot;tabindex tabindex/next|nothing&quot;<br>&gt; instead. I can access tabindex but I don&#39;t know why... Where is this<br>&gt; variable acquisition defined?<br>&gt;<br>&gt; I also know that global_defines defines a global tabindex variable but
<br>&gt; with pos=30000.. I couldn&#39;t find documentation about<br>&gt;<br>&gt; The problem with drawers is maybe harder. As far as I know,<br>&gt; librarydrawer renders its contents with a xslt transform, and in<br>&gt; 
drawer.xsl I cannot add tal sentences... such as<br>&gt; tal:atrributes=&quot;tabindex tabindex/next&quot;.<br><br>Well you could except that it is rendered as a separate template so<br>unless you know a magic number to start from you would only succeed in
<br>making the drawer controls appear somewhere suprising.<br><br>&gt;<br>&gt; Has anybody work on this? I need to improve kupu accessibility as much<br>&gt; as possible and I would like to contribute if my knowledge is enough..
<br>&gt;<br>If you could start by explaining why the default tabbing isn&#39;t a good<br>enough solution and what you would want to achieve by changing it.<br><br><br>_______________________________________________<br>kupu-dev mailing list
<br><a href="mailto:kupu-dev@codespeak.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">kupu-dev@codespeak.net</a><br><a href="http://codespeak.net/mailman/listinfo/kupu-dev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://codespeak.net/mailman/listinfo/kupu-dev</a><br></blockquote></span></div></div><br>
</blockquote></div><br>