2008-04-01, 07:54 AM
After handling the onKeyDown event in a popup, the onKeyDown event is fired in the main plugin class even though I'm not calling base.OnKeyDown. Is this intended behaviour or is there something I'm missing?
Code:
// Event handler in popup
public override bool OnKeyDown(KeyEventArgs e)
{
if (buttons[selectedButton].OnKeyDown(e))
{
if (buttons[selectedButton] == EpisodeUiList)
{
if (e.KeyValue == 38 || e.KeyValue == 40)
{
}
return true;
// Returns at this point but then the OnKeyDown(KeyEventArgs e) in the main plugin class is fired.
}
}
return base.OnKeyDown(e);
}