📱 键盘收起

This commit is contained in:
Vanessa 2022-10-06 22:38:12 +08:00
parent bef40da746
commit fbf1b632ee
2 changed files with 5 additions and 0 deletions

View file

@ -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);
}
});
};

View file

@ -621,6 +621,9 @@ export class Toolbar {
if (wbrElement) {
wbrElement.remove();
}
if (isMobile()) {
focusByRange(this.range);
}
}
public showFileAnnotationRef(protyle: IProtyle, refElement: HTMLElement) {