From 829ce5f3996acb7ea85f03c58cad1eb223725d1e Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Fri, 17 Oct 2008 12:06:16 +0000 Subject: [PATCH] Fixed slider responds to keypresses when disabled --- ui/ui.slider.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/ui.slider.js b/ui/ui.slider.js index d2338b5db..247d72452 100644 --- a/ui/ui.slider.js +++ b/ui/ui.slider.js @@ -155,6 +155,9 @@ $.widget("ui.slider", { }, _keydown: function(keyCode, handle) { + if (this.options.disabled) + return; + var k = keyCode; if(/(33|34|35|36|37|38|39|40)/.test(k)) { var o = this.options, xpos, ypos;