PavelTorgashov / FastColoredTextBox

Fast Colored TextBox for Syntax Highlighting. The text editor component for .NET.
Other
1.21k stars 463 forks source link

When text is typed or pasted over already selected text, the selected text is moved and new text is inserted #251

Closed vijaysridhara closed 1 year ago

vijaysridhara commented 1 year ago

When text is typed or pasted over already selected text, the selected text is moved and new text is inserted. The Delete key doesn't delete the selected text, even after I put the code "ClearSelected()". Why is this behavior and how can I get rid of it, so that the selected text is overwritten by typed or pasted text. I used FCTB in .NET Framework 6.0, VS 2022, where there are lot of CA1416 warnings indicating, this is only supported on Windows 7 or later. I am on Win 11 though! I also tried .NET 5.0, but no improvement

Sorry for this. This happened with a different Branch for 2.17, while the core PavelTorgashov one 2.16 worked fine.... you can close this bug