I'd like to catch Backspace keystroke. So I added Keydown event handler to owner of TextEditor class.
But when I type Backspace key, message box didn't appear. Delete key is the same.
Could any one tell me how to catch backspace keystroke?
void InitTextEditor()
{
editor.ActiveTextAreaControl.TextArea.KeyDown += new System.Windows.Forms.KeyEventHandler(this.editor_KeyDown);
}
private void editor_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Back)
{
MessageBox.Show("Backspace!!!");
}
}