Quote:
Originally Posted by Fortunis
SetWantsKeyEvents havnt been used
|
And that is likely the problem. Anything you want to respond to key events needs to call SetWantsKeyEvents(true).
so in the case of my original example, you would need to precede it with the following line for it to work:
Code:
self.SetWantsKeyEvents(true);
Otherwise, just like handling mouse events, or update events, if you don't call the appropriate "SetWants" function to set it to true- the event will never fire.