Skip to content

Commit 4a51930

Browse files
committed
add shortcut for custom action Fixes #1637
1 parent 7d09af1 commit 4a51930

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Views/Hotkeys.axaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
FontSize="{Binding Source={x:Static vm:Preferences.Instance}, Path=DefaultFontSize, Converter={x:Static c:DoubleConverters.Increase}}"
8181
Margin="0,8"/>
8282

83-
<Grid RowDefinitions="20,20,20,20,20,20,20,20,20,20,20,20" ColumnDefinitions="150,*">
83+
<Grid RowDefinitions="20,20,20,20,20,20,20,20,20,20,20,20,20" ColumnDefinitions="150,*">
8484
<TextBlock Grid.Row="0" Grid.Column="0" Classes="primary bold" Text="{OnPlatform Ctrl+Shift+H, macOS=⌘+⇧+H}"/>
8585
<TextBlock Grid.Row="0" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.GoHome}" />
8686

@@ -116,6 +116,9 @@
116116

117117
<TextBlock Grid.Row="11" Grid.Column="0" Classes="primary bold" Text="F5"/>
118118
<TextBlock Grid.Row="11" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.Refresh}" />
119+
120+
<TextBlock Grid.Row="12" Grid.Column="0" Classes="primary bold" Text="F8"/>
121+
<TextBlock Grid.Row="12" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Repository.CustomActions}" />
119122
</Grid>
120123

121124
<TextBlock Text="{DynamicResource Text.Hotkeys.TextEditor}"

src/Views/RepositoryToolbar.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
<Path Width="14" Height="14" Data="{StaticResource Icons.Bisect}"/>
100100
</Button>
101101

102-
<Button Classes="icon_button" Width="32" Margin="8,0,0,0" Click="OpenCustomActionMenu" ToolTip.Tip="{DynamicResource Text.Repository.CustomActions}">
102+
<Button Classes="icon_button" Width="32" Margin="8,0,0,0" Click="OpenCustomActionMenu" HotKey="{OnPlatform F8}" ToolTip.Tip="{DynamicResource Text.Repository.CustomActions}">
103103
<Path Width="14" Height="14" Data="{StaticResource Icons.Action}"/>
104104
</Button>
105105

0 commit comments

Comments
 (0)