From fc47f7701decaddc3f82265917ba1d0f41dc1719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Kaan=20K=C3=B6se?= Date: Sat, 24 Aug 2024 15:13:02 +0200 Subject: [PATCH] Always focus to first line on editor focus. --- Wino.Mail/Views/ComposePage.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wino.Mail/Views/ComposePage.xaml.cs b/Wino.Mail/Views/ComposePage.xaml.cs index 5b3338a0..effb6950 100644 --- a/Wino.Mail/Views/ComposePage.xaml.cs +++ b/Wino.Mail/Views/ComposePage.xaml.cs @@ -376,7 +376,7 @@ namespace Wino.Views /// Whether control itself should be focused as well or not. private async Task FocusEditorAsync(bool focusControlAsWell) { - await InvokeScriptSafeAsync("editor.selection.focus();"); + await InvokeScriptSafeAsync("editor.selection.setCursorIn(editor.editor.firstChild, true)"); if (focusControlAsWell) {