Closed AlanBurkhart closed 5 years ago
OK my bad. Should have been using KeyPress instead of KeyDown. Sorry!
Also, if you'd like, you can revoke the natively assigned control character input via:
scintilla.AssignCmdKey(Keys.Control | Keys.Whatever, Command.Null);
The following quote is from the author of Scintilla himself:
Control characters are considered normal input unless assigned. Use SCI_ASSIGNCMDKEY to assign these keys to SCI_NULL.
Good information, thanks. In truth, I had KeyDown and KeyPress backwards. Once all was in proper order it worked fine.
I'm using CTRL + [key] to insert HTML tags with the KeyDown event. This works except that control character #2 appears at the end of the new text. It shows up as "STX". Code:
How to avoid this? Thanks.