mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-17 01:21:14 +08:00
This commit is contained in:
parent
2b61616d06
commit
3204156c74
@ -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 (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);
|
deleteRow(protyle, range, cellElement, nodeElement);
|
||||||
}
|
}
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user