From 320e7a560de4c80e1163e5e6afe8e7fc8fa49a3e Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Sat, 31 May 2008 14:34:44 +0000 Subject: [PATCH] slider: implemented option "noKeyboard" to disable keyboard controls. --- ui/source/ui.slider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/source/ui.slider.js b/ui/source/ui.slider.js index 5d2d60cde..e18fb4756 100644 --- a/ui/source/ui.slider.js +++ b/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);