Get KEYDOWN - Events in Listboxes ?

BlitzMax Forums/BlitzMax Beginners Area/Get KEYDOWN - Events in Listboxes ?

Hello!

How is it possible (if at all) to capture keys pressed down while a listbox is active ?
I tried the SetGadgetFilter, without sucess ^^

Greetz,

Daniel

Try

SetGadgetSensitivity( ListBox1:TGadget,SENSITIZE_KEYS )

Works, thanks :-)

but there remains a little problem:
when there are two or more listboxes, EventSource() remains the same...
how can I get the active listbox ?

I guess I solved it by first getting the EventSource() and then asking if EVENT_KEYDOWN...