// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // Interaction logic for QueueSelectionView.xaml // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrakeWPF.Views { using System.Windows; using System.Windows.Input; using HandBrakeWPF.Model; /// /// Interaction logic for QueueSelectionView.xaml /// public partial class QueueSelectionView : Window { /// /// Initializes a new instance of the class. /// public QueueSelectionView() { 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; } } } } }