Skip to content

Commit

Permalink
Prevent the accidental mining that occurs when clicking on a reading …
Browse files Browse the repository at this point in the history
…on the reading selection window if it happens to be on top of another result's primary spelling
  • Loading branch information
rampaa committed Feb 11, 2024
1 parent 6b97df9 commit f1177c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion JL.Windows/GUI/ReadingSelectionWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ListView.ItemContainerStyle>
<Style TargetType="{x:Type ListViewItem}">
<Setter Property="Focusable" Value="False" />
<EventSetter Event="PreviewMouseLeftButtonDown" Handler="ReadingsListView_PreviewMouseLeftButtonDown" />
<EventSetter Event="PreviewMouseLeftButtonUp" Handler="ReadingsListView_PreviewMouseLeftButtonUp" />
</Style>
</ListView.ItemContainerStyle>
</ListView>
Expand Down
2 changes: 1 addition & 1 deletion JL.Windows/GUI/ReadingSelectionWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected override void OnActivated(EventArgs e)
}
}

private async void ReadingsListView_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
private async void ReadingsListView_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
string selectedReading = (string)((ListViewItem)sender).Content;
Hide();
Expand Down

0 comments on commit f1177c1

Please sign in to comment.