1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Mobile: Fixes #10237: Automatically set focus on title or body when creating a new note

This commit is contained in:
Laurent Cozic
2024-05-28 14:16:48 +01:00
parent 70c5448402
commit 2386f583e8
3 changed files with 34 additions and 18 deletions

View File

@@ -165,6 +165,10 @@ const useEditorControl = (
return bodyControl.execCommand(command, ...args);
},
focus() {
void bodyControl.execCommand(EditorCommandType.Focus);
},
undo() {
bodyControl.undo();
},