I have been playing with the dhtmlxcombo widget. Very cool thing …thanks … I have two usability improvements I would like to make, but I am not seeing clearly where this can be done:
a) when entering the combobox, the text in the combobox should be selected, so that when I type, it gets replaced by my new entries.
b) When I open the combo with the little arrow, then it should display the full list of entries as long as I have not started modifying the content.
any hints ?
a) when entering the combobox, the text in the combobox should be selected
dhtmlxcombo.js, line 931, _toggleSelect
dhtmlXCombo.prototype._toggleSelect = function(e)
{
var that=this.combo;
that.DOMelem_input.select(); // this line can be added
>>b) When I open the combo with the little arrow
There is no easy way to achieve such functionality, but still can be done
dhtmlxcombo.js, line 937, _toggleSelect
(e||event).cancelBubble = true;
//start of modification
var t=that.getComboText();
that.setComboText("")
that.filterSelf(); //filter as for empty combo
that.setComboText(t) //restore value
that.DOMelem_input.select();
//end of modification
}