-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I've a bandbox with one listbox inside and I need that when the user press UP or DOWN with the bandbox focused the listbox changes the selection, just like if the listbox was focused. How could I do this?
<bandbox> <bandpopup> <listbox id="list"/> </bandpopup> </bandbox>
I'm able to capture the onkeydown event on bandbox, but I couldn't pass this event to the listbox, something like this:
<bandbox action="onkeydown: #{list}.keydown(event)" ...
Anyone knows how could I do this?
Hi,
Yeah, but how could I capture the keys UP and DOWN from the bandbox? This is the problem.
What listener works for KeyEvent.UP and KeyEvent.DOWN?
Regards,
Felipe Cypriano
But the onCtrlKey event only works for window component. I'll have to wrap the bandbox in a window? Is that the only way?
Regards,
Felipe Cypriano
all ZK components shall support onCtrlKey event, you could register it on your bandbox directly.
/robbie
Thanks for the info robbie. I said that because in the wiki it's written that only window support onCtrlKey, someone should update it.
Regards,
Felipe Cypriano
updated, and thank u.
/robbie
Asked: 2009-05-18 14:01:27 +0800
Seen: 678 times
Last updated: May 25 '09