PDA

View Full Version : Slider problem with keys incrementation



diablo
18 Jan 2011, 4:46 AM
Hi,

Having the following slider, the key navigation fails to move the potetiometer:


var slider = new Ext.slider.SingleSlider({ width: 200,
value: 50,
increment: 1,
keyIncrement :1 ,
decimalPrecision : 0,
minValue: 0,
maxValue: 255
);
...by debug, it seems that here the e.getKey() returns 'undefined' so charCode and keyCode are undefined...



onKeyDown : function(e){
if(this.disabled){e.preventDefault();return;}
var k = e.getKey();
switch(k){

Any ideas? Thanks.