mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 09:18:49 +01:00
This commit is contained in:
parent
21acf690e7
commit
a9a453e144
1 changed files with 8 additions and 2 deletions
|
|
@ -95,7 +95,13 @@ export const avKeydown = (event: KeyboardEvent, nodeElement: HTMLElement, protyl
|
|||
cellScrollIntoView(nodeElement, newCellElement, false);
|
||||
} else if (event.key !== "ArrowRight") {
|
||||
clearSelect(["cell"], nodeElement);
|
||||
insertRows(nodeElement, protyle, 1, rowElement.getAttribute("data-id"));
|
||||
insertRows({
|
||||
blockElement: nodeElement,
|
||||
protyle,
|
||||
count: 1,
|
||||
previousID: rowElement.getAttribute("data-id"),
|
||||
groupID: rowElement.parentElement.getAttribute("data-group-id")
|
||||
});
|
||||
}
|
||||
event.preventDefault();
|
||||
return true;
|
||||
|
|
@ -230,7 +236,7 @@ export const bindAVPanelKeydown = (event: KeyboardEvent) => {
|
|||
} else if (event.key === "Escape") {
|
||||
avPanelElement.dispatchEvent(new CustomEvent("click", {detail: "close"}));
|
||||
return true;
|
||||
} else if (upDownHint(menuElement, event, "b3-menu__item--current", menuElement.firstElementChild)){
|
||||
} else if (upDownHint(menuElement, event, "b3-menu__item--current", menuElement.firstElementChild)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue