PDA

View Full Version : Combobox does not forward key code on key up/down.


mbh
04-05-2004, 09:45 AM
On key up/down, the combobox class passes the event up to the component level so that subclassers can catch it. However, it does not send the key code as an argument, so catching the event is of limited value. Is this a bug?

I looked at the code for combobox, and it seems like where you currently have:

<method event="onkeyup">
if ( classroot['onkeyup'] ) classroot.onkeyup.sendEvent();
</method>

should instead read:

<method event="onkeyup" args="key">
if ( classroot['onkeyup'] ) classroot.onkeyup.sendEvent(key);
</method>

Thanks,
Brent

metasarah
04-05-2004, 10:02 AM
yes, that's a bug. You can go ahead and fix it in the components source that you have. I'll fix it in our sources for a future release.

mbh
04-05-2004, 11:44 AM
Thanks, there are two places where the keyup/down events are propagated: one for the editable combobox and one for when it's acts as a list box. I am also pushing up key events from the floating list, if you would like to do this as well.

Regards,
Brent