Posted 21 years ago
by Marianne
If adding the following code to the existing sample:
private void editor_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) {
if(e.KeyCode == Keys.Back)
Debug.WriteLine("Backspace");
}
It's purpose is clear, but when hitting 'Backspace' the event does not fire. If changing the key to a character or even an Fx function key, everything works as it should. It just seems that SyntaxEditor is eating the Backspace key. If adding a textbox control to the sample and setting the same event handler, everything works as expected.
Thanks.
Marianne
private void editor_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) {
if(e.KeyCode == Keys.Back)
Debug.WriteLine("Backspace");
}
It's purpose is clear, but when hitting 'Backspace' the event does not fire. If changing the key to a character or even an Fx function key, everything works as it should. It just seems that SyntaxEditor is eating the Backspace key. If adding a textbox control to the sample and setting the same event handler, everything works as expected.
Thanks.
Marianne
------------------------------- Marianne