ComponentFactory.Krypton.Toolkit.VisualControlBase.ProcessCmdKey C# (CSharp) Method

ProcessCmdKey() protected method

Processes a command key.
protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message A Message, passed by reference, that represents the window message to process.
keyData Keys One of the Keys values that represents the key to process.
return bool
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            // If we have a defined context menu then need to check for matching shortcut
            if (KryptonContextMenu != null)
                if (KryptonContextMenu.ProcessShortcut(keyData))
                    return true;

            return base.ProcessCmdKey(ref msg, keyData);
        }