[v2.x] eventKeyButtonReleased not called with multilist


06-05-2010 18:12:45


I want to delete an entry in a multilist when i release the DELETE key.
To do this i plug a function on the KeyButtonReleased event of my mulitilist but when i release the key nothing appends. (the focused object is the listline.)
What is the natural way to do this?


(my version is 2.2)


06-05-2010 22:42:10

Well, event system was pretty weak in complex widgets in 2.* . You can't catch events from subwidgets (parts of complex widgets like multilist).
You should catch key pressed event in your keyPressed function (event from OIS or whatever you use) and check if your multilist have key focus then do some action.