Skip to content
Permalink
Browse files

slider: implemented option "noKeyboard" to disable keyboard controls.

  • Loading branch information
Paul Bakaus
Paul Bakaus committed May 31, 2008
1 parent 956656b commit 320e7a560de4c80e1163e5e6afe8e7fc8fa49a3e
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/source/ui.slider.js
@@ -111,7 +111,7 @@
.parent()
.bind('focus', function(e) { self.focus(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
@@ -410,7 +410,7 @@
x: Math.round(this.convertValue(x, "x")) || 0,
y: Math.round(this.convertValue(y, "y")) || 0
};

if (!noPropagation) {
this.propagate('start', null);
this.propagate('stop', null);

0 comments on commit 320e7a5

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