瀏覽代碼

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

Vanessa 3 年之前
父節點
當前提交
3204156c74
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/src/protyle/util/table.ts

+ 2 - 1
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();