Skip to content

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

:bulb: https://github.com/siyuan-note/siyuan/issues/5045

Vanessa3204156c7465
diff --git a/app/src/protyle/util/table.ts b/app/src/protyle/util/table.ts
index 5b92eec957..e7a53b6c2a 100644
--- a/app/src/protyle/util/table.ts
+++ b/app/src/protyle/util/table.ts
@@ -576,7 +576,8 @@ export const fixTable = (protyle: IProtyle, event: KeyboardEvent, range: Range)
// 删除当前行
if (matchHotKey(window.siyuan.config.keymap.editor.table["delete-row"].custom, event)) {
- if ((!hasNone && !hasRowSpan) || (hasNone && !hasRowSpan && hasColSpan)) {
+ if ((!hasNone && !hasRowSpan) || //https://github.com/siyuan-note/siyuan/issues/5045
+ (hasNone && !hasRowSpan && hasColSpan)) {
deleteRow(protyle, range, cellElement, nodeElement);
}
event.preventDefault();