This commit is contained in:
@@ -190,7 +190,7 @@ namespace Volian.Controls.Library
|
||||
this.KeyUp += new KeyEventHandler(StepRTB_KeyUp);
|
||||
this.KeyDown += new KeyEventHandler(StepRTB_KeyDown);
|
||||
this.TextChanged += new EventHandler(StepRTB_TextChanged);
|
||||
//this.SelectionChanged += new EventHandler(DisplayRTB_SelectionChanged);
|
||||
this.SelectionChanged +=new EventHandler(StepRTB_SelectionChanged);
|
||||
}
|
||||
|
||||
void MyConfig_PropertyChanged(object sender, PropertyChangedEventArgs e)
|
||||
@@ -207,10 +207,11 @@ namespace Volian.Controls.Library
|
||||
MyLinkText = null;
|
||||
}
|
||||
}
|
||||
|
||||
public bool inRoAdd = false;
|
||||
void StepRTB_SelectionChanged(object sender, EventArgs e)
|
||||
{
|
||||
Console.WriteLine("SelectionStart {0}, SelectionLength {1}", SelectionStart, SelectionLength);
|
||||
if (inRoAdd)
|
||||
Console.WriteLine("SelectionStart {0}, SelectionLength {1}", SelectionStart, SelectionLength);
|
||||
if (!SelectionProtected && MyLinkText != null) MyLinkText = null;
|
||||
}
|
||||
#endregion
|
||||
|
Reference in New Issue
Block a user