mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Fixes #3342, prevents bubbling (and default key behaviour) for slider based key events.
This commit is contained in:
parent
a681cd97c9
commit
bb84cbf7fd
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user