Hello, I just ran into this issue and it took me forever to figure it out. I figured I would post it here in the hopes of saving someone a headache.
I have created a custom control that contains a RadRichTextBox and a RadCommandBar
I dropped the custom control onto a new windows form along with several standard textboxes and labels
I added accelerator characters to the labels of the text boxes "&Company", "&Employee".
When I ran the form and began typing into the RadRichTextBox whenever I typed "c" or "e" (without pushing "Alt") the focus would move to the text boxes with the matching accelerator key.
To get around this I needed to add the following override in the custom control.
protected override bool ProcessDialogChar(char charCode)
{
if ((Control.ModifierKeys & Keys.Alt) == Keys.None) return false;
return base.ProcessDialogChar(charCode);
}
Hope that helps!
I have created a custom control that contains a RadRichTextBox and a RadCommandBar
I dropped the custom control onto a new windows form along with several standard textboxes and labels
I added accelerator characters to the labels of the text boxes "&Company", "&Employee".
When I ran the form and began typing into the RadRichTextBox whenever I typed "c" or "e" (without pushing "Alt") the focus would move to the text boxes with the matching accelerator key.
To get around this I needed to add the following override in the custom control.
protected override bool ProcessDialogChar(char charCode)
{
if ((Control.ModifierKeys & Keys.Alt) == Keys.None) return false;
return base.ProcessDialogChar(charCode);
}
Hope that helps!