Vanessa 2 роки тому
батько
коміт
fbf1b632ee

+ 2 - 0
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);
         }
     });
 };

+ 3 - 0
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) {