ZForge.Controls.ExplorerBar.Expando.ProcessDialogKey C# (CSharp) Method

ProcessDialogKey() protected method

Processes a dialog key
protected ProcessDialogKey ( Keys keyData ) : bool
keyData Keys One of the Keys values that represents /// the key to process
return bool
        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);
        }