internal override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
// Only interested in key processing if this control 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)
{
// Can the rich text box take the focus
if ((LastRichTextBox != null) && (LastRichTextBox.CanFocus))
LastRichTextBox.RichTextBox.Focus();
return true;
}
}
}
return false;
}