Browse Source

Changed Zoom Tool zoom out key to ctrl

CPKreuz 4 years ago
parent
commit
0f7f8c8e5c

+ 2 - 1
PixiEditor/Models/Tools/Tools/MoveViewportTool.cs

@@ -32,7 +32,8 @@ namespace PixiEditor.Models.Tools.Tools
         }
 
         public override void Use(List<Coordinates> pixels)
-        {
+        {
+            // Implemented inside Zoombox.xaml.cs
         }
     }
 }

+ 5 - 4
PixiEditor/Models/Tools/Tools/ZoomTool.cs

@@ -20,22 +20,23 @@ namespace PixiEditor.Models.Tools.Tools
 
         public override void OnKeyDown(KeyEventArgs e)
         {
-            if (e.Key == Key.LeftAlt)
+            if (e.Key == Key.LeftCtrl)
             {
-                ActionDisplay = "Click and move to zoom. Click to zoom out, release alt and click to zoom in.";
+                ActionDisplay = "Click and move to zoom. Click to zoom out, release ctrl and click to zoom in.";
             }
         }
 
         public override void OnKeyUp(KeyEventArgs e)
         {
-            if (e.Key == Key.LeftAlt)
+            if (e.Key == Key.LeftCtrl)
             {
-                ActionDisplay = "Click and move to zoom. Click to zoom in, hold alt and click to zoom out.";
+                ActionDisplay = "Click and move to zoom. Click to zoom in, hold ctrl and click to zoom out.";
             }
         }
 
         public override void Use(List<Coordinates> pixels)
         {
+            // Implemented inside Zoombox.xaml.cs
         }
     }
 }

+ 1 - 1
PixiEditor/Views/UserControls/Zoombox.xaml.cs

@@ -285,7 +285,7 @@ namespace PixiEditor.Views.UserControls
             else
             {
                 if (ZoomMode == Mode.ZoomTool && e.ChangedButton == MouseButton.Left)
-                    ZoomInto(e.GetPosition(mainCanvas), Keyboard.IsKeyDown(Key.LeftAlt) ? -1 : 1);
+                    ZoomInto(e.GetPosition(mainCanvas), Keyboard.IsKeyDown(Key.LeftCtrl) ? -1 : 1);
             }
             activeMouseDownEventArgs = null;
         }