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

This commit is contained in:
Paul Bakaus 2008-05-31 14:34:44 +00:00
parent 956656bc2a
commit 320e7a560d

View File

@ -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