dhtml combo box disable autocomplete feature causing problem

I am very happy to see dhtmlx working properly as far as i want autocomplete feature. But as i make the following changes

if (text!=data[1]){
// this.setComboText(data[1]);
// dhtmlXRange(this.DOMelem_input,text.length+1,data[1].length);
}

the autocomplete feature disbaled but the problem i am facing is appeared when i filter the options and when it reaches a option where is only one option appears the keydown effect won’t work and i can’t select the option by pressing the keydown.

SORRY FOR MY POOR ENGLISH

Instead of commenting mentioned lines, you can update code as

/* if (filter){
var text=this.getComboText();
if (text!=data[1]){
this.setComboText(data[1]);
dhtmlXRange(this.DOMelem_input,text.length+1,data[1].length);
}
}
else */
this.setComboText(data[1]);

In such case it will fully disable auto-complete, while preserving all other functionality