Bug:
When I use the backspace key in RadRichTextEditor it causes visual artifacts to be left behind. It doesn't matter if I am deleting a selection or just one character. The artifacts disappear as soon as I press or click anything else (including pressing backspace again, on the KeyDown event).
See attached image.
Solution:
The control (or affected visual area) should be invalidated when the backspace key is pressed.
Hack:
I was able to eliminate all artifacts by overriding the KeyDown event and forcing the control to invalidate whenever the backspace key is pressed:
protected
override
void
OnKeyDown(System.Windows.Forms.KeyEventArgs e)
{
base
.OnKeyDown(e);
if
(e.KeyCode == System.Windows.Forms.Keys.Back)
{
Invalidate();
}
}