Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 列表回车后,左键全选无法选中

Vanessa59a966884bab
diff --git a/app/src/protyle/util/selection.ts b/app/src/protyle/util/selection.ts
index 361fa58e35..610754ed93 100644
--- a/app/src/protyle/util/selection.ts
+++ b/app/src/protyle/util/selection.ts
@@ -103,6 +103,8 @@ export const selectAll = (protyle: IProtyle, nodeElement: Element, range: Range)
lastChild = lastChild.lastChild as HTMLElement;
}
}
+ // 列表回车后,左键全选无法选中
+ focusByRange(range);
protyle.toolbar.render(protyle, range);
countSelectWord(range, protyle.block.rootID);
return true;