Always focus to first line on editor focus.

This commit is contained in:
Burak Kaan Köse
2024-08-24 15:13:02 +02:00
parent 3e4ccf8de4
commit fc47f7701d

View File

@@ -376,7 +376,7 @@ namespace Wino.Views
/// <param name="focusControlAsWell">Whether control itself should be focused as well or not.</param>
private async Task FocusEditorAsync(bool focusControlAsWell)
{
await InvokeScriptSafeAsync("editor.selection.focus();");
await InvokeScriptSafeAsync("editor.selection.setCursorIn(editor.editor.firstChild, true)");
if (focusControlAsWell)
{