diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/QueueSelectionView.xaml.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/QueueSelectionView.xaml.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Views/QueueSelectionView.xaml.cs b/win/CS/HandBrakeWPF/Views/QueueSelectionView.xaml.cs index 553c7201f..dd0ee00d4 100644 --- a/win/CS/HandBrakeWPF/Views/QueueSelectionView.xaml.cs +++ b/win/CS/HandBrakeWPF/Views/QueueSelectionView.xaml.cs @@ -10,6 +10,9 @@ namespace HandBrakeWPF.Views
{
using System.Windows;
+ using System.Windows.Input;
+
+ using HandBrakeWPF.Model;
/// <summary>
/// Interaction logic for QueueSelectionView.xaml
@@ -23,5 +26,17 @@ namespace HandBrakeWPF.Views {
InitializeComponent();
}
+
+ private void SelectionGrid_OnKeyDown(object sender, KeyEventArgs e)
+ {
+ if (e.Key == Key.Space && this.SelectionGrid.SelectedItems.Count == 1)
+ {
+ SelectionTitle title = this.SelectionGrid.SelectedItems[0] as SelectionTitle;
+ if (title != null)
+ {
+ title.IsSelected = !title.IsSelected;
+ }
+ }
+ }
}
}
|