BlockList's OnKeyDown event bug

Started by khann · 2009-05-30 02:50 UTC · 3 replies · SMF topic #780

Hi.
I've tested the BlockList OnKeyDown event.
After pressing the left, right, up, down arrow key,
the "dcl_blocklist_getcursel" returns the previous selitem value.
Mmm.
I'm not sure I understand the problem. If you press left/right/up/down, the current selection should end up where it started.
Hm,

If you press left/right/up/down, the current selection should end up where it started.


What will be given back by dcl_blocklist_getcursel within OnKeyUp?

Fred
Ah, I understand now. The problem is that the current selection does not change until *after* the OnKeyDown event. It seems strange that there is no OnSelectionChanged event for the block list; it should be added as a feature request.