Hi,
        I am trying to handle the Key events for iuplist so that I can type
the name to quickly reach the list item. I am using it in dropdown mode.
     The default behavior of the list control seems to be to take just the
current key press and find a list item that begins with it.
      I want to accumulate what has been typed lets say if the gap between
keystrokes < 1sec and use that accumulated string to find the item in the
list and set the list value accordingly.
      I use k_any to do that and it seems the code in k_any is working
good. But the problem is that even if I return iup.IGNORE after I set my
value the list control still takes the keystroke and sets its own value!
    As a test case I take the standard list example and in the dropdown
list I attached a k_any callback which just return iup.IGNORE. However the
control still processes the keystrokes and sets the item according to it.
    Is this how it is supposed to work? If yes is there any way to
implement a larger word search in the list?

Thanks,
Milind

Attachment: list.lua
Description: Binary data

_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to