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 masked text box take the focus
if ((LastMaskedTextBox != null) && (LastMaskedTextBox.CanFocus))
LastMaskedTextBox.MaskedTextBox.Focus();
return true;
}
}
}
return false;
}