ComponentFactory.Krypton.Ribbon.QATExtraButtonController.KeyDownPopupOverflow C# (CSharp) Method

KeyDownPopupOverflow() private method

private KeyDownPopupOverflow ( VisualPopupQATOverflow c, KeyEventArgs e ) : void
c VisualPopupQATOverflow
e System.Windows.Forms.KeyEventArgs
return void
        private void KeyDownPopupOverflow(VisualPopupQATOverflow c, KeyEventArgs e)
        {
            switch (e.KeyData)
            {
                case Keys.Tab:
                case Keys.Right:
                    // Ask the popup to move to the next focus item
                    c.SetNextFocusItem();
                    break;
                case Keys.Tab | Keys.Shift:
                case Keys.Left:
                    // Ask the popup to move to the previous focus item
                    c.SetPreviousFocusItem();
                    break;
                case Keys.Space:
                case Keys.Enter:
                    // Change to a fixed pressed appearance
                    SetFixed();
                    UpdateTargetState();

                    // Generate a click event
                    OnClick(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0));

                    // Get access to the popup for the group
                    if (!VisualPopupManager.Singleton.IsShowingCMS &&
                        (VisualPopupManager.Singleton.CurrentPopup != null) &&
                        (VisualPopupManager.Singleton.CurrentPopup is VisualPopupQATOverflow))
                    {
                        // Cast to correct type
                        VisualPopupQATOverflow popupOverflow = (VisualPopupQATOverflow)VisualPopupManager.Singleton.CurrentPopup;
                        popupOverflow.SetFirstFocusItem();
                    }
                    break;
            }
        }