Skip to content

Commit 4a8276f

Browse files
committed
feature: add hotkey Ctrl+N to open commit details panel in a seperate window (#2506)
Signed-off-by: leo <longshuang@msn.cn>
1 parent 06e2fdc commit 4a8276f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/Views/Histories.axaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,17 @@
397397
Padding="0"
398398
IsVisible="{Binding IsOpenAsStandaloneVisible, Mode=OneWay}"
399399
Click="OnOpenDetailsAsStandalone"
400-
ToolTip.Tip="{DynamicResource Text.HistoriesDetailsStandalone}">
400+
HotKey="{OnPlatform Ctrl+N, macOS=⌘+N}">
401+
<ToolTip.Tip>
402+
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
403+
<TextBlock Text="{DynamicResource Text.HistoriesDetailsStandalone}" VerticalAlignment="Center"/>
404+
<TextBlock Margin="16,0,0,0"
405+
Text="{OnPlatform Ctrl+N, macOS=⌘+N}"
406+
Foreground="{DynamicResource MenuFlyoutItemKeyboardAcceleratorTextForeground}"
407+
FontSize="11"
408+
VerticalAlignment="Center"/>
409+
</StackPanel>
410+
</ToolTip.Tip>
401411
<Path Width="15" Height="15" Margin="0,1,0,0" Data="{StaticResource Icons.OpenAsStandalone}"/>
402412
</Button>
403413

0 commit comments

Comments
 (0)