Explorar el Código

Remove Exit shortcut

Remove the shortcut for the Exit (CloseWindow) Command.
Polar hace 5 años
padre
commit
6014642ad2
Se han modificado 2 ficheros con 1 adiciones y 2 borrados
  1. 0 1
      PixiEditor/ViewModels/ViewModelMain.cs
  2. 1 1
      PixiEditor/Views/MainWindow.xaml

+ 0 - 1
PixiEditor/ViewModels/ViewModelMain.cs

@@ -279,7 +279,6 @@ namespace PixiEditor.ViewModels
                     new Shortcut(Key.Delete, DeletePixelsCommand),
                     new Shortcut(Key.I, OpenResizePopupCommand, modifier: ModifierKeys.Control | ModifierKeys.Shift),
                     new Shortcut(Key.C, OpenResizePopupCommand, "canvas", ModifierKeys.Control | ModifierKeys.Shift),
-                    new Shortcut(Key.Q, SystemCommands.CloseWindowCommand, modifier: ModifierKeys.Control),
                     new Shortcut(Key.F11, SystemCommands.MaximizeWindowCommand),
                     //File
                     new Shortcut(Key.O, OpenFileCommand, modifier: ModifierKeys.Control),

+ 1 - 1
PixiEditor/Views/MainWindow.xaml

@@ -82,7 +82,7 @@
                     <MenuItem Header="_Save As..." InputGestureText="Ctrl+Shift+S"
                               Command="{Binding SaveDocumentCommand}" CommandParameter="AsNew" />
                     <MenuItem Header="_Export" InputGestureText="Ctrl+Shift+Alt+S" Command="{Binding ExportFileCommand}" />
-                    <MenuItem Header="_Exit" InputGestureText="Ctrl+Q" Command="{x:Static SystemCommands.CloseWindowCommand}" />
+                    <MenuItem Header="_Exit" Command="{x:Static SystemCommands.CloseWindowCommand}" />
                 </MenuItem>
                 <MenuItem Header="_Edit">
                     <MenuItem Header="_Undo" InputGestureText="Ctrl+Z" Command="{Binding UndoCommand}" />