aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.slider.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-02-23 12:57:33 +0000
committerRichard Worth <rdworth@gmail.com>2009-02-23 12:57:33 +0000
commit639da64b3482fd717f76fb7d36e8d43d3b584945 (patch)
tree475b87a3bd0c3d14215ec72cd7d139f066a1e6b0 /ui/ui.slider.js
parent12d2b5e7203b468697087649484051fbbf971da7 (diff)
downloadjquery-ui-639da64b3482fd717f76fb7d36e8d43d3b584945.tar.gz
jquery-ui-639da64b3482fd717f76fb7d36e8d43d3b584945.zip
slider: only return false on handle keydown if one of arrow keys or pgup/down are pressed (otherwise tab is broken)
Diffstat (limited to 'ui/ui.slider.js')
-rw-r--r--ui/ui.slider.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/ui.slider.js b/ui/ui.slider.js
index ff7d1ce0c..05582e414 100644
--- a/ui/ui.slider.js
+++ b/ui/ui.slider.js
@@ -88,6 +88,8 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
this.handles.keydown(function(event) {
+ var ret = true;
+
var index = $(this).data("index.ui-slider-handle");
if (self.options.disabled)
@@ -100,6 +102,7 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
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 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
self._slide(event, index, newVal);
- return false;
+ return ret;
}).keyup(function(event) {