From 4ba7c879c5e892e903745cc1f07b328bf11cbcec Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 6 Aug 2024 10:04:08 +0800 Subject: [PATCH] feature: use `Ctrl+C` to copy selected commits in histories (#321) --- src/Views/Histories.axaml | 4 +++- src/Views/Histories.axaml.cs | 21 ++++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/Views/Histories.axaml b/src/Views/Histories.axaml index 63d4da95..510e4e6e 100644 --- a/src/Views/Histories.axaml +++ b/src/Views/Histories.axaml @@ -27,10 +27,12 @@ ColumnHeaderHeight="24" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" + ClipboardCopyMode="None" LayoutUpdated="OnCommitDataGridLayoutUpdated" SelectionChanged="OnCommitDataGridSelectionChanged" ContextRequested="OnCommitDataGridContextRequested" - DoubleTapped="OnCommitDataGridDoubleTapped"> + DoubleTapped="OnCommitDataGridDoubleTapped" + KeyDown="OnCommitDataGridKeyDown">