diff --git a/app/src/mobile/util/showKeyboardToolbar.ts b/app/src/mobile/util/showKeyboardToolbar.ts index 78fd2adbb..6f0c4db21 100644 --- a/app/src/mobile/util/showKeyboardToolbar.ts +++ b/app/src/mobile/util/showKeyboardToolbar.ts @@ -85,8 +85,10 @@ export const initKeyboardToolbar = () => { } if (type === "outdent") { listOutdent(protyle, [nodeElement.parentElement], range); + focusByRange(range); } else if (type === "indent") { listIndent(protyle, [nodeElement.parentElement], range); + focusByRange(range); } }); }; diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index 295491109..cb1ea3eba 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -621,6 +621,9 @@ export class Toolbar { if (wbrElement) { wbrElement.remove(); } + if (isMobile()) { + focusByRange(this.range); + } } public showFileAnnotationRef(protyle: IProtyle, refElement: HTMLElement) {