|
|
|
@ -94,6 +94,7 @@ namespace ICSharpCode.ILSpy.TextView
@@ -94,6 +94,7 @@ namespace ICSharpCode.ILSpy.TextView
|
|
|
|
|
textEditor.Options.RequireControlModifierForHyperlinkClick = false; |
|
|
|
|
textEditor.TextArea.TextView.MouseHover += TextViewMouseHover; |
|
|
|
|
textEditor.TextArea.TextView.MouseHoverStopped += TextViewMouseHoverStopped; |
|
|
|
|
textEditor.TextArea.TextView.MouseDown += TextViewMouseDown; |
|
|
|
|
textEditor.SetBinding(Control.FontFamilyProperty, new Binding { Source = DisplaySettingsPanel.CurrentDisplaySettings, Path = new PropertyPath("SelectedFont") }); |
|
|
|
|
textEditor.SetBinding(Control.FontSizeProperty, new Binding { Source = DisplaySettingsPanel.CurrentDisplaySettings, Path = new PropertyPath("SelectedFontSize") }); |
|
|
|
|
|
|
|
|
@ -582,6 +583,12 @@ namespace ICSharpCode.ILSpy.TextView
@@ -582,6 +583,12 @@ namespace ICSharpCode.ILSpy.TextView
|
|
|
|
|
MainWindow.Instance.JumpToReference(reference); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void TextViewMouseDown(object sender, MouseButtonEventArgs e) |
|
|
|
|
{ |
|
|
|
|
if (GetReferenceSegmentAtMousePosition() == null) |
|
|
|
|
ClearLocalReferenceMarks(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void ClearLocalReferenceMarks() |
|
|
|
|
{ |
|
|
|
|
foreach (var mark in localReferenceMarks) { |
|
|
|
|