r2126 - trunk/ui

r2126 - trunk/ui


Author: rdworth
Date: Mon Feb 23 04:57:33 2009
New Revision: 2126
Modified:
trunk/ui/ui.slider.js
Log:
slider: only return false on handle keydown if one of arrow keys or
pgup/down are pressed (otherwise tab is broken)
Modified: trunk/ui/ui.slider.js
==============================================================================
--- trunk/ui/ui.slider.js    (original)
+++ trunk/ui/ui.slider.js    Mon Feb 23 04:57:33 2009
@@ -88,6 +88,8 @@
        this.handles.keydown(function(event) {
+            var ret = true;
+
            var index = $(this).data("index.ui-slider-handle");
            if (self.options.disabled)
@@ -100,6 +102,7 @@
                case $.ui.keyCode.RIGHT:
                case $.ui.keyCode.DOWN:
                case $.ui.keyCode.LEFT:
+                    ret = false;
                    if (!self._keySliding) {
                        self._keySliding = true;
                        $(this).addClass("ui-state-active");
@@ -136,7 +139,7 @@
            self._slide(event, index, newVal);
-            return false;
+            return ret;
        }).keyup(function(event) {