Potential focus crashing on replying.

This commit is contained in:
Burak Kaan Köse
2026-04-18 01:38:11 +02:00
parent 85ac7e1330
commit 37e60bdd6e
@@ -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;
}