From 37e60bdd6ed3ccae3ff4f3f3bd21aee972e27673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Kaan=20K=C3=B6se?= Date: Sat, 18 Apr 2026 01:38:11 +0200 Subject: [PATCH] Potential focus crashing on replying. --- Wino.Mail.WinUI/Views/Mail/ComposePage.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Wino.Mail.WinUI/Views/Mail/ComposePage.xaml.cs b/Wino.Mail.WinUI/Views/Mail/ComposePage.xaml.cs index bd86c157..a8e01def 100644 --- a/Wino.Mail.WinUI/Views/Mail/ComposePage.xaml.cs +++ b/Wino.Mail.WinUI/Views/Mail/ComposePage.xaml.cs @@ -626,7 +626,7 @@ public sealed partial class ComposePage : ComposePageAbstract, { await WebViewEditor.FocusEditorAsync(true); - if (FocusManager.GetFocusedElement(XamlRoot) is WebView2) + if (FocusManager.GetFocusedElement() is WebView2) { return; } @@ -635,7 +635,7 @@ public sealed partial class ComposePage : ComposePageAbstract, { ToBox.Focus(FocusState.Programmatic); - if (FocusManager.GetFocusedElement(XamlRoot) == ToBox) + if (FocusManager.GetFocusedElement() == ToBox) { return; }