protected override bool ProcessDialogKey(Keys keyData)
{
if (this.UseDefaultTabHandling || this.Parent == null || !(this.Parent is TaskPane))
{
return base.ProcessDialogKey(keyData);
}
Keys key = keyData & Keys.KeyCode;
if (key != Keys.Tab)
{
switch (key)
{
case Keys.Left:
case Keys.Up:
case Keys.Right:
case Keys.Down:
{
if (this.ProcessArrowKey(((key == Keys.Right) ? true : (key == Keys.Down))))
{
return true;
}
break;
}
}
return base.ProcessDialogKey(keyData);
}
if (key == Keys.Tab)
{
if (this.ProcessTabKey(((keyData & Keys.Shift) == Keys.None)))
{
return true;
}
}
return base.ProcessDialogKey(keyData);
}