project: upgrade AvaloniaEdit

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2026-04-01 17:42:52 +08:00
parent 43827a5106
commit 6792614f20
2 changed files with 1 additions and 15 deletions

View File

@@ -6,7 +6,6 @@ using System.IO;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.Primitives;
using Avalonia.Input;
using Avalonia.Interactivity;
using Avalonia.Layout;
using Avalonia.Media;
@@ -274,19 +273,6 @@ namespace SourceGit.Views
}
}
protected override void OnKeyDown(KeyEventArgs e)
{
// Supports Ctrl+Insert for copy. (Doubao uses Ctrl+Insert to detect selection)
if (e.Key == Key.Insert && e.KeyModifiers == KeyModifiers.Control)
{
Copy();
e.Handled = true;
return;
}
base.OnKeyDown(e);
}
protected override void OnTextChanged(EventArgs e)
{
base.OnTextChanged(e);