It seems as though CTRL + E and CTRL + R (at the very least) don't get handled in the same way as other keyboard combinations. The E and the R respectively aren't recognized.
The way I've been testing this is to create a form with a TextBox and Button, then add the following:
private void button1_Click(object sender, EventArgs e)
{
textBox1.ReadOnly = !textBox1.ReadOnly;
}
private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
bool ctrl = ModifierKeys == Keys.Control;
System.Diagnostics.Debug.WriteLine("Control pressed: " + e.Control + " Key pressed: " + e.KeyData + " Modifier Control pressed: " + ctrl);
}
When the TextBox is ReadOnly, only certain key combinations don't work. I added a context menu strip with an item for handling the desired keyboard combinations, but that interferes with the textbox's context menu (actually the DevEx spellchecker context menu I have associated with the TextBox)--it doesn't even display.
Does anyone know why or the best way to get around this? Thanks for any help you can give.