summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views/QueueSelectionView.xaml.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2018-05-16 21:35:44 +0100
committersr55 <[email protected]>2018-05-16 21:35:44 +0100
commit2054a421455b52ca060767c8cd544b16caacab96 (patch)
tree72fceff4143d0704a4f1bce19aa75a3b996bd845 /win/CS/HandBrakeWPF/Views/QueueSelectionView.xaml.cs
parent70151214eea4fa98eedbf796a6c749d14bf4909d (diff)
WinGui: Improved behaviour of the Add Selection to Queue Window. Can now be resized to full screen and also now supports spacebar selection once a record is selected to toggle the selection checkbox. Fixes #1341
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/QueueSelectionView.xaml.cs')
-rw-r--r--win/CS/HandBrakeWPF/Views/QueueSelectionView.xaml.cs15
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;
+ }
+ }
+ }
}
}