Skip to content

Commit

Permalink
Merge branch 'use-single-click' into add-pinyin-search
Browse files Browse the repository at this point in the history
  • Loading branch information
acgq committed Feb 5, 2024
2 parents c5eb2e4 + f21e315 commit 6965088
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Switcheroo/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
<ListBox.ItemContainerStyle>
<Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource {x:Type ListBoxItem}}">
<Setter Property="Padding" Value="0,5" />
<EventSetter Event="MouseDoubleClick" Handler="ListBoxItem_MouseDoubleClick" />
<EventSetter Event="MouseLeftButtonUp" Handler="ListBoxItem_MouseSingleClick" />
</Style>
</ListBox.ItemContainerStyle>
<!-- Changes inactive selection color to be same as selected -->
Expand Down
2 changes: 1 addition & 1 deletion Switcheroo/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ private void OnEnterPressed(object sender, ExecutedRoutedEventArgs e)
e.Handled = true;
}

private void ListBoxItem_MouseDoubleClick(object sender, MouseButtonEventArgs e)
private void ListBoxItem_MouseSingleClick(object sender, MouseButtonEventArgs e)
{
Switch();
e.Handled = true;
Expand Down

0 comments on commit 6965088

Please sign in to comment.