Skip to content
Permalink
Browse files

Fixes #3342, prevents bubbling (and default key behaviour) for slider…

… based key events.
  • Loading branch information...
dbolter committed Sep 11, 2008
1 parent a681cd9 commit bb84cbf7fd345d8bf37f637604e607db4ce772a7
Showing with 3 additions and 1 deletion.
  1. +3 −1 ui/ui.slider.js
@@ -113,7 +113,7 @@ $.widget("ui.slider", {
.parent()
.bind('focus', function(e) { self._focus(this.firstChild); })
.bind('blur', function(e) { self._blur(this.firstChild); })
.bind('keydown', function(e) { if(!self.options.noKeyboard) self._keydown(e.keyCode, this.firstChild); })
.bind('keydown', function(e) { if(!self.options.noKeyboard) return self._keydown(e.keyCode, this.firstChild); })
;

// Bind the click to the slider itself
@@ -173,7 +173,9 @@ $.widget("ui.slider", {
x: xpos,
y: ypos
}, handle);
return false;
}
return true;
},
_focus: function(handle,hard) {
this.currentHandle = $(handle).addClass('ui-slider-handle-active');

0 comments on commit bb84cbf

Please sign in to comment.
You can’t perform that action at this time.