prevent focus to stay on disabled buttons - then keyboard navigation will not work
authorgc <gc>
Mon, 19 May 2008 22:03:57 +0000 (22:03 +0000)
committergc <gc>
Mon, 19 May 2008 22:03:57 +0000 (22:03 +0000)
data/booh/themes/dark/root/booh.js
data/booh/themes/sbs/root/booh.js
data/booh/themes/simple/root/booh.js

index c9fdef692a658b18c6beb827b6723943b307b02d..faa3cb3a94ab3b9f76cf7ac7ae35942efce74f99 100644 (file)
@@ -167,6 +167,8 @@ function init() {
 
 function update_sensibilities() {
     if (current == 0) {
+        // prevent focus to stay on disabled buttons - then keyboard navigation won't work
+        document.getElementById('thumbnails').focus();
         document.getElementById("b_first").disabled = true;
         document.getElementById("b_previous").disabled = true;
         document.getElementById("b_first").setAttribute("class", "disabled");
@@ -179,6 +181,8 @@ function update_sensibilities() {
     }
 
     if (current == images.length - 1) {
+        // prevent focus to stay on disabled buttons - then keyboard navigation won't work
+        document.getElementById('thumbnails').focus();
         document.getElementById("b_next").disabled = true;
         document.getElementById("b_last").disabled = true;
         document.getElementById("b_next").setAttribute("class", "disabled");
index c9fdef692a658b18c6beb827b6723943b307b02d..faa3cb3a94ab3b9f76cf7ac7ae35942efce74f99 100644 (file)
@@ -167,6 +167,8 @@ function init() {
 
 function update_sensibilities() {
     if (current == 0) {
+        // prevent focus to stay on disabled buttons - then keyboard navigation won't work
+        document.getElementById('thumbnails').focus();
         document.getElementById("b_first").disabled = true;
         document.getElementById("b_previous").disabled = true;
         document.getElementById("b_first").setAttribute("class", "disabled");
@@ -179,6 +181,8 @@ function update_sensibilities() {
     }
 
     if (current == images.length - 1) {
+        // prevent focus to stay on disabled buttons - then keyboard navigation won't work
+        document.getElementById('thumbnails').focus();
         document.getElementById("b_next").disabled = true;
         document.getElementById("b_last").disabled = true;
         document.getElementById("b_next").setAttribute("class", "disabled");
index c9fdef692a658b18c6beb827b6723943b307b02d..faa3cb3a94ab3b9f76cf7ac7ae35942efce74f99 100644 (file)
@@ -167,6 +167,8 @@ function init() {
 
 function update_sensibilities() {
     if (current == 0) {
+        // prevent focus to stay on disabled buttons - then keyboard navigation won't work
+        document.getElementById('thumbnails').focus();
         document.getElementById("b_first").disabled = true;
         document.getElementById("b_previous").disabled = true;
         document.getElementById("b_first").setAttribute("class", "disabled");
@@ -179,6 +181,8 @@ function update_sensibilities() {
     }
 
     if (current == images.length - 1) {
+        // prevent focus to stay on disabled buttons - then keyboard navigation won't work
+        document.getElementById('thumbnails').focus();
         document.getElementById("b_next").disabled = true;
         document.getElementById("b_last").disabled = true;
         document.getElementById("b_next").setAttribute("class", "disabled");