Skip to content

Commit

Permalink
Add Ctrl+I as a keyboard shortcut for "Add Interface" in Profile Editor
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueFinBima committed Dec 20, 2023
1 parent b77127d commit 3f2f228
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Profile Editor/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</MenuItem.Icon>
</MenuItem>
<Separator />
<MenuItem Header="_Add Interface" Command="local:ProfileEditorCommands.AddInterface">
<MenuItem Header="_Add Interface" Command="local:ProfileEditorCommands.AddInterface" InputGestureText="Ctrl+I">
<MenuItem.Icon>
<Label FontFamily="Segoe MDL2 Assets" FontSize="16" Margin="0" Padding="0" Content="&#xE710;"/>
</MenuItem.Icon>
Expand All @@ -86,28 +86,28 @@
</MenuItem>
</MenuItem>
<MenuItem Header="_Edit">
<MenuItem Header="_Undo" Command="ApplicationCommands.Undo">
<MenuItem Header="_Undo" Command="ApplicationCommands.Undo" InputGestureText="Ctrl+Z">
<MenuItem.Icon>
<Label FontFamily="Segoe MDL2 Assets" FontSize="16" Margin="0" Padding="0" Content="&#xE7A7;"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="_Redo" Command="ApplicationCommands.Redo">
<MenuItem Header="_Redo" Command="ApplicationCommands.Redo" InputGestureText="Ctrl+Y">
<MenuItem.Icon>
<Label FontFamily="Segoe MDL2 Assets" FontSize="16" Margin="0" Padding="0" Content="&#xE7A6;"/>
</MenuItem.Icon>
</MenuItem>
<Separator />
<MenuItem Header="Cu_t" Command="ApplicationCommands.Cut">
<MenuItem Header="Cu_t" Command="ApplicationCommands.Cut" InputGestureText="Ctrl+X">
<MenuItem.Icon>
<Label FontFamily="Segoe MDL2 Assets" FontSize="16" Margin="0" Padding="0" Content="&#xE8C6;"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="_Copy" Command="ApplicationCommands.Copy">
<MenuItem Header="_Copy" Command="ApplicationCommands.Copy" InputGestureText="Ctrl+C">
<MenuItem.Icon>
<Label FontFamily="Segoe MDL2 Assets" FontSize="16" Margin="0" Padding="0" Content="&#xE8C8;"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="_Paste" Command="ApplicationCommands.Paste">
<MenuItem Header="_Paste" Command="ApplicationCommands.Paste" InputGestureText="Ctrl+V">
<MenuItem.Icon>
<Label FontFamily="Segoe MDL2 Assets" FontSize="16" Margin="0" Padding="0" Content="&#xE77F;"/>
</MenuItem.Icon>
Expand Down
1 change: 1 addition & 0 deletions Profile Editor/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public MainWindow()
InitializeComponent();

ToolMenuItems = new ObservableCollection<MenuItemModel>();
ProfileEditorCommands.AddInterface.InputGestures.Add(new KeyGesture(Key.I, ModifierKeys.Control));
LoadTools();

DataContext = this;
Expand Down

0 comments on commit 3f2f228

Please sign in to comment.