Skip to content

Commit b8c51bd

Browse files
author
Sébastien Geiser
committed
Correction in TreeView Selection
1 parent b39f344 commit b8c51bd

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

CSharpRegexTools4Npp/Main.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ private enum LayeredWindowAttributesFlags : byte
6262
}
6363

6464
public static void OnNotification(ScNotification notification)
65-
{}
65+
{
66+
67+
}
6668

6769
internal static void CommandMenuInit()
6870
{

RegexDialog/RegExToolDialog.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@
413413
<Style TargetType="TreeViewItem">
414414
<Setter Property="IsExpanded" Value="{Binding IsExpanded, IsAsync=True}" />
415415
<Setter Property="IsSelected" Value="{Binding IsSelected}" />
416+
<EventSetter Event="MouseDown" Handler="TreeViewItem_MouseDown" />
416417
<EventSetter Event="MouseDoubleClick" Handler="TreeViewItem_MouseDoubleClick" />
417418
<EventSetter Event="KeyDown" Handler="TreeViewItem_KeyDown" />
418419
</Style>

RegexDialog/RegExToolDialog.xaml.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,6 @@ public RegExToolDialog()
168168
/// </summary>
169169
private void Init()
170170
{
171-
//var localDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
172-
173-
//CSScript.GlobalSettings.UseAlternativeCompiler = Path.Combine(localDir, "CSSRoslynProvider.dll");
174-
//CSScript.GlobalSettings.RoslynDir = Environment.ExpandEnvironmentVariables(@"%USERPROFILE%\.nuget\packages\Microsoft.Net.Compilers\2.2.0\tools");
175-
176171
// Initialisation des delegates de base
177172
GetText = () => string.Empty;
178173

@@ -927,6 +922,8 @@ private void MatchResultsTreeView_SelectedItemChanged(object sender, RoutedPrope
927922
SetPosition(0,0);
928923
}
929924

925+
e.Handled = true;
926+
930927
if(MatchResultsTreeView.SelectedValue != null)
931928
{
932929
if(MatchResultsTreeView.SelectedValue is RegexGroupResult)
@@ -1777,5 +1774,10 @@ private void RestoreLastMachesSelectionButton_Click(object sender, RoutedEventAr
17771774
}
17781775
catch { }
17791776
}
1777+
1778+
private void TreeViewItem_MouseDown(object sender, MouseButtonEventArgs e)
1779+
{
1780+
e.Handled = true;
1781+
}
17801782
}
17811783
}

0 commit comments

Comments
 (0)