103
103
public virtual bool WantsToPreemptIM {
110
return textEditorData.SelectionSurroundingProvider.GetSelectionSurroundings (textEditorData, unicodeKey, out start, out end);
107
113
protected void InsertCharacter (uint unicodeKey)
109
115
if (!textEditorData.CanEdit (Data.Caret.Line))
114
120
using (var undo = Document.OpenUndoGroup ()) {
115
126
textEditorData.DeleteSelectedText (
116
127
textEditorData.IsSomethingSelected ? textEditorData.MainSelection.SelectionMode != SelectionMode.Block : true);
117
128
// Needs to be called after delete text, delete text handles virtual caret postitions itself,