]> granicus.if.org Git - handbrake/commitdiff
WinGui: Remap Ctrl-S to Open Destination Save Dialog. Start Encode is now Ctrl...
authorsr55 <sr55.hb@outlook.com>
Fri, 3 Aug 2018 21:30:34 +0000 (22:30 +0100)
committersr55 <sr55.hb@outlook.com>
Fri, 3 Aug 2018 21:30:34 +0000 (22:30 +0100)
win/CS/HandBrakeWPF/Commands/ProcessShortcutCommand.cs
win/CS/HandBrakeWPF/ViewModels/Interfaces/IMainViewModel.cs
win/CS/HandBrakeWPF/Views/ShellView.xaml.cs

index 5c7eb547b9ffc383f8e9897b1cd968c7fdf1a2be..064b6fe51044536e3785ef9f115c82109b1bf0ff 100644 (file)
@@ -48,8 +48,8 @@ namespace HandBrakeWPF.Commands
             {\r
                 IMainViewModel mainViewModel = IoC.Get<IMainViewModel>();\r
                 \r
-                // Start Encode (Ctrl+S)\r
-                if (gesture.Modifiers == ModifierKeys.Control && gesture.Key == Key.S)\r
+                // Start Encode (Ctrl+E)\r
+                if (gesture.Modifiers == ModifierKeys.Control && gesture.Key == Key.E)\r
                 {\r
                     mainViewModel.StartEncode();\r
                 }\r
@@ -102,6 +102,12 @@ namespace HandBrakeWPF.Commands
                     mainViewModel.LaunchHelp();\r
                 }\r
 \r
+                // Browse Destination (Ctrl+S)\r
+                if (gesture.Modifiers == ModifierKeys.Control && gesture.Key == Key.S)\r
+                {\r
+                    mainViewModel.BrowseDestination();\r
+                }\r
+\r
                 // Tabs\r
                 if (gesture.Modifiers == ModifierKeys.Control && gesture.Key == Key.D1)\r
                 {\r
index 6b02a9a467c9423f2ef98856fad175b03882b46d..b4156752ee128690a33ad831272ae9d54a33fd44 100644 (file)
@@ -118,5 +118,10 @@ namespace HandBrakeWPF.ViewModels.Interfaces
         /// </summary>\r
         /// <param name="i">The Tab Number</param>\r
         void SwitchTab(int i);\r
+\r
+        /// <summary>\r
+        /// Browse for and set a destination file.\r
+        /// </summary>\r
+        void BrowseDestination();\r
     }\r
 }
\ No newline at end of file
index c5c632c9f0e968b87463ad2eb80ea86dcaefdd8d..6c4ca4b69a8a81bbf609be19ba5d09a13f6b9302 100644 (file)
@@ -65,7 +65,7 @@ namespace HandBrakeWPF.Views
                 this.StateChanged += this.ShellViewStateChanged;\r
             }\r
 \r
-            this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.S, ModifierKeys.Control)), new KeyGesture(Key.S, ModifierKeys.Control))); // Start Encode\r
+            this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.E, ModifierKeys.Control)), new KeyGesture(Key.E, ModifierKeys.Control))); // Start Encode\r
             this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.K, ModifierKeys.Control)), new KeyGesture(Key.K, ModifierKeys.Control))); // Stop Encode\r
             this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.L, ModifierKeys.Control)), new KeyGesture(Key.L, ModifierKeys.Control))); // Open Log Window\r
             this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.Q, ModifierKeys.Control)), new KeyGesture(Key.Q, ModifierKeys.Control))); // Open Queue Window\r
@@ -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\r
             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\r
             this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.F1, ModifierKeys.None)), new KeyGesture(Key.F1, ModifierKeys.None))); // Help\r
-\r
+            this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.S, ModifierKeys.Control)), new KeyGesture(Key.S, ModifierKeys.Control))); // Browse Destination\r
 \r
             // Tabs Switching\r
             this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.D1, ModifierKeys.Control)), new KeyGesture(Key.D1, ModifierKeys.Control))); \r