Always focus to first line on editor focus.
This commit is contained in:
@@ -376,7 +376,7 @@ namespace Wino.Views
|
|||||||
/// <param name="focusControlAsWell">Whether control itself should be focused as well or not.</param>
|
/// <param name="focusControlAsWell">Whether control itself should be focused as well or not.</param>
|
||||||
private async Task FocusEditorAsync(bool focusControlAsWell)
|
private async Task FocusEditorAsync(bool focusControlAsWell)
|
||||||
{
|
{
|
||||||
await InvokeScriptSafeAsync("editor.selection.focus();");
|
await InvokeScriptSafeAsync("editor.selection.setCursorIn(editor.editor.firstChild, true)");
|
||||||
|
|
||||||
if (focusControlAsWell)
|
if (focusControlAsWell)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user