From 903a3b9660a7ed3c93daa5c1e9d5be522a31fc94 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 7 Jan 2025 10:36:07 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20add=20`Ctrl+Enter/=E2=8C=98+Enter`?= =?UTF-8?q?=20hotkey=20to=20submit=20conventional=20commit=20(#874)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Views/ConventionalCommitMessageBuilder.axaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Views/ConventionalCommitMessageBuilder.axaml b/src/Views/ConventionalCommitMessageBuilder.axaml index 4fe8b8f9..71dc0639 100644 --- a/src/Views/ConventionalCommitMessageBuilder.axaml +++ b/src/Views/ConventionalCommitMessageBuilder.axaml @@ -133,6 +133,10 @@ Margin="0,8,0,16" HorizontalAlignment="Center" Content="{DynamicResource Text.Sure}" - Click="OnApplyClicked"/> + Click="OnApplyClicked" + HotKey="{OnPlatform Ctrl+Enter, macOS=⌘+Enter}" + ToolTip.Tip="{OnPlatform Ctrl+Enter, macOS=⌘+Enter}" + ToolTip.Placement="Top" + ToolTip.VerticalOffset="0"/>