Skip to content

Commit 23c8d10

Browse files
committed
fix for hot key
1 parent 93c343e commit 23c8d10

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SimpleStateMachineNodeEditor/View/MainWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
<Button x:Name="ButtonSaveAs" ToolTip="Save As... (Ctrl+Shift+S)" Style="{StaticResource StyleHeaderButton}" Background="{StaticResource ColorWindowHeader}" BorderBrush="{StaticResource ColorWindowHeaderButtonBackgroundMouseOver}">
117117
<Rectangle Fill="{StaticResource IconSaveAs}" Height="15" Width="15"/>
118118
</Button>
119-
<Button x:Name="ButtonExportToJPEG" ToolTip="Export To Jpeg... (Ctrl+Shift+Alt+J)" Style="{StaticResource StyleHeaderButton}" Background="{StaticResource ColorWindowHeader}" BorderBrush="{StaticResource ColorWindowHeaderButtonBackgroundMouseOver}">
119+
<Button x:Name="ButtonExportToJPEG" ToolTip="Export To JPEG.. (Ctrl+Shift+Alt+J)" Style="{StaticResource StyleHeaderButton}" Background="{StaticResource ColorWindowHeader}" BorderBrush="{StaticResource ColorWindowHeaderButtonBackgroundMouseOver}">
120120
<Rectangle Fill="{StaticResource IconExportScheme}" Height="15" Width="15"/>
121121
</Button>
122122
<Separator Grid.Column="5" Style="{DynamicResource TemplateSeparator}" Height="Auto" BorderThickness="0,0,1,0" />
@@ -217,6 +217,6 @@
217217
<KeyBinding x:Name="BindingOpen" Gesture="Ctrl+Shift+O" />
218218
<KeyBinding x:Name="BindingNew" Gesture="Ctrl+Shift+N"/>
219219
<KeyBinding x:Name="BindingExit" Gesture="Alt+F4"/>
220-
<!--<KeyBinding x:Name="BindingExportToJpeg" Key="F4" Modifiers="Alt"/>-->
220+
<KeyBinding x:Name="BindingExportToJPEG" Gesture="Ctrl+Shift+Alt+J"/>
221221
</Window.InputBindings>
222222
</Window>

SimpleStateMachineNodeEditor/View/MainWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ private void SetupBinding()
108108
this.BindCommand(this.ViewModel, x => x.NodesCanvas.CommandRedo, x => x.ItemRedo).DisposeWith(disposable);
109109
this.BindCommand(this.ViewModel, x => x.NodesCanvas.CommandRedo, x => x.ButtonRedo).DisposeWith(disposable);
110110

111-
112-
this.BindCommand(this.ViewModel, x => x.NodesCanvas.CommandExportToJPEG, x => x.ButtonExportToJPEG).DisposeWith(disposable);
111+
this.BindCommand(this.ViewModel, x => x.NodesCanvas.CommandExportToJPEG, x => x.BindingExportToJPEG).DisposeWith(disposable);
113112
this.BindCommand(this.ViewModel, x => x.NodesCanvas.CommandExportToJPEG, x => x.ItemExportToJPEG).DisposeWith(disposable);
113+
this.BindCommand(this.ViewModel, x => x.NodesCanvas.CommandExportToJPEG, x => x.ButtonExportToJPEG).DisposeWith(disposable);
114114

115115
this.BindCommand(this.ViewModel, x => x.NodesCanvas.CommandNew, x => x.BindingNew).DisposeWith(disposable);
116116
this.BindCommand(this.ViewModel, x => x.NodesCanvas.CommandNew, x => x.ItemNew).DisposeWith(disposable);

0 commit comments

Comments
 (0)