Skip to content

Commit

Permalink
use single click to switch
Browse files Browse the repository at this point in the history
  • Loading branch information
acgq committed Jan 9, 2024
1 parent 2514799 commit f21e315
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 f21e315

Please sign in to comment.