Исправленыы хоткеи
This commit is contained in:
@@ -403,6 +403,9 @@ public partial class EditorViewModel : ViewModelBase
|
||||
[RelayCommand]
|
||||
private void SelectSelectTool() { CancelPasteMode(); ActiveTool = ToolType.Select; }
|
||||
|
||||
[RelayCommand]
|
||||
private void ToggleGrid() => ShowGrid = !ShowGrid;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Selection + Copy/Paste (A4)
|
||||
|
||||
@@ -12,6 +12,16 @@
|
||||
Width="1024" Height="700"
|
||||
ToolTip.ShowDelay="400">
|
||||
|
||||
<Window.KeyBindings>
|
||||
<KeyBinding Gesture="Ctrl+N" Command="{Binding NewFileCommand}"/>
|
||||
<KeyBinding Gesture="Ctrl+O" Command="{Binding OpenFileCommand}"/>
|
||||
<KeyBinding Gesture="Ctrl+S" Command="{Binding SaveFileCommand}"/>
|
||||
<KeyBinding Gesture="Ctrl+Shift+S" Command="{Binding SaveFileAsCommand}"/>
|
||||
<KeyBinding Gesture="Ctrl+C" Command="{Binding Editor.CopySelectionCommand}"/>
|
||||
<KeyBinding Gesture="Ctrl+V" Command="{Binding Editor.PasteClipboardCommand}"/>
|
||||
<KeyBinding Gesture="Ctrl+G" Command="{Binding Editor.ToggleGridCommand}"/>
|
||||
</Window.KeyBindings>
|
||||
|
||||
<Design.DataContext>
|
||||
<vm:MainWindowViewModel/>
|
||||
</Design.DataContext>
|
||||
|
||||
Reference in New Issue
Block a user