Fixed slider responds to keypresses when disabled

This commit is contained in:
Richard Worth 2008-10-17 12:06:16 +00:00
parent 25ad531eb4
commit 829ce5f399

View File

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