I have a couple of RadListBox controls on a page configured to use the Listbox\ Transfer functionality as outlined in
this Demo.
I have bound an "onkeypress" event to both listboxes in the code behind. Thus
lstFirstListBox.Attributes.Add("onkeypress", "filterListBox('" + lstFirstListBox.ClientID + "', event);");
lstSecondListBox.Attributes.Add("onkeypress", "filterListBox('" + lstSecondListBox.ClientID + "', event);");
similar to this
Forum Thread and the attached example.
The problem I have encountered is that the 'onkeypress" event does not fire in Firefox. It fires in IE without any problems.
However, it will fire in Firefox after I transfer an item from one listbox to the other. In this case it does not metter which listbox has focus the event is fired on 'FirstListBox" every time. That is, I transfer an item from First to Second and then perform a key press, it fires on First. I tranfer an item from Second to First and then perform a keypress, it fires on First.
For testing I have limited the "filterListBox" function to pop up an alert with the first parameter which, apart from in IE, is always the FirstListBox clientID.
I also tried binding the event using jQuery and got the exact same behaviour.
The event does seem to fire at all in Chrome or Safari no matter what combination of clicks or trickery I attempt.
Any ideas would be greatly appreciated.