PDA

View Full Version : comboBox.onSetFocus messes up comboBox?


wessness
03-07-2008, 04:05 PM
I noticed that if I to comboBox_name.onSetFocus the comboBox can't have things selected in it by hitting the first letter or number of the list items in it anymore. Like if I hit "C" on the keyboard it should go to California in a list of states. This naturally works fine in the comboBox component. But once I do the onSetFocus for it, that functionality quits working.

Here is my code for it.

state1.onSetFocus = function(){
_parent.help_txt = "<font size='-2' color='#0000FF'>Please select a state</font><br>";
_parent.error_box.text = _parent.help_txt + _parent.error_txt;
}


Anyone have any idea on why this stops the functionality of hitting a Key to select an item that starts with that letteror number?