R
Robe
Hi there,
I'm using a RichTextBox to create a custom editor, my class inherits from
it. I've set to false the property ShortcutsEnabled and I need to handle the
combination of keys Control + C. I've tried it in many ways using the
modifiers of the KeyEventArgs, using GetKeyboardState(), using GetKeyState()
in the RichEdit KeyDown event but it doesn’t work.
I think the problem is that when the user press both keys the event is not
fired for some reason, because if I check for the control key only it works
and the same for the C key but when both are pressed it doesn’t work.
Can someone explain me why this is happening?
How can I handle these keys combination?
Thank you in advance,
Robe.
I'm using a RichTextBox to create a custom editor, my class inherits from
it. I've set to false the property ShortcutsEnabled and I need to handle the
combination of keys Control + C. I've tried it in many ways using the
modifiers of the KeyEventArgs, using GetKeyboardState(), using GetKeyState()
in the RichEdit KeyDown event but it doesn’t work.
I think the problem is that when the user press both keys the event is not
fired for some reason, because if I check for the control key only it works
and the same for the C key but when both are pressed it doesn’t work.
Can someone explain me why this is happening?
How can I handle these keys combination?
Thank you in advance,
Robe.