ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupCheckBox.ProcessCmdKey C# (CSharp) Method

ProcessCmdKey() private method

private ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message
keyData Keys
return bool
        internal override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            // Only interested in key processing if this check box definition
            // is enabled and itself and all parents are also visible
            if (Enabled && ChainVisible)
            {
                // Do we have a shortcut definition for ourself?
                if (ShortcutKeys != Keys.None)
                {
                    // Does it match the incoming key combination?
                    if (ShortcutKeys == keyData)
                    {
                        PerformClick();
                        return true;
                    }
                }
            }

            return false;
        }