diff options
author | sr55 <[email protected]> | 2018-08-03 22:30:34 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-08-03 22:30:34 +0100 |
commit | 0112d19c252ebebd7f2882f16ca344d90b3d6fd5 (patch) | |
tree | 2fe13cc184d9815e1209d35000a4798b20a08077 /win | |
parent | f7f371894f7ad50a7f5ec1cfa0f9d78ef49a4401 (diff) |
WinGui: Remap Ctrl-S to Open Destination Save Dialog. Start Encode is now Ctrl-E instead. (Makes more sense this way)
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrakeWPF/Commands/ProcessShortcutCommand.cs | 10 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/Interfaces/IMainViewModel.cs | 5 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/ShellView.xaml.cs | 4 |
3 files changed, 15 insertions, 4 deletions
diff --git a/win/CS/HandBrakeWPF/Commands/ProcessShortcutCommand.cs b/win/CS/HandBrakeWPF/Commands/ProcessShortcutCommand.cs index 5c7eb547b..064b6fe51 100644 --- a/win/CS/HandBrakeWPF/Commands/ProcessShortcutCommand.cs +++ b/win/CS/HandBrakeWPF/Commands/ProcessShortcutCommand.cs @@ -48,8 +48,8 @@ namespace HandBrakeWPF.Commands {
IMainViewModel mainViewModel = IoC.Get<IMainViewModel>();
- // Start Encode (Ctrl+S)
- if (gesture.Modifiers == ModifierKeys.Control && gesture.Key == Key.S)
+ // Start Encode (Ctrl+E)
+ if (gesture.Modifiers == ModifierKeys.Control && gesture.Key == Key.E)
{
mainViewModel.StartEncode();
}
@@ -102,6 +102,12 @@ namespace HandBrakeWPF.Commands mainViewModel.LaunchHelp();
}
+ // Browse Destination (Ctrl+S)
+ if (gesture.Modifiers == ModifierKeys.Control && gesture.Key == Key.S)
+ {
+ mainViewModel.BrowseDestination();
+ }
+
// Tabs
if (gesture.Modifiers == ModifierKeys.Control && gesture.Key == Key.D1)
{
diff --git a/win/CS/HandBrakeWPF/ViewModels/Interfaces/IMainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/Interfaces/IMainViewModel.cs index 6b02a9a46..b4156752e 100644 --- a/win/CS/HandBrakeWPF/ViewModels/Interfaces/IMainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/Interfaces/IMainViewModel.cs @@ -118,5 +118,10 @@ namespace HandBrakeWPF.ViewModels.Interfaces /// </summary>
/// <param name="i">The Tab Number</param>
void SwitchTab(int i);
+
+ /// <summary>
+ /// Browse for and set a destination file.
+ /// </summary>
+ void BrowseDestination();
}
}
\ No newline at end of file diff --git a/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs b/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs index c5c632c9f..6c4ca4b69 100644 --- a/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs +++ b/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs @@ -65,7 +65,7 @@ namespace HandBrakeWPF.Views this.StateChanged += this.ShellViewStateChanged;
}
- this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.S, ModifierKeys.Control)), new KeyGesture(Key.S, ModifierKeys.Control))); // Start Encode
+ this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.E, ModifierKeys.Control)), new KeyGesture(Key.E, ModifierKeys.Control))); // Start Encode
this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.K, ModifierKeys.Control)), new KeyGesture(Key.K, ModifierKeys.Control))); // Stop Encode
this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.L, ModifierKeys.Control)), new KeyGesture(Key.L, ModifierKeys.Control))); // Open Log Window
this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.Q, ModifierKeys.Control)), new KeyGesture(Key.Q, ModifierKeys.Control))); // Open Queue Window
@@ -75,7 +75,7 @@ namespace HandBrakeWPF.Views this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.O, ModifierKeys.Control | ModifierKeys.Shift)), new KeyGesture(Key.O, ModifierKeys.Control | ModifierKeys.Shift))); // Scan a Folder
this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.G, ModifierKeys.Control | ModifierKeys.Shift)), new KeyGesture(Key.G, ModifierKeys.Control | ModifierKeys.Shift))); // Garbage Colleciton
this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.F1, ModifierKeys.None)), new KeyGesture(Key.F1, ModifierKeys.None))); // Help
-
+ this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.S, ModifierKeys.Control)), new KeyGesture(Key.S, ModifierKeys.Control))); // Browse Destination
// Tabs Switching
this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.D1, ModifierKeys.Control)), new KeyGesture(Key.D1, ModifierKeys.Control)));
|