RichTextBox: Some of the delete behaviors for custom annotations are not working as expected
When custom annotations are created by inheriting AnnotationRangeStart and AnnotationRangeEnd classes, and the reaction to the delete commands is customized by overriding the DeleteBehavior, BackspaceBehavior, and DeleteSelectedBehavior, the delete command doesn't work as expected in some cases.
Examples:
CustomAnnotationRangeEnd.BackspaceBehavior returns AnnotationMarkerDeleteBehavior.SelectAnnotation: the expected behavior is the whole annotation range to be selected when the caret is just after the annotation range end and Backspace is pressed.
Expected: When the caret is just after the annotation range end and Backspace is pressed, the whole annotation range to be selected.