Browse Source

Added shortcut for Magic Wand (W)

CPKreuz 4 years ago
parent
commit
82dd397ed2

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

@@ -17,7 +17,6 @@ namespace PixiEditor.Models.Tools.Tools
     public class MagicWandTool : ReadonlyTool
     public class MagicWandTool : ReadonlyTool
     {
     {
         private readonly FloodFill floodFill;
         private readonly FloodFill floodFill;
-        private SelectionType previousSelectionType;
 
 
         private static Selection ActiveSelection { get => ViewModelMain.Current.BitmapManager.ActiveDocument.ActiveSelection; }
         private static Selection ActiveSelection { get => ViewModelMain.Current.BitmapManager.ActiveDocument.ActiveSelection; }
 
 
@@ -69,7 +68,7 @@ namespace PixiEditor.Models.Tools.Tools
 
 
             Toolbar = new MagicWandToolbar();
             Toolbar = new MagicWandToolbar();
 
 
-            Tooltip = "Magic Wand. Flood's the selection";
+            Tooltip = "Magic Wand (W). Flood's the selection";
             ActionDisplay = "Click to flood the selection.";
             ActionDisplay = "Click to flood the selection.";
         }
         }
 
 

+ 1 - 0
PixiEditor/ViewModels/ViewModelMain.cs

@@ -187,6 +187,7 @@ namespace PixiEditor.ViewModels
                         CreateToolShortcut<SelectTool>(Key.M, "Select Select Tool"),
                         CreateToolShortcut<SelectTool>(Key.M, "Select Select Tool"),
                         CreateToolShortcut<ZoomTool>(Key.Z, "Select Zoom Tool"),
                         CreateToolShortcut<ZoomTool>(Key.Z, "Select Zoom Tool"),
                         CreateToolShortcut<MoveViewportTool>(Key.H, "Select Viewport Move Tool"),
                         CreateToolShortcut<MoveViewportTool>(Key.H, "Select Viewport Move Tool"),
+                        CreateToolShortcut<MagicWandTool>(Key.W, "Select Magic Wand Tool"),
                         new Shortcut(Key.OemPlus, ViewportSubViewModel.ZoomCommand, "Zoom in", 1),
                         new Shortcut(Key.OemPlus, ViewportSubViewModel.ZoomCommand, "Zoom in", 1),
                         new Shortcut(Key.OemMinus, ViewportSubViewModel.ZoomCommand, "Zoom out", -1),
                         new Shortcut(Key.OemMinus, ViewportSubViewModel.ZoomCommand, "Zoom out", -1),
                         new Shortcut(Key.OemOpenBrackets, ToolsSubViewModel.ChangeToolSizeCommand, "Decrease Tool Size", -1),
                         new Shortcut(Key.OemOpenBrackets, ToolsSubViewModel.ChangeToolSizeCommand, "Decrease Tool Size", -1),