From 50228e98d9aa6fe1dbe557e2008218de48743384 Mon Sep 17 00:00:00 2001 From: Slavasil Date: Fri, 20 Feb 2026 21:49:00 +0300 Subject: [PATCH] fix double-click on an entry not working reliably --- src/KeyKeeper/Views/RepositoryWindow.axaml.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/KeyKeeper/Views/RepositoryWindow.axaml.cs b/src/KeyKeeper/Views/RepositoryWindow.axaml.cs index a552347..65da515 100644 --- a/src/KeyKeeper/Views/RepositoryWindow.axaml.cs +++ b/src/KeyKeeper/Views/RepositoryWindow.axaml.cs @@ -1,7 +1,9 @@ using System; using System.Threading.Tasks; +using Avalonia; using Avalonia.Controls; using Avalonia.Interactivity; +using Avalonia.Input; using KeyKeeper.PasswordStore; using KeyKeeper.ViewModels; @@ -44,11 +46,11 @@ public partial class RepositoryWindow: Window } } - private void Entry_DoubleTapped(object sender, RoutedEventArgs args) + private void Entry_DoubleTapped(object sender, TappedEventArgs args) { - if (args.Source is Border b) + if (args.Source is StyledElement s) { - if (b.DataContext is PassStoreEntryPassword pwd) + if (s.DataContext is PassStoreEntryPassword pwd) Clipboard!.SetTextAsync(pwd.Password.Value); } }