mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-12-07 06:14:24 +00:00
slider: implemented option "noKeyboard" to disable keyboard controls.
This commit is contained in:
parent
956656bc2a
commit
320e7a560d
@ -111,7 +111,7 @@
|
|||||||
.parent()
|
.parent()
|
||||||
.bind('focus', function(e) { self.focus(this.firstChild); })
|
.bind('focus', function(e) { self.focus(this.firstChild); })
|
||||||
.bind('blur', function(e) { self.blur(this.firstChild); })
|
.bind('blur', function(e) { self.blur(this.firstChild); })
|
||||||
.bind('keydown', function(e) { self.keydown(e.keyCode, this.firstChild); })
|
.bind('keydown', function(e) { if(!self.options.noKeyboard) self.keydown(e.keyCode, this.firstChild); })
|
||||||
;
|
;
|
||||||
|
|
||||||
// Bind the click to the slider itself
|
// Bind the click to the slider itself
|
||||||
@ -410,7 +410,7 @@
|
|||||||
x: Math.round(this.convertValue(x, "x")) || 0,
|
x: Math.round(this.convertValue(x, "x")) || 0,
|
||||||
y: Math.round(this.convertValue(y, "y")) || 0
|
y: Math.round(this.convertValue(y, "y")) || 0
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!noPropagation) {
|
if (!noPropagation) {
|
||||||
this.propagate('start', null);
|
this.propagate('start', null);
|
||||||
this.propagate('stop', null);
|
this.propagate('stop', null);
|
||||||
|
Loading…
Reference in New Issue
Block a user