From 23bba05d7ddf44e99534acc8f177ac1e8d814988 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 10 Jun 2008 14:37:38 -0400
Subject: [PATCH] - allow tabindex in buttons and #1484171

---
 program/include/rcube_template.php   |    6 +++---
 skins/default/templates/compose.html |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index 2173784..0c0a921 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -760,7 +760,7 @@
                 array(
                     'style', 'class', 'id', 'width',
                     'height', 'border', 'hspace',
-                    'vspace', 'align', 'alt',
+                    'vspace', 'align', 'alt', 'tabindex'
                 )
             );
             $btn_content = sprintf('<img src="%s"%s />', $this->abs_url($attrib['image']), $attrib_str);
@@ -771,7 +771,7 @@
         }
         else if ($attrib['type']=='link') {
             $btn_content = $attrib['label'] ? $attrib['label'] : $attrib['command'];
-            $link_attrib = array('href', 'onclick', 'title', 'id', 'class', 'style');
+            $link_attrib = array('href', 'onclick', 'title', 'id', 'class', 'style', 'tabindex');
         }
         else if ($attrib['type']=='input') {
             $attrib['type'] = 'button';
@@ -784,7 +784,7 @@
                 $attrib,
                 array(
                     'type', 'value', 'onclick',
-                    'id', 'class', 'style'
+                    'id', 'class', 'style', 'tabindex'
                 )
             );
             $out = sprintf('<input%s disabled="disabled" />', $attrib_str);
diff --git a/skins/default/templates/compose.html b/skins/default/templates/compose.html
index 25a3ef9..a666bed 100644
--- a/skins/default/templates/compose.html
+++ b/skins/default/templates/compose.html
@@ -133,12 +133,12 @@
 <table border="0" cellspacing="0" width="100%" summary=""><tbody>
 <tr>
 <td>
-<roundcube:button type="input" command="send" class="button" label="sendmessage" />
-<roundcube:button type="input" command="list" class="button" label="cancel" />
+<roundcube:button type="input" command="send" class="button" label="sendmessage" tabindex="8" />
+<roundcube:button type="input" command="list" class="button" label="cancel" tabindex="9" />
 </td>
 <td align="right">
  <roundcube:label name="editortype" />:&nbsp;
- <span class="radios-left"><roundcube:object name="editorSelector" tabindex="9" /></span>
+ <span class="radios-left"><roundcube:object name="editorSelector" tabindex="10" /></span>
 </td>
 </tr>
 </tbody></table>

--
Gitblit v1.9.1