Canguro.Controller.Grid.CardinalPointControl.ProcessDialogKey C# (CSharp) Method

ProcessDialogKey() protected method

protected ProcessDialogKey ( Keys keyData ) : bool
keyData Keys
return bool
        protected override bool ProcessDialogKey(Keys keyData)
        {
            if (keyData == Keys.Right || keyData == Keys.Tab)
            {
                value = (CardinalPoint)nextRight[(int)value];
                Invalidate();
                return true;
            }
            else if (keyData == Keys.Left)
            {
                value = (CardinalPoint)nextLeft[(int)value];
                Invalidate();
                return true;
            }
            else if (keyData == Keys.Up)
            {
                value = (CardinalPoint)nextUp[(int)value];
                Invalidate();
                return true;
            }
            else if (keyData == Keys.Down)
            {
                value = (CardinalPoint)nextDown[(int)value];
                Invalidate();
                return true;
            }
            else if (keyData == Keys.Enter)
            {
                EndEdit();
                editingControl.DropDown.Close(ToolStripDropDownCloseReason.ItemClicked);
                return true;
            }
            return base.ProcessDialogKey(keyData);
        }